AgoraAudioMixingStateCode Constants Reference

Declared in AgoraEnumerates.h

AgoraAudioMixingStateCode

The current music file playback state. Reports in the localAudioMixingStateDidChanged callback.

Definition

typedef NS_ENUM(NSInteger, AgoraAudioMixingStateCode ) {
   AgoraAudioMixingStatePlaying = 710,
   AgoraAudioMixingStatePaused = 711,
   AgoraAudioMixingStateStopped = 713,
   AgoraAudioMixingStateFailed = 714,
};

Constants

AgoraAudioMixingStatePlaying

710: The music file is playing.

This state comes with one of the following associated reasons:

  • AgoraAudioMixingReasonStartedByUser(720)
  • AgoraAudioMixingReasonOneLoopCompleted(721)
  • AgoraAudioMixingReasonStartNewLoop(722)
  • AgoraAudioMixingReasonResumedByUser(726)
  • Declared In AgoraEnumerates.h.

    AgoraAudioMixingStatePaused

    711: The music file pauses playing.

    This state comes with AgoraAudioMixingReasonPausedByUser(725).

    Declared In AgoraEnumerates.h.

    AgoraAudioMixingStateStopped

    713: The music file stops playing.

    This state comes with one of the following associated reasons:

  • AgoraAudioMixingReasonAllLoopsCompleted(723)
  • AgoraAudioMixingReasonStoppedByUser(724)
  • Declared In AgoraEnumerates.h.

    AgoraAudioMixingStateFailed

    714: An exception occurs during the playback of the music file.

    This state comes with one of the following associated reasons:

  • AgoraAudioMixingReasonCanNotOpen(701)
  • AgoraAudioMixingReasonTooFrequentCall(702)
  • AgoraAudioMixingReasonInterruptedEOF(703)
  • Declared In AgoraEnumerates.h.

    Declared In

    AgoraEnumerates.h