[linux-audio-dev] Set rate return zero
Jens M Andreasen
jens.andreasen at chello.se
Sun Jul 9 12:03:50 UTC 2006
On Sun, 2006-07-09 at 12:06 +0700, Huu Phuoc wrote:
> Hi everybody!
> I am a newbie to alsa programming.
> I am trying to follow the article which locates at
> http://www.suse.de/~mana/alsa090_howto.html to develop a playback program.
> My code here:
> unsigned int rate = 8000;
> Unfortunately, exact_rate is zero.The following lines were printed out:
> The rate 8000 Hz is not supported by your hardware.
> => Using 0 Hz instead.
> If exact_rate > 0 is OK but it is zero.
> I don't know how to solve the problem.
> Please help me.
Try to replace "rate = 8000" with something that *is* supported by your
hardware. 48000 could be a good choice.
> Phuoc Nguyen
More information about the Linux-audio-dev