fm.liveswitch.AudioStream Class Reference

An audio stream. More...

Public Member Functions

void addOnDiscardOutboundDtmfTones (fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone[]> value)
 Adds a handler that is raised when outbound DTMF tones are discarded due to policy restrictions or lack of support. More...
 
void addOnReceiveDtmfTone (fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone > value)
 Adds a handler that is raised when a DTMF packet is received. More...
 
void addOnReceiveDtmfToneChange (fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone > value)
 Adds a handler that is raised when the received DTMF tone changes. More...
 
void addOnSendDtmfTone (fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone > value)
 Adds a handler that is raised when a DTMF packet is sent. More...
 
void addOnSendDtmfToneChange (fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone > value)
 Adds a handler that is raised when the sent DTMF tone changes. More...
 
 AudioStream ()
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioOutput input)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioOutput input, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioOutput input, fm.liveswitch.IAudioInput output)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioOutput input, fm.liveswitch.IAudioInput output, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioOutput[] inputs)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioOutput[] inputs, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioOutput[] inputs, fm.liveswitch.IAudioInput[] outputs)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioOutput[] inputs, fm.liveswitch.IAudioInput[] outputs, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.LocalMedia localMedia)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.LocalMedia localMedia, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.LocalMedia localMedia, fm.liveswitch.RemoteMedia remoteMedia)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.LocalMedia localMedia, fm.liveswitch.RemoteMedia remoteMedia, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.AudioTrack localTrack)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.AudioTrack localTrack, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.AudioTrack localTrack, fm.liveswitch.AudioTrack remoteTrack)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.AudioTrack localTrack, fm.liveswitch.AudioTrack remoteTrack, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioInput output)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioInput output, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioInput[] outputs)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.IAudioInput[] outputs, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.RemoteMedia remoteMedia)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
 AudioStream (fm.liveswitch.RemoteMedia remoteMedia, boolean discardOutboundDtmfTones)
 Initializes a new instance of the fm.liveswitch.AudioStream class. More...
 
fm.liveswitch.AudioConfig getConfig ()
 Gets the output configuration. More...
 
boolean getDiscardOutboundDtmfTones ()
 Gets whether outbound DTMF tones should be discarded. More...
 
fm.liveswitch.dtmf.Mode getDtmfMode ()
 Gets the DTMF mode. More...
 
boolean getG722Disabled ()
 Gets whether G.722 is disabled. More...
 
double getGain ()
 Gets a value indicating the gain (input amplification) of this sink. More...
 
fm.liveswitch.AudioConfig getInputConfig ()
 Gets the input configuration. More...
 
boolean getL16Disabled ()
 Gets whether L16 is disabled. More...
 
boolean getOpusDisabled ()
 Gets whether Opus is disabled. More...
 
fm.liveswitch.AudioConfig getOutputConfig ()
 Gets the output configuration. More...
 
boolean getPcmaDisabled ()
 Gets whether PCMA is disabled. More...
 
boolean getPcmuDisabled ()
 Gets whether PCMU is disabled. More...
 
double getVolume ()
 Gets a value indicating the volume (output resistance) of this source. More...
 
boolean insertDtmfTone (fm.liveswitch.dtmf.Tone dtmfTone)
 Inserts a DTMF tone. More...
 
boolean insertDtmfTones (fm.liveswitch.dtmf.Tone[] dtmfTones)
 Inserts DTMF tones. More...
 
void removeOnDiscardOutboundDtmfTones (fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone[]> value)
 Removes a handler that is raised when outbound DTMF tones are discarded due to policy restrictions or lack of support. More...
 
void removeOnReceiveDtmfTone (fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone > value)
 Removes a handler that is raised when a DTMF packet is received. More...
 
void removeOnReceiveDtmfToneChange (fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone > value)
 Removes a handler that is raised when the received DTMF tone changes. More...
 
void removeOnSendDtmfTone (fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone > value)
 Removes a handler that is raised when a DTMF packet is sent. More...
 
void removeOnSendDtmfToneChange (fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone > value)
 Removes a handler that is raised when the sent DTMF tone changes. More...
 
void setDiscardOutboundDtmfTones (boolean value)
 Sets whether outbound DTMF tones should be discarded. More...
 
void setDtmfMode (fm.liveswitch.dtmf.Mode value)
 Sets the DTMF mode. More...
 
void setG722Disabled (boolean value)
 Sets whether G.722 is disabled. More...
 
void setGain (double value)
 Sets a value indicating the gain (input amplification) of this sink. More...
 
void setL16Disabled (boolean value)
 Sets whether L16 is disabled. More...
 
void setOpusDisabled (boolean value)
 Sets whether Opus is disabled. More...
 
void setPcmaDisabled (boolean value)
 Sets whether PCMA is disabled. More...
 
void setPcmuDisabled (boolean value)
 Sets whether PCMU is disabled. More...
 
void setVolume (double value)
 Sets a value indicating the volume (output resistance) of this source. More...
 
- Public Member Functions inherited from fm.liveswitch.MediaStreamBase
void addOnLocalEncodingDisabled (fm.liveswitch.IAction1< fm.liveswitch.EncodingInfo > value)
 Adds a handler that is raised when a local encoding is disabled. More...
 
void addOnLocalEncodingEnabled (fm.liveswitch.IAction1< fm.liveswitch.EncodingInfo > value)
 Adds a handler that is raised when a local encoding is enabled. More...
 
fm.liveswitch.Error changeDirection (fm.liveswitch.StreamDirection newDirection)
 Records the pending direction of this stream. More...
 
fm.liveswitch.StreamDirection getCachedLocalDirection ()
 Gets Cached Local Direction for this Media Stream. More...
 
String getCanonicalName ()
 Gets the canonical name. More...
 
boolean getCodecDisabled (String name)
 Gets whether a codec is disabled. More...
 
abstract fm.liveswitch.TransportInfo getControlTransportInfo ()
 Gets control transport info. More...
 
fm.liveswitch.StreamDirection getDirection ()
 
fm.liveswitch.MediaStreamInfo getInfo ()
 Gets the media stream info. More...
 
String getInputContent ()
 Gets the input content descriptor. More...
 
abstract boolean getInputMuted ()
 Gets whether the input track is muted. More...
 
String getLabel ()
 Gets a label that identifies this class. More...
 
int getLocalBandwidth ()
 Gets the local bandwidth, in kbps. More...
 
String getLocalCanonicalName ()
 Gets the local canonical end-point identifier (CNAME) used by RTCP. More...
 
fm.liveswitch.StreamDirection getLocalDirection ()
 Gets current direction indicated by the local description. More...
 
boolean getLocalMuted ()
 Gets a value indicating whether the local stream is muted. More...
 
int getMaxReceiveBitrate ()
 Gets the maximum bitrate that the connection receives in Kbps. More...
 
int getMaxSendBitrate ()
 Gets the maximum bitrate that the upstream connection sends in Kbps. More...
 
boolean getMuted ()
 Gets whether the stream is muted. More...
 
String getOutputContent ()
 Gets the output content descriptor. More...
 
abstract boolean getOutputMuted ()
 Gets whether the output track is muted. More...
 
String[] getPreferredCodecs ()
 Gets any preferred codecs, in order of preference. More...
 
int getRemoteBandwidth ()
 Gets the remote bandwidth in Kbps. More...
 
String getRemoteCanonicalName ()
 Gets the remote canonical name. More...
 
fm.liveswitch.StreamDirection getRemoteDirection ()
 Gets current direction indicated by the remote description. More...
 
fm.liveswitch.EncodingInfo getRemoteEncoding ()
 Gets the remote encoding. More...
 
boolean getRemoteMuted ()
 Gets a value indicating if remote is muted. More...
 
boolean getRemoteRequestedDeactivation ()
 Gets Boolean value set when the server is currently requesting a 0 bitrate. More...
 
abstract fm.liveswitch.SimulcastMode getSimulcastMode ()
 Gets the simulcast mode. More...
 
 MediaStreamBase (fm.liveswitch.StreamType type)
 Initializes a new instance of the fm.liveswitch.MediaStreamBase class. More...
 
boolean raiseBitrateRequest (fm.liveswitch.BitrateRequest bitrateRequest)
 Raises a bitrate request to the local track. More...
 
void removeOnLocalEncodingDisabled (fm.liveswitch.IAction1< fm.liveswitch.EncodingInfo > value)
 Removes a handler that is raised when a local encoding is disabled. More...
 
void removeOnLocalEncodingEnabled (fm.liveswitch.IAction1< fm.liveswitch.EncodingInfo > value)
 Removes a handler that is raised when a local encoding is enabled. More...
 
void setCodecDisabled (String name, boolean disabled)
 Sets whether a codec is disabled. More...
 
abstract void setInputMuted (boolean value)
 Sets whether the input track is muted. More...
 
void setLocalBandwidth (int value)
 Sets the local bandwidth, in kbps. More...
 
void setLocalDirection (fm.liveswitch.StreamDirection value)
 Sets current direction indicated by the local description. More...
 
void setLocalMuted (boolean value)
 Sets a value indicating whether the local stream is muted. More...
 
void setMaxReceiveBitrate (int value)
 Sets the maximum bitrate that the connection receives in Kbps. More...
 
void setMaxSendBitrate (int value)
 Sets the maximum bitrate that the upstream connection sends in Kbps. More...
 
void setMuted (boolean value)
 Sets whether the stream is muted. More...
 
abstract void setOutputMuted (boolean value)
 Sets whether the output track is muted. More...
 
void setPreferredCodecs (String[] value)
 Sets any preferred codecs, in order of preference. More...
 
void setRemoteEncoding (fm.liveswitch.EncodingInfo value)
 Sets the remote encoding. More...
 
void setRemoteMuted (boolean value)
 Sets a value indicating if remote is muted. More...
 
abstract void setSimulcastMode (fm.liveswitch.SimulcastMode value)
 Sets the simulcast mode. More...
 
- Public Member Functions inherited from fm.liveswitch.Stream
void addOnDisabledChange (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the Disabled property changes state. More...
 
void addOnDisabledChangeWithCaller (fm.liveswitch.IAction1< Object > value)
 Adds a handler that is raised when the Disabled property changes state. More...
 
boolean getDeactivated ()
 Gets a value indicating whether this stream is deactivated. More...
 
boolean getDisabled ()
 Gets a value indicating whether this stream is disabled. More...
 
fm.liveswitch.EncryptionMode getEncryptionMode ()
 Gets the encryption mode. More...
 
fm.liveswitch.EncryptionMode[] getEncryptionModes ()
 Gets the encryption modes. More...
 
fm.liveswitch.EncryptionPolicy getEncryptionPolicy ()
 Gets a value indicating Encryption Policy. More...
 
int getIndex ()
 Gets the index. More...
 
fm.liveswitch.IceParameters getLocalIceParameters ()
 Gets the local ICE parameters. More...
 
fm.liveswitch.IceParameters getRemoteIceParameters ()
 Gets the remote ICE parameters. More...
 
fm.liveswitch.SdesPolicy getSdesPolicy ()
 Gets Sdes policy for stream. More...
 
boolean getUseDtls ()
 Gets a value indicating whether DTLS encryption is in use for this stream. More...
 
boolean getUseSdes ()
 Gets a value indicating whether SDES encryption is in use for this stream. More...
 
void removeOnDisabledChange (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the Disabled property changes state. More...
 
void removeOnDisabledChangeWithCaller (fm.liveswitch.IAction1< Object > value)
 Removes a handler that is raised when the Disabled property changes state. More...
 
void setDeactivated (boolean value)
 Sets a value indicating whether this stream is deactivated. More...
 
void setDisabled (boolean value)
 Sets a value indicating whether this stream is disabled. More...
 
void setEncryptionMode (fm.liveswitch.EncryptionMode value)
 Sets the encryption mode. More...
 
void setEncryptionModes (fm.liveswitch.EncryptionMode[] value)
 Sets the encryption modes. More...
 
void setEncryptionPolicy (fm.liveswitch.EncryptionPolicy value)
 Sets a value indicating Encryption Policy. More...
 
void setSdesPolicy (fm.liveswitch.SdesPolicy value)
 Sets Sdes policy for stream. More...
 
void setUseDtls (boolean value)
 Sets a value indicating whether DTLS encryption is in use for this stream. More...
 
void setUseSdes (boolean value)
 Sets a value indicating whether SDES encryption is in use for this stream. More...
 
 Stream (fm.liveswitch.StreamType type)
 Initializes a new instance of the fm.liveswitch.Stream class. More...
 
- Public Member Functions inherited from fm.liveswitch.StreamBase
void addOnDirectionChange (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the stream direction changes. More...
 
void addOnStateChange (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the connection state changes. More...
 
String getConnectionId ()
 Gets the connection identifier. More...
 
String getExternalId ()
 Gets the external identifier. More...
 
String getId ()
 Gets the identifier. More...
 
boolean getIsTerminated ()
 Gets a value indicating whether the stream is currently closed or failed. More...
 
boolean getIsTerminating ()
 Gets a value indicating whether the stream is currently closing or failing. More...
 
boolean getIsTerminatingOrTerminated ()
 Gets a value indicating whether the stream is currently closing, failing, closed, or failed. More...
 
boolean getLocalReceive ()
 Gets a value indicating whether the local peer supports receiving media on this stream. More...
 
boolean getLocalSend ()
 Gets a value indicating whether the local peer on this stream supports sending media on this stream. More...
 
String getMediaDescriptionId ()
 Gets the media description ID of this stream. More...
 
boolean getRemoteReceive ()
 Gets a value indicating whether receiving media is supported by the remote peer on this stream. More...
 
boolean getRemoteSend ()
 Gets a value indicating whether sending media is supported by the remote peer on this stream. More...
 
fm.liveswitch.StreamState getState ()
 Gets the state of the stream. More...
 
String getTag ()
 Gets optional data to associate with this instance. More...
 
abstract fm.liveswitch.TransportInfo getTransportInfo ()
 Gets the stream transport info. More...
 
fm.liveswitch.StreamType getType ()
 Gets the type. More...
 
boolean getUseWssForMedia ()
 Gets a value indicating whether W. More...
 
void removeOnDirectionChange (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the stream direction changes. More...
 
void removeOnStateChange (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the connection state changes. More...
 
void setExternalId (String value)
 Sets the external identifier. More...
 
void setLocalReceive (boolean value)
 Sets a value indicating whether the local peer supports receiving media on this stream. More...
 
void setLocalSend (boolean value)
 Sets a value indicating whether the local peer on this stream supports sending media on this stream. More...
 
void setTag (String value)
 Sets optional data to associate with this instance. More...
 
void setUseWssForMedia (boolean value)
 Sets a value indicating whether W. More...
 
 StreamBase (fm.liveswitch.StreamType type)
 Initializes a new instance of the fm.liveswitch.StreamBase class. More...
 
String toString ()
 Returns a string that represents 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 String getLabel ()
 Gets a label that identifies this instance. 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...
 
- Public Member Functions inherited from fm.liveswitch.IMediaStream
abstract void addOnDiscardBitrateNotification (fm.liveswitch.IAction1< fm.liveswitch.BitrateNotification > value)
 Adds a handler that is raised when a bitrate notification is discarded due to policy restrictions or lack of support by the remote endpoint. More...
 
abstract void addOnDiscardBitrateRequest (fm.liveswitch.IAction1< fm.liveswitch.BitrateRequest > value)
 Adds a handler that is raised when a bitrate request is discarded due to policy restrictions or lack of support by the remote endpoint. More...
 
abstract void addOnLocalEncodingDisabled (fm.liveswitch.IAction1< fm.liveswitch.EncodingInfo > value)
 Adds a handler that is raised when a local encoding is disabled. More...
 
abstract void addOnLocalEncodingEnabled (fm.liveswitch.IAction1< fm.liveswitch.EncodingInfo > value)
 Adds a handler that is raised when a local encoding is enabled. More...
 
abstract fm.liveswitch.StreamDirection getCachedLocalDirection ()
 Gets Cached Local Direction for this Media Stream. More...
 
abstract boolean getCodecDisabled (String name)
 Gets whether a codec is disabled. More...
 
abstract fm.liveswitch.TransportInfo getControlTransportInfo ()
 Gets the media stream control transport info. More...
 
abstract fm.liveswitch.MediaStreamInfo getInfo ()
 Gets the media stream info. More...
 
abstract boolean getInputMuted ()
 Gets whether the input track is muted. More...
 
abstract int getLocalBandwidth ()
 Gets the local bandwidth, in kbps. More...
 
abstract String getLocalCanonicalName ()
 Gets the local canonical name. More...
 
abstract int getMaxReceiveBitrate ()
 Gets the maximum desired receive bitrate, in kbps. More...
 
abstract int getMaxSendBitrate ()
 Gets the maximum desired send bitrate, in kbps. More...
 
abstract boolean getOutputMuted ()
 Gets whether the output track is muted. More...
 
abstract String[] getPreferredCodecs ()
 Gets any preferred codecs, in order of preference. More...
 
abstract int getRemoteBandwidth ()
 Gets the remote bandwidth, in kbps. More...
 
abstract String getRemoteCanonicalName ()
 Gets the remote canonical name. More...
 
abstract fm.liveswitch.EncodingInfo getRemoteEncoding ()
 Gets the remote encoding. More...
 
abstract boolean getRemoteMuted ()
 Gets a value that indicates if remote is muted. More...
 
abstract boolean getRemoteRequestedDeactivation ()
 Gets Boolean value set when the server is currently requesting a 0 bitrate. More...
 
abstract fm.liveswitch.SimulcastMode getSimulcastMode ()
 Gets the simulcast mode. More...
 
abstract boolean raiseBitrateNotification (fm.liveswitch.BitrateNotification bitrateNotification)
 Raises a bitrate notification to the remote track. More...
 
abstract boolean raiseBitrateRequest (fm.liveswitch.BitrateRequest bitrateRequest)
 Raises a bitrate request to the local track. More...
 
abstract void removeOnDiscardBitrateNotification (fm.liveswitch.IAction1< fm.liveswitch.BitrateNotification > value)
 Removes a handler that is raised when a bitrate notification is discarded due to policy restrictions or lack of support by the remote endpoint. More...
 
abstract void removeOnDiscardBitrateRequest (fm.liveswitch.IAction1< fm.liveswitch.BitrateRequest > value)
 Removes a handler that is raised when a bitrate request is discarded due to policy restrictions or lack of support by the remote endpoint. More...
 
abstract void removeOnLocalEncodingDisabled (fm.liveswitch.IAction1< fm.liveswitch.EncodingInfo > value)
 Removes a handler that is raised when a local encoding is disabled. More...
 
abstract void removeOnLocalEncodingEnabled (fm.liveswitch.IAction1< fm.liveswitch.EncodingInfo > value)
 Removes a handler that is raised when a local encoding is enabled. More...
 
abstract void setCodecDisabled (String name, boolean disabled)
 Sets whether a codec is disabled. More...
 
abstract void setInputMuted (boolean value)
 Sets whether the input track is muted. More...
 
abstract void setLocalBandwidth (int value)
 Sets the local bandwidth, in kbps. More...
 
abstract void setMaxReceiveBitrate (int value)
 Sets the maximum desired receive bitrate, in kbps. More...
 
abstract void setMaxSendBitrate (int value)
 Sets the maximum desired send bitrate, in kbps. More...
 
abstract void setOutputMuted (boolean value)
 Sets whether the output track is muted. More...
 
abstract void setPreferredCodecs (String[] value)
 Sets any preferred codecs, in order of preference. More...
 
abstract void setRemoteEncoding (fm.liveswitch.EncodingInfo value)
 Sets the remote encoding. More...
 
abstract void setRemoteMuted (boolean value)
 Sets a value that indicates if remote is muted. More...
 
abstract void setSimulcastMode (fm.liveswitch.SimulcastMode value)
 Sets the simulcast mode. More...
 
- Public Member Functions inherited from fm.liveswitch.ISynchronizableStream
abstract void addOnMasterSynchronizeContextReady (fm.liveswitch.IAction1< fm.liveswitch.SynchronizeContext > value)
 Adds a handler that is raised by master streams when the synchronize context is ready. More...
 
abstract String getId ()
 Gets the stream identifier. More...
 
abstract boolean getOutputSynchronizationDisabled ()
 Gets whether output synchronization is disabled. More...
 
abstract String getRemoteDescriptionMediaId ()
 Gets the remote description media identifier. More...
 
abstract fm.liveswitch.SynchronizeContext getSynchronizeContext ()
 Gets the synchronize context. More...
 
abstract fm.liveswitch.ISynchronizer[] getSynchronizers ()
 Gets all synchronizers in the stream output tracks. More...
 
abstract fm.liveswitch.StreamType getType ()
 Gets the stream type. More...
 
abstract void removeOnMasterSynchronizeContextReady (fm.liveswitch.IAction1< fm.liveswitch.SynchronizeContext > value)
 Removes a handler that is raised by master streams when the synchronize context is ready. More...
 
abstract void setOutputSynchronizationDisabled (boolean value)
 Sets whether output synchronization is disabled. More...
 
abstract void setSynchronizeContext (fm.liveswitch.SynchronizeContext value)
 Sets the synchronize context. More...
 
abstract void synchronize (boolean master)
 Initializes synchronization. More...
 

Protected Member Functions

fm.liveswitch.AudioFormat createFormat (fm.liveswitch.sdp.rtp.MapAttribute attribute, fm.liveswitch.sdp.FormatParametersAttribute formatParametersAttribute)
 Creates a format. More...
 
fm.liveswitch.AudioFormat createFormat (String name, int clockRate, String parameters, int payloadType)
 Creates a format. More...
 
fm.liveswitch.IAudioInputCollection createInputCollection (fm.liveswitch.IAudioOutput output)
 Creates an input collection. More...
 
fm.liveswitch.AudioFormatCollection createMediaFormatCollection ()
 Creates a media format collection. More...
 
fm.liveswitch.IAudioOutputCollection createOutputCollection (fm.liveswitch.IAudioInput input)
 Creates an output collection. More...
 
fm.liveswitch.AudioFormat createRedFormat ()
 Creates a RED format. More...
 
fm.liveswitch.AudioFormat createUlpFecFormat ()
 Creates a ulpfec format. More...
 
fm.liveswitch.AudioFormat[] formatArrayFromList (java.util.ArrayList< fm.liveswitch.AudioFormat > formatList)
 Creates a format array from a format list. More...
 
boolean getInputSourceMuted (fm.liveswitch.IAudioOutput input)
 Gets whether an input source is muted. More...
 
boolean getOutputSinkMuted (fm.liveswitch.IAudioInput output)
 Gets whether an output sink is muted. More...
 
fm.liveswitch.IAudioInput[] inputArrayFromList (java.util.ArrayList< fm.liveswitch.IAudioInput > inputList)
 Creates an input array from an input list. More...
 
fm.liveswitch.IAudioOutput[] outputArrayFromList (java.util.ArrayList< fm.liveswitch.IAudioOutput > outputList)
 Creates an output array from an output list. More...
 
void processSdpContentAttribute (fm.liveswitch.sdp.ContentAttribute sdpContentAttribute, boolean isLocalDescription)
 Processes an SDP content attribute. More...
 
void setInputSourceMuted (fm.liveswitch.IAudioOutput input, boolean value)
 Sets whether an input source is muted. More...
 
void setOutputSinkMuted (fm.liveswitch.IAudioInput output, boolean value)
 Sets whether an output sink is muted. More...
 
- Protected Member Functions inherited from fm.liveswitch.MediaStreamBase
void extractCanonicalName (fm.liveswitch.sdp.MediaDescription mediaDescription, boolean isLocalDescription)
 Extracts Canonical Name from SDP and sets it to the appropreate Stream property. More...
 
fm.liveswitch.StreamDirection getPendingLocalDirection ()
 Gets the pending local direction. More...
 
fm.liveswitch.sdp.MediaDescription getRelatedMediaDescription ()
 Gets related SDP Media Description. More...
 
boolean getRenegotiationPending ()
 Gets whether there exist changes that are pending SDP renegotiation. More...
 
abstract void populateInfo (fm.liveswitch.MediaStreamInfo info)
 Populates the media stream info. More...
 
void raiseLocalEncodingDisabled (fm.liveswitch.EncodingInfo encoding)
 Raises the OnLocalEncodingDisabled event. More...
 
void raiseLocalEncodingEnabled (fm.liveswitch.EncodingInfo encoding)
 Raises the OnLocalEncodingEnabled event. More...
 
void setInputContent (String value)
 Sets the input content descriptor. More...
 
void setOutputContent (String value)
 Sets the output content descriptor. More...
 
void setPendingLocalDirection (fm.liveswitch.StreamDirection value)
 Sets the pending local direction. More...
 
void setRelatedMediaDescription (fm.liveswitch.sdp.MediaDescription value)
 Sets related SDP Media Description. More...
 
void setRemoteBandwidth (int value)
 Sets the remote bandwidth in Kbps. More...
 
void setRenegotiationPending (boolean value)
 Sets whether there exist changes that are pending SDP renegotiation. More...
 
- Protected Member Functions inherited from fm.liveswitch.Stream
void processBundledStateChanged (boolean bundled)
 Processes bundled state change of this stream. More...
 
void processCachedSettings ()
 Evaluate cached settings and set them. More...
 
void raiseDisabledChange ()
 Raises the OnDisabledChange event. More...
 
- Protected Member Functions inherited from fm.liveswitch.StreamBase
long getConnectedTimestamp ()
 Gets the ManagedStopwatch.GetTimestamp() value representing the ticks that passed when this stream's connection state changed to connected. More...
 
void processStateChange ()
 Processes a state change. More...
 
void processStateLockChange ()
 Processes a state lock change. More...
 
void processUpdateToMediaStreamIdentification (String oldValue)
 Process update to the MediaDescription Identificiation. 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...
 

Detailed Description

An audio stream.

Constructor & Destructor Documentation

◆ AudioStream() [1/24]

fm.liveswitch.AudioStream.AudioStream ( )

Initializes a new instance of the fm.liveswitch.AudioStream class.

◆ AudioStream() [2/24]

fm.liveswitch.AudioStream.AudioStream ( boolean  discardOutboundDtmfTones)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [3/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioOutput  input)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
inputThe input.

◆ AudioStream() [4/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioOutput  input,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
inputThe input.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [5/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioOutput  input,
fm.liveswitch.IAudioInput  output 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
inputThe input.
outputThe output.

◆ AudioStream() [6/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioOutput  input,
fm.liveswitch.IAudioInput  output,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
inputThe input.
outputThe output.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [7/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioOutput[]  inputs)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
inputsThe inputs.

◆ AudioStream() [8/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioOutput[]  inputs,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
inputsThe inputs.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [9/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioOutput[]  inputs,
fm.liveswitch.IAudioInput[]  outputs 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
inputsThe inputs.
outputsThe outputs.

◆ AudioStream() [10/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioOutput[]  inputs,
fm.liveswitch.IAudioInput[]  outputs,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
inputsThe inputs.
outputsThe outputs.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [11/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.LocalMedia  localMedia)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
localMediaThe local media.

◆ AudioStream() [12/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.LocalMedia  localMedia,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
localMediaThe local media.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [13/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.LocalMedia  localMedia,
fm.liveswitch.RemoteMedia  remoteMedia 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
localMediaThe local media.
remoteMediaThe remote media.

◆ AudioStream() [14/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.LocalMedia  localMedia,
fm.liveswitch.RemoteMedia  remoteMedia,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
localMediaThe local media.
remoteMediaThe remote media.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [15/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.AudioTrack  localTrack)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
localTrackThe local track.

◆ AudioStream() [16/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.AudioTrack  localTrack,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
localTrackThe local track.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [17/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.AudioTrack  localTrack,
fm.liveswitch.AudioTrack  remoteTrack 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
localTrackThe local track.
remoteTrackThe remote track.

◆ AudioStream() [18/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.AudioTrack  localTrack,
fm.liveswitch.AudioTrack  remoteTrack,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
localTrackThe local track.
remoteTrackThe remote track.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [19/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioInput  output)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
outputThe output.

◆ AudioStream() [20/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioInput  output,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
outputThe output.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [21/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioInput[]  outputs)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
outputsThe outputs.

◆ AudioStream() [22/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.IAudioInput[]  outputs,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
outputsThe outputs.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

◆ AudioStream() [23/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.RemoteMedia  remoteMedia)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
remoteMediaThe remote media.

◆ AudioStream() [24/24]

fm.liveswitch.AudioStream.AudioStream ( fm.liveswitch.RemoteMedia  remoteMedia,
boolean  discardOutboundDtmfTones 
)

Initializes a new instance of the fm.liveswitch.AudioStream class.

Parameters
remoteMediaThe remote media.
discardOutboundDtmfTonesWhether to discard outbound DTMF tones.

Member Function Documentation

◆ addOnDiscardOutboundDtmfTones()

void fm.liveswitch.AudioStream.addOnDiscardOutboundDtmfTones ( fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone[]>  value)

Adds a handler that is raised when outbound DTMF tones are discarded due to policy restrictions or lack of support.

◆ addOnReceiveDtmfTone()

void fm.liveswitch.AudioStream.addOnReceiveDtmfTone ( fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone value)

Adds a handler that is raised when a DTMF packet is received.

Implements fm.liveswitch.IAudioStream.

◆ addOnReceiveDtmfToneChange()

void fm.liveswitch.AudioStream.addOnReceiveDtmfToneChange ( fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone value)

Adds a handler that is raised when the received DTMF tone changes.

Implements fm.liveswitch.IAudioStream.

◆ addOnSendDtmfTone()

void fm.liveswitch.AudioStream.addOnSendDtmfTone ( fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone value)

Adds a handler that is raised when a DTMF packet is sent.

Implements fm.liveswitch.IAudioStream.

◆ addOnSendDtmfToneChange()

void fm.liveswitch.AudioStream.addOnSendDtmfToneChange ( fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone value)

Adds a handler that is raised when the sent DTMF tone changes.

Implements fm.liveswitch.IAudioStream.

◆ createFormat() [1/2]

fm.liveswitch.AudioFormat fm.liveswitch.AudioStream.createFormat ( fm.liveswitch.sdp.rtp.MapAttribute  attribute,
fm.liveswitch.sdp.FormatParametersAttribute  formatParametersAttribute 
)
protected

Creates a format.

Parameters
attributeThe attribute.
formatParametersAttributeThe format parameters attribute.

◆ createFormat() [2/2]

fm.liveswitch.AudioFormat fm.liveswitch.AudioStream.createFormat ( String  name,
int  clockRate,
String  parameters,
int  payloadType 
)
protected

Creates a format.

Parameters
nameThe format name.
clockRateThe clock rate.
parametersThe parameters.
payloadTypeThe payload type.

◆ createInputCollection()

fm.liveswitch.IAudioInputCollection fm.liveswitch.AudioStream.createInputCollection ( fm.liveswitch.IAudioOutput  output)
protected

Creates an input collection.

Parameters
outputThe output.

◆ createMediaFormatCollection()

fm.liveswitch.AudioFormatCollection fm.liveswitch.AudioStream.createMediaFormatCollection ( )
protected

Creates a media format collection.

◆ createOutputCollection()

fm.liveswitch.IAudioOutputCollection fm.liveswitch.AudioStream.createOutputCollection ( fm.liveswitch.IAudioInput  input)
protected

Creates an output collection.

Parameters
inputThe input.

◆ createRedFormat()

fm.liveswitch.AudioFormat fm.liveswitch.AudioStream.createRedFormat ( )
protected

Creates a RED format.

◆ createUlpFecFormat()

fm.liveswitch.AudioFormat fm.liveswitch.AudioStream.createUlpFecFormat ( )
protected

Creates a ulpfec format.

◆ formatArrayFromList()

fm.liveswitch.AudioFormat [] fm.liveswitch.AudioStream.formatArrayFromList ( java.util.ArrayList< fm.liveswitch.AudioFormat formatList)
protected

Creates a format array from a format list.

Parameters
formatListThe format list.

◆ getConfig()

fm.liveswitch.AudioConfig fm.liveswitch.AudioStream.getConfig ( )

Gets the output configuration.

(Alias for fm.liveswitch.AudioStream#getOutputConfig.)

Implements fm.liveswitch.IAudioInput.

◆ getDiscardOutboundDtmfTones()

boolean fm.liveswitch.AudioStream.getDiscardOutboundDtmfTones ( )

Gets whether outbound DTMF tones should be discarded.

◆ getDtmfMode()

fm.liveswitch.dtmf.Mode fm.liveswitch.AudioStream.getDtmfMode ( )

Gets the DTMF mode.

◆ getG722Disabled()

boolean fm.liveswitch.AudioStream.getG722Disabled ( )

Gets whether G.722 is disabled.

Implements fm.liveswitch.IAudioStream.

◆ getGain()

double fm.liveswitch.AudioStream.getGain ( )

Gets a value indicating the gain (input amplification) of this sink.

Any value greater than or equal to 0.0 is acceptable. Currently, this value is not used since audio streams require packetized input/output formats.

Implements fm.liveswitch.IAudioInput.

◆ getInputConfig()

fm.liveswitch.AudioConfig fm.liveswitch.AudioStream.getInputConfig ( )

Gets the input configuration.

◆ getInputSourceMuted()

boolean fm.liveswitch.AudioStream.getInputSourceMuted ( fm.liveswitch.IAudioOutput  input)
protected

Gets whether an input source is muted.

Parameters
inputThe input.

◆ getL16Disabled()

boolean fm.liveswitch.AudioStream.getL16Disabled ( )

Gets whether L16 is disabled.

◆ getOpusDisabled()

boolean fm.liveswitch.AudioStream.getOpusDisabled ( )

Gets whether Opus is disabled.

Implements fm.liveswitch.IAudioStream.

◆ getOutputConfig()

fm.liveswitch.AudioConfig fm.liveswitch.AudioStream.getOutputConfig ( )

Gets the output configuration.

◆ getOutputSinkMuted()

boolean fm.liveswitch.AudioStream.getOutputSinkMuted ( fm.liveswitch.IAudioInput  output)
protected

Gets whether an output sink is muted.

Parameters
outputThe output.

◆ getPcmaDisabled()

boolean fm.liveswitch.AudioStream.getPcmaDisabled ( )

Gets whether PCMA is disabled.

Implements fm.liveswitch.IAudioStream.

◆ getPcmuDisabled()

boolean fm.liveswitch.AudioStream.getPcmuDisabled ( )

Gets whether PCMU is disabled.

Implements fm.liveswitch.IAudioStream.

◆ getVolume()

double fm.liveswitch.AudioStream.getVolume ( )

Gets a value indicating the volume (output resistance) of this source.

Valid value range is 0.0 to 1.0, inclusive. Currently, this value is not used since audio streams require packetized input/output formats.

Implements fm.liveswitch.IAudioOutput.

◆ inputArrayFromList()

fm.liveswitch.IAudioInput [] fm.liveswitch.AudioStream.inputArrayFromList ( java.util.ArrayList< fm.liveswitch.IAudioInput inputList)
protected

Creates an input array from an input list.

Parameters
inputListThe input list.

◆ insertDtmfTone()

boolean fm.liveswitch.AudioStream.insertDtmfTone ( fm.liveswitch.dtmf.Tone  dtmfTone)

Inserts a DTMF tone.

Parameters
dtmfToneThe DTMF tone.

Implements fm.liveswitch.IAudioStream.

◆ insertDtmfTones()

boolean fm.liveswitch.AudioStream.insertDtmfTones ( fm.liveswitch.dtmf.Tone[]  dtmfTones)

Inserts DTMF tones.

Parameters
dtmfTonesThe DTMF tones.

Implements fm.liveswitch.IAudioStream.

◆ outputArrayFromList()

fm.liveswitch.IAudioOutput [] fm.liveswitch.AudioStream.outputArrayFromList ( java.util.ArrayList< fm.liveswitch.IAudioOutput outputList)
protected

Creates an output array from an output list.

Parameters
outputListThe output list.

◆ processSdpContentAttribute()

void fm.liveswitch.AudioStream.processSdpContentAttribute ( fm.liveswitch.sdp.ContentAttribute  sdpContentAttribute,
boolean  isLocalDescription 
)
protected

Processes an SDP content attribute.

Parameters
sdpContentAttributeThe SDP content attribute.
isLocalDescriptionWhether the SDP content attribute comes from a local description.

◆ removeOnDiscardOutboundDtmfTones()

void fm.liveswitch.AudioStream.removeOnDiscardOutboundDtmfTones ( fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone[]>  value)

Removes a handler that is raised when outbound DTMF tones are discarded due to policy restrictions or lack of support.

◆ removeOnReceiveDtmfTone()

void fm.liveswitch.AudioStream.removeOnReceiveDtmfTone ( fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone value)

Removes a handler that is raised when a DTMF packet is received.

Implements fm.liveswitch.IAudioStream.

◆ removeOnReceiveDtmfToneChange()

void fm.liveswitch.AudioStream.removeOnReceiveDtmfToneChange ( fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone value)

Removes a handler that is raised when the received DTMF tone changes.

Implements fm.liveswitch.IAudioStream.

◆ removeOnSendDtmfTone()

void fm.liveswitch.AudioStream.removeOnSendDtmfTone ( fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone value)

Removes a handler that is raised when a DTMF packet is sent.

Implements fm.liveswitch.IAudioStream.

◆ removeOnSendDtmfToneChange()

void fm.liveswitch.AudioStream.removeOnSendDtmfToneChange ( fm.liveswitch.IAction1< fm.liveswitch.dtmf.Tone value)

Removes a handler that is raised when the sent DTMF tone changes.

Implements fm.liveswitch.IAudioStream.

◆ setDiscardOutboundDtmfTones()

void fm.liveswitch.AudioStream.setDiscardOutboundDtmfTones ( boolean  value)

Sets whether outbound DTMF tones should be discarded.

◆ setDtmfMode()

void fm.liveswitch.AudioStream.setDtmfMode ( fm.liveswitch.dtmf.Mode  value)

Sets the DTMF mode.

◆ setG722Disabled()

void fm.liveswitch.AudioStream.setG722Disabled ( boolean  value)

Sets whether G.722 is disabled.

Implements fm.liveswitch.IAudioStream.

◆ setGain()

void fm.liveswitch.AudioStream.setGain ( double  value)

Sets a value indicating the gain (input amplification) of this sink.

Any value greater than or equal to 0.0 is acceptable. Currently, this value is not used since audio streams require packetized input/output formats.

Implements fm.liveswitch.IAudioInput.

◆ setInputSourceMuted()

void fm.liveswitch.AudioStream.setInputSourceMuted ( fm.liveswitch.IAudioOutput  input,
boolean  value 
)
protected

Sets whether an input source is muted.

Parameters
inputThe input.
valueThe value.

◆ setL16Disabled()

void fm.liveswitch.AudioStream.setL16Disabled ( boolean  value)

Sets whether L16 is disabled.

◆ setOpusDisabled()

void fm.liveswitch.AudioStream.setOpusDisabled ( boolean  value)

Sets whether Opus is disabled.

Implements fm.liveswitch.IAudioStream.

◆ setOutputSinkMuted()

void fm.liveswitch.AudioStream.setOutputSinkMuted ( fm.liveswitch.IAudioInput  output,
boolean  value 
)
protected

Sets whether an output sink is muted.

Parameters
outputThe output.
valueThe value.

◆ setPcmaDisabled()

void fm.liveswitch.AudioStream.setPcmaDisabled ( boolean  value)

Sets whether PCMA is disabled.

Implements fm.liveswitch.IAudioStream.

◆ setPcmuDisabled()

void fm.liveswitch.AudioStream.setPcmuDisabled ( boolean  value)

Sets whether PCMU is disabled.

Implements fm.liveswitch.IAudioStream.

◆ setVolume()

void fm.liveswitch.AudioStream.setVolume ( double  value)

Sets a value indicating the volume (output resistance) of this source.

Valid value range is 0.0 to 1.0, inclusive. Currently, this value is not used since audio streams require packetized input/output formats.

Implements fm.liveswitch.IAudioOutput.