<FMLiveSwitchIAudioTrack> Protocol Reference

Audio track interface. More...

Instance Methods

(void) - addOnLevel:
 Adds a handler that is raised periodically when the audio's level is calculated. More...
 
(double) - addOnLevelWithBlock
 Adds a handler that is raised periodically when the audio's level is calculated. More...
 
(void) - addOnLevelWithBlock:
 Adds a handler that is raised periodically when the audio's level is calculated. More...
 
(double) - gain
 Gets a value indicating the gain (input amplification) of this track. More...
 
(int) - levelInterval
 Gets the interval in milliseconds between addOnLevel: events. More...
 
(void) - removeOnLevel:
 Removes a handler that is raised periodically when the audio's level is calculated. More...
 
(void) - setGain:
 Sets a value indicating the gain (input amplification) of this track. More...
 
(void) - setLevelInterval:
 Sets the interval in milliseconds between addOnLevel: events. More...
 
(void) - setVolume:
 Sets a value indicating the volume (output resistance) of this track. More...
 
(double) - volume
 Gets a value indicating the volume (output resistance) of this track. More...
 
- Instance Methods inherited from <FMLiveSwitchIMediaTrack>
(void) - addOnDestroyed:
 Adds a handler that is raised when the track is destroyed. More...
 
(void) - addOnMuted:
 Adds a handler that is raised when the track is muted. More...
 
(void) - addOnStarted:
 Adds a handler that is raised when the track is started. More...
 
(void) - addOnStopped:
 Adds a handler that is raised when the track is stopped. More...
 
(void) - addOnUnmuted:
 Adds a handler that is raised when the track is unmuted. More...
 
(FMLiveSwitchFuture *) - changeSinkOutput:
 Changes the sink output while the media track is active. More...
 
(FMLiveSwitchFuture *) - changeSourceInput:
 Changes the source input while the media track is active. More...
 
(bool) - destroy
 Destroys this media track. More...
 
(FMLiveSwitchFuture *) - getSinkOutputs
 Gets the available sink outputs. More...
 
(FMLiveSwitchFuture *) - getSourceInputs
 Gets the available source inputs. More...
 
(bool) - muted
 Gets a value indicating whether this track is muted. More...
 
(void) - removeOnDestroyed:
 Removes a handler that is raised when the track is destroyed. More...
 
(void) - removeOnMuted:
 Removes a handler that is raised when the track is muted. More...
 
(void) - removeOnStarted:
 Removes a handler that is raised when the track is started. More...
 
(void) - removeOnStopped:
 Removes a handler that is raised when the track is stopped. More...
 
(void) - removeOnUnmuted:
 Removes a handler that is raised when the track is unmuted. More...
 
(void) - setMuted:
 Sets a value indicating whether this track is muted. More...
 
(void) - setSinkOutput:
 Sets the current sink output. More...
 
(void) - setSourceInput:
 Sets the current source input. More...
 
(FMLiveSwitchSinkOutput *) - sinkOutput
 Gets the current sink output. More...
 
(FMLiveSwitchSourceInput *) - sourceInput
 Gets the current source input. More...
 

Detailed Description

Audio track interface.

Method Documentation

◆ addOnLevel:

- (void) addOnLevel: (FMLiveSwitchAction1 *)  value

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

◆ addOnLevelWithBlock

- (double) addOnLevelWithBlock

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

◆ addOnLevelWithBlock:

- (void) addOnLevelWithBlock: (void(^)(double))  valueBlock

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

◆ gain

- (double) gain

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

Any value greater than or equal to 0.0 is acceptable.

◆ levelInterval

- (int) levelInterval

Gets the interval in milliseconds between addOnLevel: events.

◆ removeOnLevel:

- (void) removeOnLevel: (FMLiveSwitchAction1 *)  value

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

◆ setGain:

- (void) setGain: (double)  value

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

Any value greater than or equal to 0.0 is acceptable.

◆ setLevelInterval:

- (void) setLevelInterval: (int)  value

Sets the interval in milliseconds between addOnLevel: events.

◆ setVolume:

- (void) setVolume: (double)  value

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

Valid value range is 0.0 to 1.0, inclusive.

◆ volume

- (double) volume

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

Valid value range is 0.0 to 1.0, inclusive.