Re: [Alsa-user] Unable to play mu-law files
Brought to you by:
perex
From: Takashi I. <ti...@su...> - 2006-04-03 10:03:15
|
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 |