[pulseaudio-discuss] Can pa_stream_write be executed at the other thread ?
su
su_cj81 at 163.com
Fri Feb 25 17:14:12 UTC 2022
My application is to play a single stream with pulseaudio Asynchronous API based on "Main Loop - A minimal but fast implementation based on poll()." implementation . I am going to set up an independent thread for pulseaudio context and the related stream setup and I would like to use "Polled" model instead of "Asynchronous " model to feed the audio raw data .
The point is : data is transferred with pa_stream_write() at "Polled" model at the other thread. Namely , at the other thread , both pa_stream_writable_size() and pa_stream_write() will be executed from time to time . Will it work ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20220226/1ae49b17/attachment.htm>
More information about the pulseaudio-discuss
mailing list