Main Page | Class List | File List | Class Members | File Members

audio.h

Go to the documentation of this file.
00001 /* AUDIO.H */
00002 
00003 #ifndef _AUDIO_H_
00004 #define _AUDIO_H_
00005 
00006 /*
00007  * Audio Codec structure definition
00008  */
00009 typedef struct {
00010   char name[41];
00011   
00012   al_sending_entity *output;
00013   al_receiving_entity *input;
00014 
00015 
00016   char input_filename[256];
00017   char output_filename[256];
00018 
00019 
00020   FILE *input_file;
00021 
00022 } audio_codec;
00023 
00024 
00025 audio_codec *new_audio_codec(char *name);
00026 /*
00027  * Sets up an audio codec and returns a pointer to it
00028  */
00029 
00030 void close_audio_codec(audio_codec *a);
00031 /*
00032  * Closes an audio codec and frees variables 
00033  */
00034 
00035 void code_audio(audio_codec *a);
00036 /*
00037  * Fakes audio coding, either from file or random
00038  */
00039 
00040 void decode_audio(audio_codec *a);
00041 /*
00042  * Sees if there's anything in the AL to receive.  If so, receives
00043  *   and decodes it (just writes to the output file)
00044  */
00045 
00046 
00047 
00048 #endif

Generated on Sun Jul 16 16:27:45 2006 by  doxygen 1.3.9.1