Interface AudioStream
- All Superinterfaces:
AutoCloseable,Closeable,Device.Player,PcmWriter
- All Known Implementing Classes:
ExternalEncodedStream,FlacStream,LameStream,VorbisStream
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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceAudioStream factory interface. -
Method Summary
Modifier and TypeMethodDescriptionvoidplayedMillis(long time) Callback by which the recipient can tell the writer how much of its received data it has finished playing.default Stringquality()Returns the output bitrate or other quality measure, or null (the default) for lossless.booleanChecks 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
-
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
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.
-