onAudioMixingStateChanged property

void Function(AudioMixingStateType state, AudioMixingReasonType reason)? onAudioMixingStateChanged
final

Occurs when the playback state of the music file changes.

This callback is triggered when the playback state of the music file changes and reports the current playback state and error code.

  • state The playback state of the music file. See AudioMixingStateType.
  • reason The error code. See AudioMixingReasonType.

Implementation

final void Function(AudioMixingStateType state, AudioMixingReasonType reason)?
    onAudioMixingStateChanged;