IVSAudioDevice
This represents an IVSDevice that provides audio samples.
- 
                  
                  
Gets the gain for this audio device.
Declaration
Objective-C
- (float)gain;Swift
func gain() -> Float - 
                  
                  
Sets the gain for this audio device. This will be clamped between 0 and 2. A gain of 1 means no change. A gain less than 1 will suppress, and greater than 1 will amplify.
Declaration
Objective-C
- (void)setGain:(float)gain;Swift
func setGain(_ gain: Float)Parameters
gainthe requested gain
 - 
                  
                  
Set a callback to receive audio stats for this device. This will always be invoked on the main queue.
Declaration
Objective-C
- (void)setStatsCallback:(nullable IVSAudioDeviceStatsCallback)callback;Swift
func setStatsCallback(_ callback: IVSAudioDeviceStatsCallback?)Parameters
callbackthat takes two floats: peak and rms.
 
        IVSAudioDevice Protocol Reference