36 #ifndef __MP3_CODEC_H__ 37 #define __MP3_CODEC_H__ 46 #if defined(MTK_AUDIO_MIXER_SUPPORT) 47 #include "audio_mixer.h" 48 #include "audio_mixer_internal.h" 153 MP3_CODEC_AWS_CHECK_CLOCK_SKEW,
154 MP3_CODEC_AWS_CHECK_UNDERFLOW,
223 uint32_t jump_file_to_specified_position;
250 #ifdef MTK_BT_AWS_ENABLE 257 #if defined(MTK_AUDIO_MIXER_SUPPORT) 258 audio_mixer_track_id_t mixer_track_id;
259 audio_mixer_role_t mixer_track_role;
304 #if defined(MTK_AUDIO_MIXER_SUPPORT)
mp3_codec_data_type_t
Definition: mp3_codec.h:175
uint8_t * buffer_base
Pointer to the ring buffer.
Definition: mp3_codec.h:190
mp3_codec_media_handle_t * mp3_codec_open(mp3_codec_callback_t callback)
This function opens the MP3 codec.
mp3_codec_function_return_state_t mp3_codec_set_memory2(void)
This function sets the memory for MP3 decoder.
Tha MP3 codec play constant array end.
Definition: mp3_codec.h:155
Data type for samples per channel.
Definition: mp3_codec.h:177
mp3_codec_function_return_state_t mp3_codec_close(mp3_codec_media_handle_t *handle)
This function closes the MP3 codec.
The MP3 codec has stopped.
Definition: mp3_codec.h:166
uint32_t read
Index of the ring buffer to read the data.
Definition: mp3_codec.h:193
The MP3 codec reported an error.
Definition: mp3_codec.h:171
void(* mp3_codec_callback_t)(mp3_codec_media_handle_t *handle, mp3_codec_event_t event_id)
This defines the MP3 codec callback function prototype.
Definition: mp3_codec.h:276
mp3_codec_function_return_state_t mp3_codec_get_memory_size(uint32_t *memory_size)
This function gets the memory requirement of MP3 decoder.
The MP3 codec is in pause state.
Definition: mp3_codec.h:165
The MP3 codec is ready to play the media.
Definition: mp3_codec.h:163
bt_avrcp_continuation_data_req_type
Definition: bt_avrcp.h:334
An error occurred.
Definition: mp3_codec.h:161
uint32_t write
Index of the ring buffer to write the data.
Definition: mp3_codec.h:192
mp3_codec_state_t
MP3 codec state.
Definition: mp3_codec.h:160
The bitstream has an underflow.
Definition: mp3_codec.h:151
Shared buffer structure.
Definition: mp3_codec.h:189
The codec operation was successful.
Definition: mp3_codec.h:149
The MP3 codec requested a bitstream.
Definition: mp3_codec.h:150
mp3_codec_function_return_state_t
Definition: mp3_codec.h:170
Data type for audio.
Definition: mp3_codec.h:176
The MP3 codec requested to jump to specific position on the file.
Definition: mp3_codec.h:152
The MP3 codec is in playing state.
Definition: mp3_codec.h:164
The MP3 codec is inactive.
Definition: mp3_codec.h:162
uint32_t buffer_size
Size of the ring buffer.
Definition: mp3_codec.h:191
mp3_codec_function_return_state_t mp3_codec_set_memory(uint8_t *memory)
This function sets the memory for MP3 decoder.
mp3_codec_function_return_state_t mp3_codec_aws_set_initial_sync(mp3_codec_media_handle_t *handle)
This function sets the advanced wireless stereo initial synchronization.
The MP3 codec works normally.
Definition: mp3_codec.h:172
mp3_codec_function_return_state_t mp3_codec_aws_set_flag(mp3_codec_media_handle_t *handle, bool flag)
This function sets the advanced wireless stereo flag.
mp3_codec_event_t
This enumeration defines the MP3 codec events.
Definition: mp3_codec.h:148
void * param
Extended parameter or information.
Definition: mp3_codec.h:194