Atmel Software Framework

mp3_play_data Struct Reference

This is a private message structure.

A generic pointer to this structure is passed to each of the callback functions.

Data Fields

mad_timer_t duration_played
 Duration played. More...
 
const char * filename
 Name of the audio file to play. More...
 
uint8_t * frame_buf
 Pointer to the frame buffer. More...
 
uint32_t frame_buf_data_size
 Size of data stored in the frame buffer. More...
 
const uint8_t * frame_buf_end
 Pointer to the frame buffer end. More...
 
uint8_t * frame_buf_guard
 Pointer to the frame buffer guard. More...
 
uint32_t mp3_end_file_pos
 Position of end of MP3 data in audio file. More...
 
uint32_t mp3_pos
 Position in MP3 data. More...
 
uint32_t mp3_start_file_pos
 Position of start of MP3 data in audio file. More...
 
bool unrecoverable_error
 Whether an unrecoverable error occurred. More...
 
bool verbose
 Whether to be verbose. More...
 

mad_timer_t mp3_play_data::duration_played

Duration played.

Referenced by output().

const char* mp3_play_data::filename

Name of the audio file to play.

uint8_t* mp3_play_data::frame_buf

Pointer to the frame buffer.

Referenced by input(), and play_mp3().

uint32_t mp3_play_data::frame_buf_data_size

Size of data stored in the frame buffer.

Referenced by input().

const uint8_t* mp3_play_data::frame_buf_end

Pointer to the frame buffer end.

Referenced by input(), and play_mp3().

uint8_t* mp3_play_data::frame_buf_guard

Pointer to the frame buffer guard.

Referenced by error(), input(), and play_mp3().

uint32_t mp3_play_data::mp3_end_file_pos

Position of end of MP3 data in audio file.

Referenced by input(), and play_mp3().

uint32_t mp3_play_data::mp3_pos

Position in MP3 data.

Referenced by header(), and input().

uint32_t mp3_play_data::mp3_start_file_pos

Position of start of MP3 data in audio file.

Referenced by header(), and play_mp3().

bool mp3_play_data::unrecoverable_error

Whether an unrecoverable error occurred.

Referenced by input(), and play_mp3().

bool mp3_play_data::verbose

Whether to be verbose.

Referenced by error().