Interface AudioStream

All Superinterfaces:
AutoCloseable, Closeable, Device.Player, PcmWriter
All Known Implementing Classes:
ExternalEncodedStream, FlacStream, LameStream, VorbisStream

public interface AudioStream extends Device.Player
Interface for streaming to a remote player. Extends Device.Player so that it can be plugged-in in place of any player.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    AudioStream factory interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    playedMillis(long time)
    Callback by which the recipient can tell the writer how much of its received data it has finished playing.
    default String
    Returns the output bitrate or other quality measure, or null (the default) for lossless.
    boolean
    Checks if the stream recipient still appears to be actively processing audio data from the stream, which may continue after the stream is closed.

    Methods inherited from interface net.avadeaux.klipspringer.codec.Device.Player

    bufferedFrames, canPause, drain, format, layout, pause, unpause, write

    Methods inherited from interface net.avadeaux.klipspringer.codec.PcmWriter

    close
  • Method Details

    • playedMillis

      void playedMillis(long time)
      Callback by which the recipient can tell the writer how much of its received data it has finished playing. The writer can use this information to refrain from flooding the recipient with data while making sure it has enough left to play without underflow. Typically not used if the recipient is a file or something else that does not place a limit on output speed.
    • quality

      default String quality()
      Returns the output bitrate or other quality measure, or null (the default) for lossless.
    • streaming

      boolean streaming()
      Checks if the stream recipient still appears to be actively processing audio data from the stream, which may continue after the stream is closed.