AudioEffectState

data class AudioEffectState(val audioChangerType: StateFlow<AudioChangerType>, val audioReverbType: StateFlow<AudioReverbType>, val isEarMonitorOpened: StateFlow<Boolean>, val earMonitorVolume: StateFlow<Int>)

Audio effect related state data provided by AudioEffectStore

Overview

A comprehensive snapshot of the current audio effect session state. This structure contains all relevant information about voice changer effects, reverb effects, and ear monitor state.

State Property Overview

PropertyTypeDescription
audioChangerTypeStateFlow<AudioChangerType>Current voice changer effect type
audioReverbTypeStateFlow<AudioReverbType>Current reverb effect type
isEarMonitorOpenedStateFlow<Boolean>Whether ear monitor is enabled
earMonitorVolumeStateFlow<Int>Ear monitor volume (0-100)

Note: The state is updated automatically when audio effect settings change. Subscribe to audioEffectState to receive real-time updates.

Usage Example

lifecycleScope.launch {
// Update voice changer UI
store.audioEffectState.audioChangerType.collect { type ->
updateChangerTypeUI(type)
}
}

lifecycleScope.launch {
// Update reverb UI
store.audioEffectState.audioReverbType.collect { type ->
updateReverbTypeUI(type)
}
}

lifecycleScope.launch {
// Update ear monitor UI
store.audioEffectState.isEarMonitorOpened.collect { isOpened ->
updateEarMonitorUI(isOpened)
}
}

Constructors

Link copied to clipboard
constructor(audioChangerType: StateFlow<AudioChangerType>, audioReverbType: StateFlow<AudioReverbType>, isEarMonitorOpened: StateFlow<Boolean>, earMonitorVolume: StateFlow<Int>)

Properties

Link copied to clipboard

Voice changer state.

Link copied to clipboard

Reverb state.

Link copied to clipboard
val earMonitorVolume: StateFlow<Int>

Ear monitor volume, range 0 - 100.

Link copied to clipboard
val isEarMonitorOpened: StateFlow<Boolean>

Ear monitor enabled.