Hi,

At Thu, 10 Oct 2002 22:31:33 -0700 (PDT),
Albert Jongkit Wong wrote:
> 
> > i don't think all of them are broken.
> > possibly this behavior might be influenced by the period size, etc.
> > can you check /proc/asound/card0/pcm0p/sub0/hw_params at each case and
> > compare them?
> 
> 
> xmms (oss)
...
> OSS format: S16_BE
              ^^^^^^

> xmms (alsa)
...
> format: S16_LE
          ^^^^^^

ah, perhaps xmms alsa plugin doesn't care the endianess.
if so, it's a bug of alsa output plugin.

> 
> You'ore right, the period_size is different for each test.  The xmms alsa 
> plugin is not a power of 2 however.  Is that problem?
> 
> esd and mplayer still refuse to start.
> 
> Esd failing to set any format giving this output:
> 
> terran@Mittermeyer terran $ esd
> Audio device open for 44.1Khz, stereo, 16bit failed
> Trying 44.1Khz, 8bit stereo.
> Audio device open for 44.1Khz, stereo, 8bit failed
> Trying 48Khz, 16bit stereo.
> Audio device open for 48Khz, stereo,16bit failed
> Trying 22.05Khz, 8bit stereo.
> Audio device open for 22.05Khz, stereo, 8bit failed
> Trying 44.1Khz, 16bit mono.
> Audio device open for 44.1Khz, mono, 8bit failed
> Trying 22.05Khz, 8bit mono.
> Audio device open for 22.05Khz, mono, 8bit failed
> Trying 11.025Khz, 8bit stereo.
> Audio device open for 11.025Khz, stereo, 8bit failed
> Trying 11.025Khz, 8bit mono.
> Audio device open for 11.025Khz, mono, 8bit failed
> Trying 8.192Khz, 8bit mono.
> Audio device open for 8.192Khz, mono, 8bit failed
> Trying 8Khz, 8bit mono.
> Sound device inadequate for Esound. Fatal.

hmm, most likely the same reason.
esd requests big-endian formats (as native machine format), which are
not supported on usb devices.
try to use the pcm 'plughw:0,0' instead of 'hw:0,0'.
(well, iirc, there is a bug in esound alsa output.  the command-line
 option is never passed as the device...)

> 
> And mplayer apparently couldn't initialize its alsa9 codec:
>  
> ==========================================================================
> AO: [alsa9] 24000Hz 2ch Signed 16-bit (Big-Endian)
> alsa-init: testing and bugreports are welcome.
> alsa-init: requested format: 24000 Hz, 2 channels, Signed 16-bit 
> (Big-Endian)
  ^^^^^^^^^^^^
> alsa-init: 1 soundcard found, using: hw:0,0
> alsa-init: unable to set format: Invalid argument
> couldn't open/init audio device -> no sound
> Audio: no sound!!!

ditto.  you need to convert endianess.  plughw:0,0 will do that.


ciao,

Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to