libgameaudio  0.1.0-rc1
libgameaudio.h
Go to the documentation of this file.
1 #ifndef _libgameaudio_h_
2 #define _libgameaudio_h_
3 
12 #define LGA_U_QT 0
13 #define LGA_E_QT 1
14 
21 #define LGA_OPUS 0
22 
29 #define LGA_BGM 0
30 #define LGA_BGS 1
31 #define LGA_ME 2
32 #define LGA_SE 3
33 
43 #define LGA_BGM_LOOP_START 0
44 
48 #define LGA_GAIN 1
49 
66 void lgaInit(int nbgmt, int nbgst, int nmet, int nset, int nbgss, int nses);
67 
80 void lgaProc(void);
81 
87 void lgaTerminate(void);
88 
96 void lgaSetParami(int id, int value);
97 
105 void lgaSetParamf(int id, float value);
106 
114 void lgaLoad(int audio_type, int format, const char *file);
115 
131 void lgaPlay(int audio_type, int tid, int sid);
132 
140 void lgaStop(int qt, int audio_type, int id);
141 
142 #endif
void lgaLoad(int audio_type, int format, const char *file)
Loads an audio track from an audio file.
void lgaPlay(int audio_type, int tid, int sid)
Plays the the i-th track of an audio type.
void lgaProc(void)
Processes libgameaudio state.
void lgaSetParami(int id, int value)
Sets library parameters that modify how certain functions are performed.
void lgaSetParamf(int id, float value)
Sets library parameters that modify how certain functions are performed.
void lgaTerminate(void)
Terminates libgameaudio.
void lgaStop(int qt, int audio_type, int id)
Stops the playing BGM/ME track, if there is any.
void lgaInit(int nbgmt, int nbgst, int nmet, int nset, int nbgss, int nses)
Initializes libgameaudio.