AudioPlayerState
data class AudioPlayerState(val current: AudioPlayerState.CurrentAudioState = CurrentAudioState(), val seekTo: IntFloatMap = intFloatMapOf())
Represents the state of the audio player.
Constructors
Link copied to clipboard
constructor(current: AudioPlayerState.CurrentAudioState = CurrentAudioState(), seekTo: IntFloatMap = intFloatMapOf())
Types
Link copied to clipboard
data class CurrentAudioState(val playingId: Int = -1, val playingSpeed: Float = 1.0f, val playingProgress: Float = 0.0f, val audioUri: String = "", val waveform: List<Float> = emptyList(), val playbackInMs: Int = 0, val durationInMs: Int = 0, val isLoading: Boolean = false, val isPlaying: Boolean = false, val isSeeking: Boolean = false)
Represents the ongoing state of the audio player.