audio_queue.h File Reference

Queue audio files for the somo-14d. More...

#include "config.h"
#include "pic_utils.h"
Include dependency graph for audio_queue.h:
This graph shows which files directly or indirectly include this file:

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 ()

Detailed Description

Put the following into your config.h

define AUDIO_QUEUE_FIFO_SIZE 5

Definition in file audio_queue.h.


Function Documentation

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:


Generated on Wed Dec 8 13:46:58 2010 for Pic Pack by  doxygen 1.6.1