An audio sink that discards frames. More...
Public Member Functions | |
long | getFrameCount () |
Gets the current frame count. More... | |
String | getLabel () |
Gets a label that identifies this class. More... | |
String | getOutputRtpStreamId () |
Gets the output RTP stream identifier. More... | |
long | getOutputSynchronizationSource () |
Gets the output synchronization source. More... | |
NullAudioSink () | |
Initializes a new fm.liveswitch.NullAudioSink. More... | |
NullAudioSink (fm.liveswitch.AudioFormat inputFormat) | |
Initializes a new fm.liveswitch.NullAudioSink. More... | |
void | processControlFrame (fm.liveswitch.MediaControlFrame controlFrame) |
Processes a control frame by raising it. More... | |
void | processControlFrames (fm.liveswitch.MediaControlFrame[] controlFrames) |
Processes control frames by raising them. More... | |
fm.liveswitch.Future< Object > | processedFrames (long count) |
Creates a future that resolves when the specified number of frames have been processed. More... | |
void | setOutputRtpStreamId (String value) |
Sets the output RTP stream identifier. More... | |
void | setOutputSynchronizationSource (long value) |
Sets the output synchronization source. More... | |
void | updateMaxInputBitrate (int maxInputBitrate) |
Sets the maximum allowed input bitrate, in kbps. More... | |
void | updateMaxInputEncoding (fm.liveswitch.EncodingInfo maxInputEncoding) |
Sets the maximum allowed input encoding. More... | |
void | updateMinInputBitrate (int minInputBitrate) |
Sets the minimum allowed input bitrate, in kbps. More... | |
void | updateMinInputEncoding (fm.liveswitch.EncodingInfo minInputEncoding) |
Sets the minimum allowed input encoding. More... | |
void | updateSystemDelay (long systemDelay) |
Sets the system delay in ticks. More... | |
Public Member Functions inherited from fm.liveswitch.AudioSink | |
AudioSink () | |
Initializes a new instance of the fm.liveswitch.AudioSink class. More... | |
AudioSink (fm.liveswitch.AudioFormat inputFormat) | |
Initializes a new instance of the fm.liveswitch.AudioSink class. More... | |
fm.liveswitch.AudioConfig | getConfig () |
Gets the input configuration. More... | |
double | getGain () |
Gets a value indicating the gain (input amplification) of this sink. More... | |
boolean | processFrame (fm.liveswitch.AudioFrame frame) |
Processes a frame. More... | |
void | setGain (double value) |
Sets a value indicating the gain (input amplification) of this sink. More... | |
Public Member Functions inherited from fm.liveswitch.MediaSinkBase | |
String | getExternalId () |
Gets the external identifier. More... | |
String | getId () |
Gets the identifier. More... | |
String | getTag () |
Gets optional data to associate with this instance. More... | |
void | setExternalId (String value) |
Sets the external identifier. More... | |
void | setTag (String value) |
Sets optional data to associate with this instance. More... | |
Public Member Functions inherited from fm.liveswitch.Dynamic | |
java.util.HashMap< String, Object > | getDynamicProperties () |
Gets all dynamic properties on this instance. More... | |
Object | getDynamicValue (String key) |
Gets a property value from the local cache. More... | |
void | setDynamicValue (String key, Object value) |
Sets a property value in the local cache. More... | |
boolean | unsetDynamicValue (String key) |
Removes a property value from the local cache. More... | |
Public Member Functions inherited from fm.liveswitch.IElement | |
abstract String | getExternalId () |
Gets the external identifier. More... | |
abstract String | getId () |
Gets the identifier. More... | |
abstract String | getPipelineJson () |
Gets the pipeline JSON with this as the central point. More... | |
abstract void | setExternalId (String value) |
Sets the external identifier. More... | |
Public Member Functions inherited from fm.liveswitch.IMediaElement | |
abstract boolean | destroy () |
Destroys this instance. More... | |
abstract boolean | getDeactivated () |
Gets a value indicating whether this instance is deactivated. More... | |
abstract boolean | getDisabled () |
Gets a value indicating whether this instance is disabled. More... | |
abstract boolean | getMuted () |
Gets a value indicating whether this instance is muted. More... | |
abstract boolean | getPaused () |
Gets a value indicating whether this instance is paused. More... | |
abstract boolean | getPersistent () |
Gets a value indicating whether this instance is persistent. More... | |
abstract void | setDeactivated (boolean value) |
Sets a value indicating whether this instance is deactivated. More... | |
abstract void | setMuted (boolean value) |
Sets a value indicating whether this instance is muted. More... | |
Protected Member Functions | |
void | doDestroy () |
Destroys this instance. More... | |
void | doProcessFrame (fm.liveswitch.AudioFrame frame, fm.liveswitch.AudioBuffer inputBuffer) |
Processes a frame. More... | |
Protected Member Functions inherited from fm.liveswitch.AudioSink | |
fm.liveswitch.IAudioOutputCollection | createOutputCollection (fm.liveswitch.IAudioInput input) |
Creates an output collection. More... | |
Protected Member Functions inherited from fm.liveswitch.MediaSinkBase | |
MediaSinkBase () | |
Protected Member Functions inherited from fm.liveswitch.Dynamic | |
Dynamic () | |
Protected Member Functions inherited from fm.liveswitch.Serializable | |
boolean | getIsDirty () |
Gets a value indicating whether this instance is dirty. More... | |
Serializable () | |
Initializes a new instance of the fm.liveswitch.Serializable class. More... | |
void | setIsDirty (boolean value) |
Sets a value indicating whether this instance is dirty. More... | |
An audio sink that discards frames.
fm.liveswitch.NullAudioSink.NullAudioSink | ( | ) |
Initializes a new fm.liveswitch.NullAudioSink.
fm.liveswitch.NullAudioSink.NullAudioSink | ( | fm.liveswitch.AudioFormat | inputFormat | ) |
Initializes a new fm.liveswitch.NullAudioSink.
inputFormat | The input format. |
|
protected |
Destroys this instance.
|
protected |
Processes a frame.
frame | The frame. |
inputBuffer | The input buffer. |
long fm.liveswitch.NullAudioSink.getFrameCount | ( | ) |
Gets the current frame count.
String fm.liveswitch.NullAudioSink.getLabel | ( | ) |
Gets a label that identifies this class.
Implements fm.liveswitch.IMediaElement.
String fm.liveswitch.NullAudioSink.getOutputRtpStreamId | ( | ) |
Gets the output RTP stream identifier.
If the output RTP stream identifier is null (unset), then getting this property returns the InputRtpStreamId.
long fm.liveswitch.NullAudioSink.getOutputSynchronizationSource | ( | ) |
Gets the output synchronization source.
If the output synchronization source is -1 (unset), then getting this property returns the InputSynchronizationSource.
void fm.liveswitch.NullAudioSink.processControlFrame | ( | fm.liveswitch.MediaControlFrame | controlFrame | ) |
Processes a control frame by raising it.
controlFrame | The control frame. |
void fm.liveswitch.NullAudioSink.processControlFrames | ( | fm.liveswitch.MediaControlFrame[] | controlFrames | ) |
Processes control frames by raising them.
controlFrames | The control frames. |
fm.liveswitch.Future<Object> fm.liveswitch.NullAudioSink.processedFrames | ( | long | count | ) |
Creates a future that resolves when the specified number of frames have been processed.
count |
void fm.liveswitch.NullAudioSink.setOutputRtpStreamId | ( | String | value | ) |
Sets the output RTP stream identifier.
If the output RTP stream identifier is null (unset), then getting this property returns the InputRtpStreamId.
void fm.liveswitch.NullAudioSink.setOutputSynchronizationSource | ( | long | value | ) |
Sets the output synchronization source.
If the output synchronization source is -1 (unset), then getting this property returns the InputSynchronizationSource.
void fm.liveswitch.NullAudioSink.updateMaxInputBitrate | ( | int | maxInputBitrate | ) |
Sets the maximum allowed input bitrate, in kbps.
A value of -1 indicates unset (no maximum).
maxInputBitrate | The maximum allowed input bitrate, in kbps. |
void fm.liveswitch.NullAudioSink.updateMaxInputEncoding | ( | fm.liveswitch.EncodingInfo | maxInputEncoding | ) |
Sets the maximum allowed input encoding.
A value of null indicates unset (no maximum).
maxInputEncoding | The maximum allowed input encoding. |
void fm.liveswitch.NullAudioSink.updateMinInputBitrate | ( | int | minInputBitrate | ) |
Sets the minimum allowed input bitrate, in kbps.
A value of -1 indicates unset (no minimum).
minInputBitrate | The minimum allowed input bitrate, in kbps. |
void fm.liveswitch.NullAudioSink.updateMinInputEncoding | ( | fm.liveswitch.EncodingInfo | minInputEncoding | ) |
Sets the minimum allowed input encoding.
A value of null indicates unset (no minimum).
minInputEncoding | The minimum allowed input encoding. |
void fm.liveswitch.NullAudioSink.updateSystemDelay | ( | long | systemDelay | ) |
Sets the system delay in ticks.
systemDelay | The system delay. |