Constructors
new AudioManager()
new AudioManager():AudioManager
Returns
AudioManager
Methods
allocateCustomAudioEffectSessionAsync()
static allocateCustomAudioEffectSessionAsync(): Promise<number>
Creates a unique session ID for custom audio effects.
This ID can be used to associate audio effects with specific playback or record streams.
Returns
Promise<number>
A promise that resolves to:
- Positive number: New unique session ID
STATUS_NO_MEMORY (-1): Failed to allocate sessionSTATUS_DEAD_OBJECT (-5): Server connection lost
areSystemSoundsEnabledAsync()
static areSystemSoundsEnabledAsync(): Promise<boolean>
Checks if system sounds are currently enabled.
Returns
Promise<boolean>
A promise that resolves to:
true: System sounds are enabledfalse: System sounds are disabled
STATUS_DEAD_OBJECT (-5): Server connection lost

