<div dir="ltr"><div><div><div>Hi,<br><br></div>I'm writing a phone application with bluetooth headset using pulseaudio api.<br></div>I could create record/playback stream using asynchronous api.<br></div><div><br></div><div>I got media packet from stream callback for record.</div><div>In this function, I got 96 byte media packet by pa_stream_peek() in stream callback.<br></div><div>I expected 320 bytes, because sample format is as follows:</div><div><div>static pa_sample_spec sample_spec = {<br>    .format = PA_SAMPLE_S16LE, <br>    .rate = 16000, <br>    .channels = 1<br>};<br></div></div><div>I have to send media packet from bluetooth headset to DSP in my board <br></div><div>by 320 bytes each.<br></div><div><br></div><div>Is there any way to set media packet size with fix value like 320 bytes?</div><div>Or Do I have to write program packing the media packet with fixed value</div><div>in the stream callback?<br></div><div><br></div><div>Best Regards,</div><div>Shinnosuke Suzuki<br></div><br></div>