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 Type
    Method
    Description
    Returns a new, fully independent stream instance, which can be read and closed without impacting the original instance.
  • Method Details

    • getClonedStream

      InputStream getClonedStream() throws AudioException
      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