[pulseaudio-discuss] how to read exactly 320 samples
sohail_aziz05 at yahoo.com
Mon Apr 4 00:27:40 PDT 2011
Hi , everyone
I am new to audio programing(as well pulseaudio). I have to add pulseaudio support in an application already working with ALSA and OSS. the designe of my application is such that I have to read 320 samples in read function each time. stream attributes are 16bit , 16khz , and 2 channels. So I need to read 1280 bytes in pa_stream_peek.
But I am unable to read 320 samples each time. some time more , some time less ,and some time 0. How can I set buffer attributes to force pa_stream_read to read 320 samples each time.
Anyhelp would be grately appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pulseaudio-discuss