[pulseaudio-discuss] [PATCH 1/2] allow-passthrough: Add module to allow passthrough streams always go through
arun at accosted.net
Sat May 31 21:35:27 PDT 2014
On Mon, 2014-05-19 at 15:58 +0200, Sjoerd Simons wrote:
> From: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
> For various use-cases a passthrough stream should have priority over all
> other streams and get exclusive access to the sink regardless of whether
> any other streams are playing.
> An example use-case is ensuring XBMC can successfully start video
> playback (with passthrough) even if an external notification sound
> happened to be playing at the same time.
The code looks good, but there are some cases that are not handled:
1. The sink goes away while the passthrough stream is running. Should be
possible to add a sink unlink hook that runs before
module-rescue-streams and restores sink-inputs to the sink.
2. The passthrough sink input is moved. Just need to hook up to the sink
input MOVE_FINISH hook and treat it the same way as sink input unlink.
I think that should be it.
More information about the pulseaudio-discuss