]> git.basschouten.com Git - openhab-addons.git/commit
[pulseaudio] For source, default timeout should be disconnection ASAP (#15314)
authorGwendal Roulleau <dalgwen@users.noreply.github.com>
Thu, 3 Aug 2023 09:01:48 +0000 (11:01 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Aug 2023 09:01:48 +0000 (11:01 +0200)
commitf98ed3fc22ef5785d663395a986b3344180d210d
treebf4a66f450bb1c97f7f5633ed3a6b8fd5cd4abd0
parente057e79d2ac982e063268e876cadc22dde84f1e1
[pulseaudio] For source, default timeout should be disconnection ASAP (#15314)

* [pulseaudio] For source,  default timeout should be disconnection ASAP

To avoid weird behaviour, such as pulseaudio server storing audio data between inputstream get/read and then sending the backlog all at once when finally reading, we must disconnect immediately thereafter.

---------

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Co-authored-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/PulseAudioAudioSource.java
bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/PulseaudioClient.java
bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/PulseaudioSimpleProtocolStream.java
bundles/org.openhab.binding.pulseaudio/src/main/resources/OH-INF/i18n/pulseaudio.properties
bundles/org.openhab.binding.pulseaudio/src/main/resources/OH-INF/thing/sink.xml
bundles/org.openhab.binding.pulseaudio/src/main/resources/OH-INF/thing/source.xml