#include "audio_queue.h"
#include "somo_14d.h"
#include "pic_serial.h"
Go to the source code of this file.
Functions | |
void | audio_queue_add (uns8 phrase) |
void | audio_queue_clear () |
uns8 | audio_queue_empty () |
void | audio_queue_process () |
Variables | |
uns8 | aq_end = 0 |
uns8 | aq_start = 0 |
bit | audio_playing = 0 |
uns8 | audio_queue_fifo [AUDIO_QUEUE_FIFO_SIZE] |
void audio_queue_add | ( | uns8 | phrase | ) |
Definition at line 51 of file audio_queue.c.
References aq_end, aq_start, audio_playing, audio_queue_fifo, somo_14d_set_file_id(), and uns8.
void audio_queue_clear | ( | ) |
Definition at line 105 of file audio_queue.c.
References aq_end, aq_start, audio_playing, end_crit_sec, serial_print_str(), somo_14d_is_busy(), somo_14d_stop(), and start_crit_sec.
uns8 audio_queue_empty | ( | ) |
Definition at line 121 of file audio_queue.c.
References audio_playing.
void audio_queue_process | ( | ) |
Call when audio file completes.
This routine will pluck the next file off the queue and start playing it. Assumes it is in an interrupt otherwise will need wrapping in critsec
Definition at line 81 of file audio_queue.c.
References aq_end, aq_start, audio_playing, audio_queue_fifo, somo_14d_set_file_id(), and uns8.
uns8 aq_end = 0 |
Audio queue fifo end point
Definition at line 47 of file audio_queue.c.
Referenced by audio_queue_add(), audio_queue_clear(), and audio_queue_process().
uns8 aq_start = 0 |
Audio queue fifo start point
Definition at line 45 of file audio_queue.c.
Referenced by audio_queue_add(), audio_queue_clear(), and audio_queue_process().
bit audio_playing = 0 |
Audio playing at present
Definition at line 49 of file audio_queue.c.
Referenced by audio_queue_add(), audio_queue_clear(), audio_queue_empty(), and audio_queue_process().
uns8 audio_queue_fifo[AUDIO_QUEUE_FIFO_SIZE] |
Audio queue fifo
Definition at line 43 of file audio_queue.c.
Referenced by audio_queue_add(), and audio_queue_process().