diff -r 6a8b5f313190 -r f589230fa21b misc/openalbridge/openalbridge.h --- a/misc/openalbridge/openalbridge.h Thu Jun 17 11:42:23 2010 -0400 +++ b/misc/openalbridge/openalbridge.h Thu Jun 17 19:57:51 2010 +0200 @@ -20,6 +20,7 @@ #define _OALB_INTERFACE_H #include "openalbridge_t.h" +#include "commands.h" #ifdef __CPLUSPLUS extern "C" { @@ -37,38 +38,9 @@ // load an audio file into memory and map it to abuffer int openal_loadfile (const char *filename); - // play, pause, stop a single sound source - void openal_playsound (unsigned int index); - void openal_pausesound (unsigned int index); - void openal_stopsound (unsigned int index); - // play a sound and set whether it should loop or not (0/1) - void openal_playsound_loop (unsigned int index, char loops); - - // stop a sound and free the associated buffer - void openal_stopsound_free (unsigned int index, char freesource); - - void openal_freesound (unsigned int index); - - // set or unset the looping property for a sound source - void openal_toggleloop (unsigned int index); - - // set position and volume of a sound source - void openal_setposition (unsigned int index, float x, float y, float z); - void openal_setvolume (unsigned int index, float gain); - - // set volume for all sounds (gain interval is [0-1]) - void openal_setglobalvolume (float gain); - - // mute or unmute all sounds - void openal_togglemute (void); - - // fade effect, - void openal_fade (unsigned int index, unsigned short int quantity, al_fade_t direction); - void openal_fadein (unsigned int index, unsigned short int quantity); - void openal_fadeout (unsigned int index, unsigned short int quantity); - - + /******* other functions continue in commands.h *******/ + #ifdef __CPLUSPLUS } #endif