Interface PcmWriter
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
AudioDecoder.Target,AudioStream,Device.Player
- All Known Implementing Classes:
Alsa.Player,ExternalEncodedStream,FlacStream,LameStream,LinePlayer,PcmChannelEncoder,VorbisStream
Audio writing interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()SeeCloseable.close().booleanwrite(ByteBuffer data) Writes a block of audio data.
-
Method Details
-
write
Writes a block of audio data. Returning true is a signal to the caller to continue sending more blocks until the input is exhausted. Returning false is a signal that decoding should stop. In the context of areusableencoder, blocks may again start to arrive with the next call todecodeAll.- Throws:
IOException
-
close
SeeCloseable.close().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-