fm.liveswitch.IAudioTrack Interface Reference

Audio track interface. More...

Public Member Functions

abstract void addOnLevel (fm.liveswitch.IAction1< Double > value)
 Adds a handler that is raised periodically when the audio's level is calculated. More...
 
abstract double getGain ()
 Gets a value indicating the gain (input amplification) of this track. More...
 
abstract int getLevelInterval ()
 Gets the interval in milliseconds between fm.liveswitch.IAudioTrack#addOnLevel events. More...
 
abstract double getVolume ()
 Gets a value indicating the volume (output resistance) of this track. More...
 
abstract void removeOnLevel (fm.liveswitch.IAction1< Double > value)
 Removes a handler that is raised periodically when the audio's level is calculated. More...
 
abstract void setGain (double value)
 Sets a value indicating the gain (input amplification) of this track. More...
 
abstract void setLevelInterval (int value)
 Sets the interval in milliseconds between fm.liveswitch.IAudioTrack#addOnLevel events. More...
 
abstract void setVolume (double value)
 Sets a value indicating the volume (output resistance) of this track. More...
 
- Public Member Functions inherited from fm.liveswitch.IMediaTrack
abstract void addOnDestroyed (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the track is destroyed. More...
 
abstract void addOnMuted (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the track is muted. More...
 
abstract void addOnStarted (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the track is started. More...
 
abstract void addOnStopped (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the track is stopped. More...
 
abstract void addOnUnmuted (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the track is unmuted. More...
 
abstract fm.liveswitch.Future< Object > changeSinkOutput (fm.liveswitch.SinkOutput sinkOutput)
 Changes the sink output while the media track is active. More...
 
abstract fm.liveswitch.Future< Object > changeSourceInput (fm.liveswitch.SourceInput sourceInput)
 Changes the source input while the media track is active. More...
 
abstract boolean destroy ()
 Destroys this media track. More...
 
abstract boolean getMuted ()
 Gets a value indicating whether this track is muted. More...
 
abstract fm.liveswitch.SinkOutput getSinkOutput ()
 Gets the current sink output. More...
 
abstract fm.liveswitch.Future< fm.liveswitch.SinkOutput[]> getSinkOutputs ()
 Gets the available sink outputs. More...
 
abstract fm.liveswitch.SourceInput getSourceInput ()
 Gets the current source input. More...
 
abstract fm.liveswitch.Future< fm.liveswitch.SourceInput[]> getSourceInputs ()
 Gets the available source inputs. More...
 
abstract void removeOnDestroyed (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the track is destroyed. More...
 
abstract void removeOnMuted (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the track is muted. More...
 
abstract void removeOnStarted (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the track is started. More...
 
abstract void removeOnStopped (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the track is stopped. More...
 
abstract void removeOnUnmuted (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the track is unmuted. More...
 
abstract void setMuted (boolean value)
 Sets a value indicating whether this track is muted. More...
 
abstract void setSinkOutput (fm.liveswitch.SinkOutput value)
 Sets the current sink output. More...
 
abstract void setSourceInput (fm.liveswitch.SourceInput value)
 Sets the current source input. More...
 

Detailed Description

Audio track interface.

Member Function Documentation

◆ addOnLevel()

abstract void fm.liveswitch.IAudioTrack.addOnLevel ( fm.liveswitch.IAction1< Double >  value)
abstract

Adds a handler that is raised periodically when the audio's level is calculated.

Implemented in fm.liveswitch.AudioTrack.

◆ getGain()

abstract double fm.liveswitch.IAudioTrack.getGain ( )
abstract

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

Any value greater than or equal to 0.0 is acceptable.

Implemented in fm.liveswitch.AudioTrack.

◆ getLevelInterval()

abstract int fm.liveswitch.IAudioTrack.getLevelInterval ( )
abstract

Gets the interval in milliseconds between fm.liveswitch.IAudioTrack#addOnLevel events.

Implemented in fm.liveswitch.AudioTrack.

◆ getVolume()

abstract double fm.liveswitch.IAudioTrack.getVolume ( )
abstract

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

Valid value range is 0.0 to 1.0, inclusive.

Implemented in fm.liveswitch.AudioTrack.

◆ removeOnLevel()

abstract void fm.liveswitch.IAudioTrack.removeOnLevel ( fm.liveswitch.IAction1< Double >  value)
abstract

Removes a handler that is raised periodically when the audio's level is calculated.

Implemented in fm.liveswitch.AudioTrack.

◆ setGain()

abstract void fm.liveswitch.IAudioTrack.setGain ( double  value)
abstract

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

Any value greater than or equal to 0.0 is acceptable.

Implemented in fm.liveswitch.AudioTrack.

◆ setLevelInterval()

abstract void fm.liveswitch.IAudioTrack.setLevelInterval ( int  value)
abstract

Sets the interval in milliseconds between fm.liveswitch.IAudioTrack#addOnLevel events.

Implemented in fm.liveswitch.AudioTrack.

◆ setVolume()

abstract void fm.liveswitch.IAudioTrack.setVolume ( double  value)
abstract

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

Valid value range is 0.0 to 1.0, inclusive.

Implemented in fm.liveswitch.AudioTrack.