class InSampleDesc
extends java.lang.Object
Private to AudioMixerPushBufferStream but extracted into its own file for the sake of clarity.
Modifier and Type | Field and Description |
---|---|
javax.media.format.AudioFormat |
format
The AudioFormat of
inSamples . |
short[][] |
inSamples
The set of audio samples read from
inStreams . |
InStreamDesc[] |
inStreams
The set of input streams from which
inSamples were read. |
Constructor and Description |
---|
InSampleDesc(short[][] inSamples,
InStreamDesc[] inStreams,
javax.media.format.AudioFormat format)
Initializes a new InSampleDesc instance which is to
describe a specific set of audio samples read from a specific set of
input streams specified by their InStreamDescs.
|
Modifier and Type | Method and Description |
---|---|
javax.media.Buffer |
getBuffer()
Gets the Buffer into which media data is to be read from the
input streams associated with this instance.
|
long |
getTimeStamp()
Gets the time stamp of inSamples to be reported in the
Buffers of the AudioMixingPushBufferStreams when
mixes are read from them.
|
void |
setTimeStamp(long timeStamp)
Sets the time stamp of inSamples to be reported in the
Buffers of the AudioMixingPushBufferStreams when
mixes are read from them.
|
public final javax.media.format.AudioFormat format
inSamples
.public final short[][] inSamples
inStreams
.public final InStreamDesc[] inStreams
inSamples
were read.public InSampleDesc(short[][] inSamples, InStreamDesc[] inStreams, javax.media.format.AudioFormat format)
inSamples
- the set of audio samples read from
inStreamsinStreams
- the set of input streams from which
inSamples were readformat
- the AudioFormat of inSamplespublic javax.media.Buffer getBuffer()
public long getTimeStamp()
public void setTimeStamp(long timeStamp)
timeStamp
- the time stamp of inSamples to be
reported in the Buffers of the
AudioMixingPushBufferStreams when mixes are read from them
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.