MicrophoneMuteMode enum

Strategy used to mute microphone input on iOS/macOS.

Applies to the AVAudioEngine-based audio device module, which is engine-wide (process-global) state. Set via AudioManager.setMicrophoneMuteMode.

Inheritance
Available extensions

Values

voiceProcessing → const MicrophoneMuteMode

Mute using Voice Processing I/O's input mute.

Fast, and the OS keeps observing the input so muted-talker detection remains possible, but the platform plays its mute/unmute sound effect.

restart → const MicrophoneMuteMode

Mute by restarting the audio engine without microphone input.

Slower, but silent and stops microphone input entirely while muted.

inputMixer → const MicrophoneMuteMode

Mute by muting the engine's input mixer node.

Fast and silent; the engine and audio session keep running.

unknown → const MicrophoneMuteMode

The mode could not be determined (e.g. unsupported platform).

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<MicrophoneMuteMode>
A constant List of the values in this enum, in order of their declaration.