An audio pipe whose output matches its input. More...
Public Member Functions | |
String | getLabel () |
Gets a label that identifies this class. More... | |
IdentityAudioPipe (fm.liveswitch.AudioFormat format) | |
Initializes a new fm.liveswitch.IdentityAudioPipe. More... | |
IdentityAudioPipe (fm.liveswitch.AudioFormat inputFormat, fm.liveswitch.AudioFormat outputFormat) | |
Initializes a new fm.liveswitch.IdentityAudioPipe. More... | |
void | updateCanChangeBitrate (boolean canChangeBitrate) |
Sets whether this pipe can change the output bitrate. More... | |
void | updateCanPauseBitrate (boolean canPauseBitrate) |
Sets whether this pipe can pause the output bitrate. 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 | updateMaxOutputBitrate (int maxOutputBitrate) |
Sets the maximum allowed output bitrate, in kbps. More... | |
void | updateMaxOutputEncoding (fm.liveswitch.EncodingInfo maxOutputEncoding) |
Sets the maximum allowed output 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 | updateMinOutputBitrate (int minOutputBitrate) |
Sets the minimum allowed output bitrate, in kbps. More... | |
void | updateMinOutputEncoding (fm.liveswitch.EncodingInfo minOutputEncoding) |
Sets the minimum allowed output encoding. More... | |
void | updateTargetOutputBitrate (int targetOutputBitrate) |
Sets the target output bitrate, in kbps. More... | |
void | updateTargetOutputEncoding (fm.liveswitch.EncodingInfo targetOutputEncoding) |
Sets the target output encoding. More... | |
Public Member Functions inherited from fm.liveswitch.AudioPipe | |
AudioPipe (fm.liveswitch.AudioFormat inputFormat, fm.liveswitch.AudioFormat outputFormat) | |
Initializes a new instance of the fm.liveswitch.AudioPipe class. More... | |
AudioPipe (fm.liveswitch.AudioFormat outputFormat) | |
Initializes a new instance of the fm.liveswitch.AudioPipe class. More... | |
fm.liveswitch.AudioConfig | getConfig () |
Gets the output configuration. More... | |
double | getGain () |
Gets a value indicating the gain (input amplification) of this sink. More... | |
fm.liveswitch.AudioConfig | getInputConfig () |
Gets the input configuration. More... | |
fm.liveswitch.AudioConfig | getOutputConfig () |
Gets the output configuration. More... | |
double | getVolume () |
Gets a value indicating the volume (output resistance) of this source. 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... | |
void | setVolume (double value) |
Sets a value indicating the volume (output resistance) of this source. 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... | |
boolean | getCanChangeBitrate () |
Gets whether this pipe can change the output bitrate. More... | |
boolean | getCanPauseBitrate () |
Gets whether this pipe can pause the output bitrate. More... | |
Protected Member Functions inherited from fm.liveswitch.AudioPipe | |
fm.liveswitch.AudioFrame | createFrame (fm.liveswitch.AudioBuffer buffer) |
Creates a frame. More... | |
fm.liveswitch.IAudioInputCollection | createInputCollection (fm.liveswitch.IAudioOutput output) |
Creates an input collection. More... | |
fm.liveswitch.IAudioOutputCollection | createOutputCollection (fm.liveswitch.IAudioInput input) |
Creates an output collection. More... | |
void | raiseFrame (fm.liveswitch.AudioFrame frame) |
Raises a frame. More... | |
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 pipe whose output matches its input.
fm.liveswitch.IdentityAudioPipe.IdentityAudioPipe | ( | fm.liveswitch.AudioFormat | format | ) |
Initializes a new fm.liveswitch.IdentityAudioPipe.
format | The input/output format. |
fm.liveswitch.IdentityAudioPipe.IdentityAudioPipe | ( | fm.liveswitch.AudioFormat | inputFormat, |
fm.liveswitch.AudioFormat | outputFormat | ||
) |
Initializes a new fm.liveswitch.IdentityAudioPipe.
Allows for the input format of the audio to differ from the output format of the audio to satisfy a media pipeline where the output format is a superset of the input format, however this class will not change the format of any frames.
inputFormat | |
outputFormat |
|
protected |
Destroys this instance.
|
protected |
Processes a frame.
frame | The frame. |
inputBuffer | The input buffer. |
|
protected |
Gets whether this pipe can change the output bitrate.
|
protected |
Gets whether this pipe can pause the output bitrate.
String fm.liveswitch.IdentityAudioPipe.getLabel | ( | ) |
Gets a label that identifies this class.
Implements fm.liveswitch.IMediaElement.
void fm.liveswitch.IdentityAudioPipe.updateCanChangeBitrate | ( | boolean | canChangeBitrate | ) |
Sets whether this pipe can change the output bitrate.
canChangeBitrate | Whether this pipe can change the output bitrate. |
void fm.liveswitch.IdentityAudioPipe.updateCanPauseBitrate | ( | boolean | canPauseBitrate | ) |
Sets whether this pipe can pause the output bitrate.
canPauseBitrate | Whether this pipe can pause the output bitrate. |
void fm.liveswitch.IdentityAudioPipe.updateMaxInputBitrate | ( | int | maxInputBitrate | ) |
Sets the maximum allowed input bitrate, in kbps.
A value of -1 indicates unset, in which case the maximum input bitrate becomes the minimum of all output maximum input bitrates.
maxInputBitrate | The maximum allowed input bitrate, in kbps. |
void fm.liveswitch.IdentityAudioPipe.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.IdentityAudioPipe.updateMaxOutputBitrate | ( | int | maxOutputBitrate | ) |
Sets the maximum allowed output bitrate, in kbps.
A value of -1 indicates unset (no maximum).
maxOutputBitrate | The maximum allowed output bitrate, in kbps. |
void fm.liveswitch.IdentityAudioPipe.updateMaxOutputEncoding | ( | fm.liveswitch.EncodingInfo | maxOutputEncoding | ) |
Sets the maximum allowed output encoding.
A value of null indicates unset (no maximum).
maxOutputEncoding | The maximum allowed output encoding. |
void fm.liveswitch.IdentityAudioPipe.updateMinInputBitrate | ( | int | minInputBitrate | ) |
Sets the minimum allowed input bitrate, in kbps.
A value of -1 indicates unset, in which case the minimum input bitrate becomes the maximum of all output minimum input bitrates.
minInputBitrate | The minimum allowed input bitrate, in kbps. |
void fm.liveswitch.IdentityAudioPipe.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.IdentityAudioPipe.updateMinOutputBitrate | ( | int | minOutputBitrate | ) |
Sets the minimum allowed output bitrate, in kbps.
A value of -1 indicates unset (no minimum).
minOutputBitrate | The minimum allowed output bitrate, in kbps. |
void fm.liveswitch.IdentityAudioPipe.updateMinOutputEncoding | ( | fm.liveswitch.EncodingInfo | minOutputEncoding | ) |
Sets the minimum allowed output encoding.
A value of null indicates unset (no minimum).
minOutputEncoding | The minimum allowed output encoding. |
void fm.liveswitch.IdentityAudioPipe.updateTargetOutputBitrate | ( | int | targetOutputBitrate | ) |
Sets the target output bitrate, in kbps.
A value of -1 indicates unset (no minimum).
targetOutputBitrate | The target output bitrate, in kbps. |
void fm.liveswitch.IdentityAudioPipe.updateTargetOutputEncoding | ( | fm.liveswitch.EncodingInfo | targetOutputEncoding | ) |
Sets the target output encoding.
A value of null indicates unset (no target).
targetOutputEncoding | The target output encoding. |