[Spice-devel] [PATCH spice] Provide thread safety between spice_server_playback_put_samples and snd_set_playback_latency.
Jeremy White
jwhite at codeweavers.com
Sat Oct 18 09:39:15 PDT 2014
>> Yes, that may be possible. There are some tricks with the timing that
>> may make that challenging (e.g. we need to feed audio at regular
>> intervals). I also have the sense that the original implementation was
>> done that way, and we changed to this approach for some good reason that
>> I can not currently recall :-/.
>>
>> I will dig a bit deeper and report back.
It took a bit of doing, but a non threaded version does appear to work;
see related patch.
There are some timing gotchas when using pulse fifos to feed audio which
Andrew had papered over using threads and sleeps; it took some work to
explicitly work that in in watches and waits, but it seems to work.
Cheers,
Jeremy
More information about the Spice-devel
mailing list