At Sun, 02 Apr 2006 13:25:31 -0500,
Moshe Yudkowsky wrote:
> 
> 
> >> (a) Why does aplay fail?
> > 
> > If WAV file is given, aplay ignores -f option.
> > Yeah, it should be better fixed.
> 
> Well, either aplay or the documentation. Thanks for the hint.
> 
> >> (b) How can I create a plug-in entry that plays mu-law? The 
> >> documentation says that a mu-law plug-in can convert mu-law to linear 
> >> and vice-versa, but it does not explain *how* to set that up, either way.
> > 
> > The question is rather what you want exactly with the user-defined
> > mulaw plugin...
> 
> Well, I'd like to discover why it is that at least two different 
> programs that rely on ALSA cannot play mu-law files.

I guess they're accessing like hw:xxx, i.e. without using plug
interface?


> One way to debug this would be to make certain that Alsa can indeed play 
> mulaw files on my system. I would like to create an ALSA plugin 
> mulawplayer so I can give the command:
> 
> cat mulaw.wav | aplay -Dmulawplayer
> 
> and have it work.

Then use the following:

        pcm.mulawplayer {
                type mulaw
                slave.pcm "hw"
        }

The channels and sample rate should be given as aplay options,
though.


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to