public class AudioMixingPushBufferStream extends ControlsAdapter implements javax.media.protocol.PushBufferStream
EMPTY_CONTROLS| Modifier and Type | Method and Description |
|---|---|
boolean |
endOfStream()
Implements
SourceStream.endOfStream(). |
javax.media.protocol.ContentDescriptor |
getContentDescriptor()
Implements
SourceStream.getContentDescriptor(). |
long |
getContentLength()
Implements
SourceStream.getContentLength(). |
AudioMixingPushBufferDataSource |
getDataSource()
Gets the AudioMixingPushBufferDataSource which created and owns
this instance and defines the input data which is to not be mixed in the
output of this PushBufferStream.
|
javax.media.format.AudioFormat |
getFormat()
Implements
PushBufferStream.getFormat(). |
void |
read(javax.media.Buffer buffer)
Implements
PushBufferStream.read(Buffer). |
void |
setTransferHandler(javax.media.protocol.BufferTransferHandler transferHandler)
Implements
PushBufferStream.setTransferHandler(BufferTransferHandler). |
getControlsgetControl, getControl, queryInterface, queryInterfacepublic boolean endOfStream()
SourceStream.endOfStream(). Delegates to the wrapped
AudioMixerPushBufferStream because this instance is just a facet
to it.endOfStream in interface javax.media.protocol.SourceStreampublic javax.media.protocol.ContentDescriptor getContentDescriptor()
SourceStream.getContentDescriptor(). Delegates to the
wrapped AudioMixerPushBufferStream because this instance is just
a facet to it.getContentDescriptor in interface javax.media.protocol.SourceStreampublic long getContentLength()
SourceStream.getContentLength(). Delegates to the
wrapped AudioMixerPushBufferStream because this instance is just
a facet to it.getContentLength in interface javax.media.protocol.SourceStreampublic AudioMixingPushBufferDataSource getDataSource()
public javax.media.format.AudioFormat getFormat()
PushBufferStream.getFormat(). Delegates to the wrapped
AudioMixerPushBufferStream because this instance is just a facet
to it.getFormat in interface javax.media.protocol.PushBufferStreampublic void read(javax.media.Buffer buffer)
throws IOException
PushBufferStream.read(Buffer). If
inSamples are available, mixes them and writes the mix to the
specified Buffer performing the necessary data type conversions.read in interface javax.media.protocol.PushBufferStreambuffer - the Buffer to receive the data read from this
instanceIOException - if anything wrong happens while reading from this
instancepublic void setTransferHandler(javax.media.protocol.BufferTransferHandler transferHandler)
PushBufferStream.setTransferHandler(BufferTransferHandler). Sets
the BufferTransferHandler which is to be notified by this
instance when it has media available for reading.setTransferHandler in interface javax.media.protocol.PushBufferStreamtransferHandler - the BufferTransferHandler to be notified
by this instance when it has media available for readingCopyright © 2022 jitsi.org. All rights reserved.