Queue audio files for the somo-14d. More...
#include "config.h"
#include "pic_utils.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 () |
Put the following into your config.h
define AUDIO_QUEUE_FIFO_SIZE 5
Definition in file audio_queue.h.
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.