public class SilenceEffect extends AbstractCodec2 implements javax.media.Effect
| Modifier and Type | Class and Description |
|---|---|
static interface |
SilenceEffect.Listener |
| Modifier and Type | Field and Description |
|---|---|
static javax.media.Format[] |
SUPPORTED_FORMATS
The Formats supported as input/output by this Effect.
|
BUFFER_FLAG_FEC, BUFFER_FLAG_PLC, EMPTY_FORMATS, features, MAX_AUDIO_SEQUENCE_NUMBERS_TO_PLC, SEQUENCE_MAX, SEQUENCE_MIN| Constructor and Description |
|---|
SilenceEffect()
Initializes a new SilenceEffect, which is to use the input
Buffers' timestamps (as opposed to using their RTP timestamps).
|
SilenceEffect(int rtpClockRate)
Initializes a new SilenceEffect, which is to use the input
Buffers' RTP timestamps.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
protected void |
doOpen()
Opens this Codec and acquires the resources that it needs to
operate.
|
protected int |
doProcess(javax.media.Buffer inBuf,
javax.media.Buffer outBuf)
Processes inBuf, and either copies its data to outBuf
or copies silence
|
void |
resetSilence()
Resets the state of this SilenceEffect.
|
void |
setListener(SilenceEffect.Listener listener) |
calculateLostSeqNoCount, close, discardOutputBuffer, getMatchingOutputFormats, getName, getSupportedOutputFormats, incrementSeqNo, matches, open, process, setInputFormat, setOutputFormat, specialize, updateOutput, validateByteArraySize, validateShortArraySizecheckInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOMaddControl, getControl, getControls, removeControlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final javax.media.Format[] SUPPORTED_FORMATS
public SilenceEffect()
public SilenceEffect(int rtpClockRate)
rtpClockRate - the clock rate that the RTP timestamps use.protected void doClose()
doClose in class AbstractCodec2protected void doOpen()
throws javax.media.ResourceUnavailableException
PlugIn.open() on this instance will result in
a call to doOpen only if AbstractCodec.opened is
false. All required input and/or output formats are assumed to
have been set on this Codec before doOpen is called.doOpen in class AbstractCodec2javax.media.ResourceUnavailableException - if any of the resources that this
Codec needs to operate cannot be acquiredprotected int doProcess(javax.media.Buffer inBuf,
javax.media.Buffer outBuf)
doProcess in class AbstractCodec2inBuf - the input Buffer.outBuf - the output Buffer.public void resetSilence()
public void setListener(SilenceEffect.Listener listener)
Copyright © 2021 jitsi.org. All rights reserved.