Class AudioSinkAsync

java.lang.Object
org.openhab.core.audio.AudioSinkAsync
All Implemented Interfaces:
AudioSink

@NonNullByDefault public abstract class AudioSinkAsync extends Object implements AudioSink
Definition of an audio output like headphones, a speaker or for writing to a file / clip. Helper class for asynchronous sink : when the process() method returns, the AudioStream may or may not be played. It is the responsibility of the implementing AudioSink class to complete the CompletableFuture when playing is done. Any delayed tasks will then be performed, such as volume restoration.
Author:
Gwendal Roulleau - Initial contribution