* [pulseaudio] Add pulseaudio sink as openhab audio sink (#1895) This add to the pulseaudio binding the capability to use "pulseaudio sink" as an "openhab sink" to output sound from openhab to a pulse audio server on the network. You need to load module-simple-protocol-tcp sink in addition to the usual module-cli-protocol-tcp, and enable the sink in the thing configuration. Closes #1895 Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com> * Small corrections after review And getting rid of some other compilation warnings Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com> * Fix some registration errors and allow the binding to load the simple module remotely Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com> * Small corrections after reviews initialize audiosink in a thread with scheduler.submit clear some warning related code. Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com> Better interruptexception handling * Fix two small concurrency bugs Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com> Co-authored-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
</supported-bridge-type-refs>
|
||||
<label>A Pulseaudio Sink</label>
|
||||
<description>represents a pulseaudio sink</description>
|
||||
<category>Speaker</category>
|
||||
|
||||
<channels>
|
||||
<channel id="volume" typeId="volume"/>
|
||||
@@ -21,6 +22,17 @@
|
||||
<label>Name</label>
|
||||
<description>The name of one specific device.</description>
|
||||
</parameter>
|
||||
<parameter name="activateSimpleProtocolSink" type="boolean" required="false">
|
||||
<label>Create an Audio Sink with simple-protocol-tcp</label>
|
||||
<description>Activation of a corresponding sink in OpenHAB (module-simple-protocol-tcp must be available on the
|
||||
pulseaudio server)</description>
|
||||
<default>false</default>
|
||||
</parameter>
|
||||
<parameter name="simpleProtocolSinkPort" type="integer" required="false">
|
||||
<label>Simple Protocol Port</label>
|
||||
<description>Default Port to allocate for use by module-simple-protocol-tcp on the pulseaudio server</description>
|
||||
<default>4711</default>
|
||||
</parameter>
|
||||
</config-description>
|
||||
</thing-type>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user