Package org.openhab.core.audio
Interface ClonableAudioStream
- All Known Implementing Classes:
ByteArrayAudioStream
,FileAudioStream
,FixedLengthAudioStream
,URLAudioStream
@NonNullByDefault
public interface ClonableAudioStream
This is for an
AudioStream
, that can be cloned- Author:
- Gwendal Roulleau - Initial contribution, separation from
FixedLengthAudioStream
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new, fully independent stream instance, which can be read and closed without impacting the original instance.
-
Method Details
-
getClonedStream
Returns a new, fully independent stream instance, which can be read and closed without impacting the original instance.- Returns:
- a new input stream that can be consumed by the caller
- Throws:
AudioException
- if stream cannot be created
-