![]() |
RT-Thread RTOS
An open source embedded real-time operating system
|
#include <dev_audio.h>
Data Fields | |
| struct rt_mempool * | mp |
| struct rt_data_queue | queue |
| struct rt_mutex | lock |
| struct rt_completion | cmp |
| struct rt_audio_buf_info | buf_info |
| rt_uint8_t * | write_data |
| rt_uint16_t | write_index |
| rt_uint16_t | read_index |
| rt_uint32_t | pos |
| rt_uint8_t | event |
| rt_bool_t | activated |
Audio replay.
| struct rt_mempool* rt_audio_replay::mp |
Memory pool for audio replay
| struct rt_data_queue rt_audio_replay::queue |
Replay data queue
| struct rt_mutex rt_audio_replay::lock |
Replay mutex lock
| struct rt_completion rt_audio_replay::cmp |
Replay completion, it will be
| struct rt_audio_buf_info rt_audio_replay::buf_info |
Replay buffer information
| rt_uint8_t* rt_audio_replay::write_data |
Pointer to the data to be written into data queue
| rt_uint16_t rt_audio_replay::write_index |
Index of pointer write_data.It records how much data has been written in currently being played block
| rt_uint16_t rt_audio_replay::read_index |
Index of replaying data for audio device, it indicates index of replay in the blocks which is currently being played
| rt_uint32_t rt_audio_replay::pos |
Global position of audio replay
| rt_uint8_t rt_audio_replay::event |
Event flag
| rt_bool_t rt_audio_replay::activated |
Activaty flag