[alsa-devel] using ALSA one call
Clemens Ladisch
clemens at ladisch.de
Tue Feb 10 16:04:05 CET 2009
kallipygos at inbox.lv wrote:
> OK , this example works
> http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2pcm__min_8c-example.html
> but only if samplerate = 48000;
> if samplerate = 44100 - then not :(
> 44k file play in 48k mode :D it sounds funnee :D
>
> I remixed this program so that it read data from wave file.
>
> gcc pcm_min01.c -lasound -O2 -o pcm_min01
> ./pcm_min01 '/mnt/hda2/Booty Luv - Shine/Booty Luv - Shine (Ian Carey remix).wav'
> i gotta this :
> ALSA lib pcm.c:7160:(snd_pcm_set_params) Rate doesn't match (requested 44100Hz, get 0Hz)
Please show the source code of your program.
Best regards,
Clemens
More information about the Alsa-devel
mailing list