public class AudioLevelEffect extends ControlsAdapter implements javax.media.Effect
EMPTY_CONTROLS| Constructor and Description |
|---|
AudioLevelEffect()
The minimum and maximum values of the scale
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this effect.
|
SimpleAudioLevelListener |
getAudioLevelListener()
Returns the audio level listener.
|
String |
getName()
Gets the name of this plug-in as a human-readable string.
|
javax.media.Format[] |
getSupportedInputFormats()
Lists all of the input formats that this codec accepts.
|
javax.media.Format[] |
getSupportedOutputFormats(javax.media.Format input)
Lists the output formats that this codec can generate.
|
void |
open()
Opens this effect.
|
int |
process(javax.media.Buffer inputBuffer,
javax.media.Buffer outputBuffer)
Performs the media processing defined by this codec.
|
void |
reset()
Resets its state.
|
void |
setAudioLevelListener(SimpleAudioLevelListener listener)
Sets (or unsets if listener is null), the listener that
is going to be notified of audio level changes detected by this effect.
|
javax.media.Format |
setInputFormat(javax.media.Format format)
Sets the format of the data to be input to this codec.
|
javax.media.Format |
setOutputFormat(javax.media.Format format)
Sets the format for the data this codec outputs.
|
getControlsgetControl, getControl, queryInterface, queryInterfacepublic AudioLevelEffect()
public void setAudioLevelListener(SimpleAudioLevelListener listener)
AudioLevelEventDispatcher this effect
would do no real work if no listener is set or if it is set to
null.listener - the SimpleAudioLevelListener that we'd like to
receive level changes or null if we'd like level measurements
to stop.public SimpleAudioLevelListener getAudioLevelListener()
public javax.media.Format[] getSupportedInputFormats()
getSupportedInputFormats in interface javax.media.Codecpublic javax.media.Format[] getSupportedOutputFormats(javax.media.Format input)
getSupportedOutputFormats in interface javax.media.Codecinput - The Format of the data to be used as input to the
plug-in.public javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat in interface javax.media.Codecformat - The Format to be set.public javax.media.Format setOutputFormat(javax.media.Format format)
setOutputFormat in interface javax.media.Codecformat - The Format to be set.public int process(javax.media.Buffer inputBuffer,
javax.media.Buffer outputBuffer)
process in interface javax.media.CodecinputBuffer - The Buffer that contains the media data to be
processed.outputBuffer - The Buffer in which to store the processed
media data.PlugInpublic String getName()
getName in interface javax.media.PlugInpublic void open()
throws javax.media.ResourceUnavailableException
open in interface javax.media.PlugInjavax.media.ResourceUnavailableException - If all of the required resources
cannot be acquired.public void close()
close in interface javax.media.PlugInpublic void reset()
reset in interface javax.media.PlugInCopyright © 2021 jitsi.org. All rights reserved.