AudioModeManager

Interface for objects managing audio modes.

Functions

Link copied to clipboard
abstract fun canPlay(@NonNull annotation: SoundAnnotation): Boolean
Checks whether sound annotation audio data is supported for playback.
Link copied to clipboard
abstract fun canRecord(@NonNull annotation: SoundAnnotation): Boolean
Checks whether sound annotation can be recorded into.
Link copied to clipboard
abstract fun enterAudioPlaybackMode(@NonNull annotation: SoundAnnotation)
Activates audio playback mode when the sound annotation contains valid sound data in supported format.
Link copied to clipboard
abstract fun enterAudioRecordingMode(@NonNull annotation: SoundAnnotation)
Activates audio recording mode when the sound annotation can be recorded into.
Link copied to clipboard
abstract fun exitActiveAudioMode()
Leaves currently active audio mode (playback or recording).