Re: [PATCH spice] Provide thread safety between spice_server_playback_put_samples and snd_set_playback_latency.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]