At Fri, 31 Mar 2006 06:14:39 -0600,
Moshe Yudkowsky wrote:
> 
> Clemens, Takashi,
> 
> Thanks for your response. I have two follow-up questions.
> 
> 
> >>> I am unable to play mu-law files.
> >> ALSA does support mu-Law.
> >>
> >>> If I try
> >>>
> >>> aplay file.wav
> >>>
> >>> I get the error message
> >>>
> >>> aplay: test_wavefile:726: can't play not PCM-coded WAVE-files
> >> Aplay's module for reading .wav files does not support Mu-Law.
> 
> I should have mentioned that I had already tried to use the -f FORMAT 
> before I wrote my original request, but that it fails with the following 
> error:
> 
> > aplay -t raw -f MU_LAW -r 8000 file.ulaw
> > Playing raw data 'file.ulaw' : Mu-Law, Rate 8000 Hz, Mono
> > aplay: set_params:896: Sample format non available

Then use cat

        % cat file.ulaw | aplay -t raw -f MU_LAW -r 8000 -c 1


> The standard (sox-based) "play" command works:
> 
> play -t raw -s b -f U -r 8000 file.ulaw
> 
> 
> What I'm trying to understand is:
> 
> (a) Why does aplay fail?

If WAV file is given, aplay ignores -f option.
Yeah, it should be better fixed.

> (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...


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to