Re: No sound in Debian Lenny

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In article <1296432616.3961.25.camel@xxxxxxxxxxxx>,
   Bruno <bbbmes@xxxxxxxxx> wrote:

> > 
> > e.g. does something like 'aplay -D hw:0,0 <wavefilename here> do
> > nothing, or does it give an error, or... ?

> This is the result 

> bruno@CRONO:~$ aplay -D hw:0,0 sound.wav 
> aplay: main:564: audio open error: No such file or directory
> bruno@CRONO:~$ aplay -D hw:0,1 sound.wav 
> aplay: main:564: audio open error: No such file or directory
> bruno@CRONO:~$ aplay -D hw:1,0 sound.wav 
> Playing WAVE 'sound.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono
> aplay: set_params:918: Sample format non available
> bruno@CRONO:~$ aplay -D hw:1,1 sound.wav 
> Playing WAVE 'sound.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono
> aplay: set_params:918: Sample format non available

That looks to me like either the 'sound.wav' file was 8bit mono, etc, or
that sound.wav wasn't actually present in the current directory!

 Do you get the same kind of problem when you try a 44.1k or 48k  stereo
16bit LPCM wave file?

> > 
> > Secondly, did you obtain the above results from a specific command or prog?
> > if so, what?

> I got these ouput with a ALSA team script

> http://www.alsa-project.org/alsa-info.sh

OK. Thanks.

> > 
> > Thirdly, have you tried adding a simple section to your .asoundrc file
> > to explicitly define which card and device and the 'default' along
> > with some basic settings? e.g. I use

> > 
> > pcm.!default {
> > type plug
> > slave {
> > pcm "hw:1"
> > channels 2
> > format S24_3LE
> > }
> > }
> > 
> > in my .asoundrc to specify that a specific device the system
> > identifies as hw:1 (and which expects the S24_3LE format) is to be
> > used as default. Have you tried that with various values for the
> > "hw:", starting either with no other entries for things like 'format'
> > and then experimented on the basis of the info you have?

> What is the command that said you what is *hw* number?

I was referring to the line

pcm "hw:1"

in the above pcm.!default. I used "hw:1" there as I am using the card with
that number. But you might try something else like "hw:1,0" as your card
"1" has more than one device. The idea is that if you had something like

pcm.!default {
type plug
slave {
pcm "hw:1,0"
channels 2
}
}

in your ,asoundrc file it would make "hw1:0" your default. Then aplay or
other ways to play sound that send their output to the alsa default would
send it to that card and device. Change the numbers after the "hw" above
and you change the card and device they send the sound to.

However from the above you may also have a problem with sending the right
format or using a sample rate the hardware can accept. Hence my
suggestion/question about trying 44.1k stereo (i.e. Audio CD format) since
I'd expect a card to be happy with that and 48k 16bit stereo.

Slainte,

Jim

-- 
Electronics  http://www.st-and.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
Audio Misc  http://www.audiomisc.co.uk/index.html
Armstrong Audio  http://www.audiomisc.co.uk/Armstrong/armstrong.html

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux