pulse: New pulseaudiosink element to handle format changes
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 29 Mar 2011 06:39:18 +0000 (12:09 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 19 Sep 2011 02:13:04 +0000 (07:43 +0530)
commit8ca420f547119f0a5a4a35eb3675f0d2f6b7c085
treee85cf8c2f880ccf0a5817f075f25c0ea0f3a1ccb
parent11b0a0effcf0e23d9abf8425f191b932188e3a74
pulse: New pulseaudiosink element to handle format changes

This introduces a new bin which wraps around pulsesink and depending on
the formats supported by the sink, plugs in/out a decodebin2 as
required. This allows users to switch sinks on the stream and adapts
accordingly (for example, you could watch a movie in passthrough mode on
your receiver which supports AC3 decode, then plug out and switch to a
non-digital profile to continue uninterrupted on analog output).

The bin is required because doing the same with playbin2/playsink will
require API changes that cannot be made in 0.10. With 0.11/1.0, we
should be able to ask for upstream caps renegotiation to deal with all
this.

https://bugzilla.gnome.org/show_bug.cgi?id=657179
ext/pulse/Makefile.am
ext/pulse/plugin.c
ext/pulse/pulseaudiosink.c [new file with mode: 0644]
ext/pulse/pulsesink.c
ext/pulse/pulsesink.h
ext/pulse/pulseutil.h