Audio Effect State
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
| Property | Type | Description |
| audioChangerType | StateFlow<AudioChangerType> | Current voice changer effect type |
| audioReverbType | StateFlow<AudioReverbType> | Current reverb effect type |
| isEarMonitorOpened | StateFlow<Boolean> | Whether ear monitor is enabled |
| earMonitorVolume | StateFlow<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)
}
}Content copied to clipboard
Constructors
Link copied to clipboard
constructor(audioChangerType: StateFlow<AudioChangerType>, audioReverbType: StateFlow<AudioReverbType>, isEarMonitorOpened: StateFlow<Boolean>, earMonitorVolume: StateFlow<Int>)