<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi , everyone <br><br>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. <br><br>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.<br><br>Anyhelp would be grately appreciated.<br><br>Thanks<br></td></tr></table>