how to read exactly 320 samples

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110404/7cd3e7e1/attachment.htm>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux