<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>
hi everyone,<br>
<br>
I am stuck in the pulseaudio programing, I am adding pulseaudio support
in my existing application.Design of the application is synchronous and
multithreaded. I need exactly 320 samples (320*4 bytes) for reading
and writing. While using pulseaudio 0.9.14 , below parameters works
fine but with 0.9.15 readablesize is not as expecting :( . One more
thing , are playattributes and record attributes related to each other
or have any effect on one another ?<br>
***************<br>
PLAYBACK ATTRIBUTES:<br>
play_attributes = (pa_buffer_attr*) malloc (sizeof (pa_buffer_attr));<br>
play_attributes->maxlength = pa_usec_to_bytes(21*PA_USEC_PER_MSEC,&_sample_spec);<br>
play_attributes->tlength = (uint32_t) -1;<br>
play_attributes->prebuf = 0;<br>
play_attributes->fragsize = pa_usec_to_bytes (20 * PA_USEC_PER_MSEC, &_sample_spec);<br>
play_attributes->minreq = (uint32_t) -1;<br>
****************<br>
RECORD ATTRIBUTES:<br>
<br>
record_attributes = (pa_buffer_attr*) malloc (sizeof (pa_buffer_attr));<br>
record_attributes->maxlength = pa_usec_to_bytes (21 * PA_USEC_PER_MSEC, &_sample_spec); <br>
record_attributes->tlength = (uint32_t) -1;<br>
record_attributes->prebuf = (uint32_t) 0;<br>
record_attributes->fragsize = pa_usec_to_bytes (20 * PA_USEC_PER_MSEC, &_sample_spec);<br>
record_attributes->minreq =pa_usec_to_bytes(1*PA_USEC_PER_SEC,&_sample_spec);<br>
<br>
<br>
<br>
I would be grateful.<br>
</td></tr></table>