Main Page | Modules | Class Hierarchy | Data Structures | File List | Data Fields | Globals | Related Pages

playa.h

Go to the documentation of this file.
00001 
00010 #ifndef _PLAYA_H_
00011 #define _PLAYA_H_
00012 
00013 #include "extern_def.h"
00014 #include "playa_info.h"
00015 
00016 DCPLAYA_EXTERN_C_START
00017 
00018 
00031 #define PLAYA_STATUS_INIT     0
00032 #define PLAYA_STATUS_READY    1
00033 #define PLAYA_STATUS_STARTING 2
00034 #define PLAYA_STATUS_PLAYING  3
00035 #define PLAYA_STATUS_STOPPING 4
00036 #define PLAYA_STATUS_QUIT     5
00037 #define PLAYA_STATUS_ZOMBIE   6
00038 #define PLAYA_STATUS_REINIT   7
00039 
00048 int playa_init();
00049 
00053 int playa_shutdown();
00054 
00062 int playa_start(const char *fn, int track, int immediat);
00063 
00065 int playa_stop(int flush);
00066 
00068 int playa_pause(int v);
00069 
00074 int playa_volume(int volume);
00075 
00084 int playa_fade(int ms);
00085 
00098 int playa_isplaying();
00099 
00100 
00105 int playa_ispaused(void);
00106 
00111 unsigned int playa_playtime();
00112 
00115 int playa_status();
00116 
00119 const char * playa_statusstr(int status);
00120 
00130 int playa_info(playa_info_t * info, const char *fn);
00131 
00135 void playa_get_buffer(int **b, int *nbSamples, int *counter, int *frq);
00136 
00139 int playa_get_frq(void);
00140 
00146 DCPLAYA_EXTERN_C_END
00147 
00148 #endif

dcplaya documentation version 1.2 Generated on January 2004 by doxygen 1.3.5