openhab-addons/bundles/org.openhab.binding.pulseaudio/src/main
Gwendal Roulleau b7cbf2ba72
[pulseaudio] Apply real disconnection when needed (#13338)
* [pulseaudio] Removing isIdle test

The isIdle boolean was not properly handled.
When disconnection is called, isIdle is not relevant : we should always honnor the disconnection request.
In fact, isIdle prevented disconnection when it is necessary (example : when a IOException occurs when sending audio to sink)

+Little bug fix on volume parsing: some volume request doesn't respond with a space after the comma separating left/right channel.

* [pulseaudio] Enhancement to the idle detection for disconnection

Using a counter to count client instead of a isIdle variable, which was not thread safe.
The PulseaudioSimpleProtocolStream parent class is now the sole responsible for closing source or sink stream.

* [pulseaudio] Small performance enhancement

Avoid a costly synchronized operation for a method called very often.

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2022-09-25 12:59:30 +02:00
..
feature [pulseaudio] Add pulseaudio sink as openhab audio sink (#1895) (#10423) 2021-04-09 22:44:38 +02:00
java/org/openhab/binding/pulseaudio/internal [pulseaudio] Apply real disconnection when needed (#13338) 2022-09-25 12:59:30 +02:00
resources/OH-INF [pulseaudio] regenerate default translations (#12916) 2022-06-11 08:36:00 +02:00