Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pulseaudio] Add pulseaudio sink as openhab audio sink #10423

Merged
merged 5 commits into from
Apr 9, 2021

Conversation

dalgwen
Copy link
Contributor

@dalgwen dalgwen commented Mar 30, 2021

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

Binding release :
https://github.com/dalgwen/openhab-addons/releases/tag/3.1.0-SNAPSHOT-Audiosink

Closes #1895

Signed-off-by: Gwendal Roulleau [email protected]

@dalgwen dalgwen requested a review from peuter as a code owner March 30, 2021 21:02
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/pulseaudio-binding-use-pulseaudio-sink-items-as-actual-audio-sinks/107917/2

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/pulse-audio-binding/74265/25

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/usage-of-mp3-conversion-in-audiosink-evolution-for-pulseaudio-binding/115639/3

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 openhab#1895

Signed-off-by: Gwendal Roulleau <[email protected]>
@dalgwen dalgwen force-pushed the 1895-pulseaudio_Use_sinks_for_output branch from bd8309d to f7396ac Compare April 2, 2021 13:30
@dalgwen dalgwen force-pushed the 1895-pulseaudio_Use_sinks_for_output branch 2 times, most recently from 6d35e29 to d96fd59 Compare April 2, 2021 22:03
dalgwen added 2 commits April 3, 2021 11:23
And getting rid of some other compilation warnings
Signed-off-by: Gwendal Roulleau <[email protected]>
@dalgwen dalgwen force-pushed the 1895-pulseaudio_Use_sinks_for_output branch from d96fd59 to 9fb5a19 Compare April 3, 2021 23:38
@dalgwen dalgwen requested a review from fwolter April 5, 2021 16:32
initialize audiosink in a thread with scheduler.submit
clear some warning related code.

Signed-off-by: Gwendal Roulleau <[email protected]>
Better interruptexception handling
@dalgwen dalgwen force-pushed the 1895-pulseaudio_Use_sinks_for_output branch from 9a79e29 to 80af598 Compare April 5, 2021 16:33
Signed-off-by: Gwendal Roulleau <[email protected]>
@dalgwen dalgwen force-pushed the 1895-pulseaudio_Use_sinks_for_output branch from a46e54c to 9e269b8 Compare April 5, 2021 17:26
Copy link
Member

@fwolter fwolter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fwolter fwolter merged commit c3b29e0 into openhab:main Apr 9, 2021
@fwolter fwolter added this to the 3.1 milestone Apr 9, 2021
@dalgwen dalgwen deleted the 1895-pulseaudio_Use_sinks_for_output branch April 15, 2021 09:51
@cweitkamp cweitkamp added the enhancement An enhancement or new feature for an existing add-on label Apr 15, 2021
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
…openhab#10423)

* [pulseaudio] Add pulseaudio sink as openhab audio sink (openhab#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 openhab#1895

Signed-off-by: Gwendal Roulleau <[email protected]>

* Small corrections after review

And getting rid of some other compilation warnings
Signed-off-by: Gwendal Roulleau <[email protected]>

* Fix some registration errors  and allow the binding to load the simple module remotely

Signed-off-by: Gwendal Roulleau <[email protected]>

* Small corrections after reviews

initialize audiosink in a thread with scheduler.submit
clear some warning related code.

Signed-off-by: Gwendal Roulleau <[email protected]>
Better interruptexception handling

* Fix two small concurrency bugs

Signed-off-by: Gwendal Roulleau <[email protected]>

Co-authored-by: Gwendal Roulleau <[email protected]>
Signed-off-by: John Marshall <[email protected]>
@wborn wborn changed the title [pulseaudio] Add pulseaudio sink as openhab audio sink (#1895) [pulseaudio] Add pulseaudio sink as openhab audio sink Jun 22, 2021
computergeek1507 pushed a commit to computergeek1507/openhab-addons that referenced this pull request Jul 13, 2021
…openhab#10423)

* [pulseaudio] Add pulseaudio sink as openhab audio sink (openhab#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 openhab#1895

Signed-off-by: Gwendal Roulleau <[email protected]>

* Small corrections after review

And getting rid of some other compilation warnings
Signed-off-by: Gwendal Roulleau <[email protected]>

* Fix some registration errors  and allow the binding to load the simple module remotely

Signed-off-by: Gwendal Roulleau <[email protected]>

* Small corrections after reviews

initialize audiosink in a thread with scheduler.submit
clear some warning related code.

Signed-off-by: Gwendal Roulleau <[email protected]>
Better interruptexception handling

* Fix two small concurrency bugs

Signed-off-by: Gwendal Roulleau <[email protected]>

Co-authored-by: Gwendal Roulleau <[email protected]>
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
…openhab#10423)

* [pulseaudio] Add pulseaudio sink as openhab audio sink (openhab#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 openhab#1895

Signed-off-by: Gwendal Roulleau <[email protected]>

* Small corrections after review

And getting rid of some other compilation warnings
Signed-off-by: Gwendal Roulleau <[email protected]>

* Fix some registration errors  and allow the binding to load the simple module remotely

Signed-off-by: Gwendal Roulleau <[email protected]>

* Small corrections after reviews

initialize audiosink in a thread with scheduler.submit
clear some warning related code.

Signed-off-by: Gwendal Roulleau <[email protected]>
Better interruptexception handling

* Fix two small concurrency bugs

Signed-off-by: Gwendal Roulleau <[email protected]>

Co-authored-by: Gwendal Roulleau <[email protected]>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
…openhab#10423)

* [pulseaudio] Add pulseaudio sink as openhab audio sink (openhab#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 openhab#1895

Signed-off-by: Gwendal Roulleau <[email protected]>

* Small corrections after review

And getting rid of some other compilation warnings
Signed-off-by: Gwendal Roulleau <[email protected]>

* Fix some registration errors  and allow the binding to load the simple module remotely

Signed-off-by: Gwendal Roulleau <[email protected]>

* Small corrections after reviews

initialize audiosink in a thread with scheduler.submit
clear some warning related code.

Signed-off-by: Gwendal Roulleau <[email protected]>
Better interruptexception handling

* Fix two small concurrency bugs

Signed-off-by: Gwendal Roulleau <[email protected]>

Co-authored-by: Gwendal Roulleau <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pulseaudio] Use sinks for output
4 participants