MT2523 API Reference  LinkIt SDK v4
Enum

Overview

Enumerations

enum  mp3_codec_event_t {
  MP3_CODEC_MEDIA_OK = 0,
  MP3_CODEC_MEDIA_REQUEST,
  MP3_CODEC_MEDIA_UNDERFLOW,
  MP3_CODEC_MEDIA_JUMP_FILE_TO,
  MP3_CODEC_AWS_CHECK_CLOCK_SKEW,
  MP3_CODEC_AWS_CHECK_UNDERFLOW,
  MP3_CODEC_MEDIA_BITSTREAM_END
}
 This enumeration defines the MP3 codec events. More...
 
enum  mp3_codec_state_t {
  MP3_CODEC_STATE_ERROR = -1,
  MP3_CODEC_STATE_IDLE,
  MP3_CODEC_STATE_READY,
  MP3_CODEC_STATE_PLAY,
  MP3_CODEC_STATE_PAUSE,
  MP3_CODEC_STATE_STOP
}
 MP3 codec state. More...
 
enum  mp3_codec_function_return_state_t {
  MP3_CODEC_RETURN_ERROR = -1,
  MP3_CODEC_RETURN_OK = 0
}
 
enum  mp3_codec_data_type_t {
  MP3_CODEC_DATA_TYPE_AUDIO = 1,
  MP3_CODEC_DATA_TYPE_SAMPLES_PER_CHANNEL = 2
}
 

Enumeration Type Documentation

Enumerator
MP3_CODEC_DATA_TYPE_AUDIO 

Data type for audio.

MP3_CODEC_DATA_TYPE_SAMPLES_PER_CHANNEL 

Data type for samples per channel.

This enumeration defines the MP3 codec events.

Enumerator
MP3_CODEC_MEDIA_OK 

The codec operation was successful.

MP3_CODEC_MEDIA_REQUEST 

The MP3 codec requested a bitstream.

MP3_CODEC_MEDIA_UNDERFLOW 

The bitstream has an underflow.

MP3_CODEC_MEDIA_JUMP_FILE_TO 

The MP3 codec requested to jump to specific position on the file.

The position is jump_file_to_specified_position which is a member of mp3_media_handle_s.

MP3_CODEC_MEDIA_BITSTREAM_END 

Tha MP3 codec play constant array end.

Enumerator
MP3_CODEC_RETURN_ERROR 

The MP3 codec reported an error.

MP3_CODEC_RETURN_OK 

The MP3 codec works normally.

MP3 codec state.

Enumerator
MP3_CODEC_STATE_ERROR 

An error occurred.

MP3_CODEC_STATE_IDLE 

The MP3 codec is inactive.

MP3_CODEC_STATE_READY 

The MP3 codec is ready to play the media.

MP3_CODEC_STATE_PLAY 

The MP3 codec is in playing state.

MP3_CODEC_STATE_PAUSE 

The MP3 codec is in pause state.

MP3_CODEC_STATE_STOP 

The MP3 codec has stopped.