misc/libopenalbridge/openalbridge.h
changeset 3532 04e2fea3e83a
parent 3529 0e968ba12a84
child 3533 03892fb97ab3
equal deleted inserted replaced
3527:c4e0ef164162 3532:04e2fea3e83a
    25 #ifdef __CPLUSPLUS
    25 #ifdef __CPLUSPLUS
    26 extern "C" {
    26 extern "C" {
    27 #endif
    27 #endif
    28 
    28 
    29     // init audio context and allocate memory
    29     // init audio context and allocate memory
    30     int openal_init               (int memorysize);
    30     int openal_init               (void);
    31 
    31 
    32     // close audio subsytem and free memory
    32     // close audio subsytem and free memory
    33     void openal_close             (void);
    33     void openal_close             (void);
    34 
    34 
    35     // check if openal_init has been called
    35     // check if openal_init has been called
    36     char openal_ready             (void);
    36     char openal_ready             (void);
    37 
    37 
    38     // load an audio file into memory and map it to abuffer
    38     // load an audio file into memory and map it to abuffer
    39     int  openal_loadfile          (const char *filename);
    39     int  openal_loadfile          (const char *filename);
    40 
    40 
    41 
    41     // unloads data from memory and marks a free spot
       
    42     int  openal_unloadfile        (unsigned int index)
       
    43     
    42     /******* other functions continue in commands.h *******/
    44     /******* other functions continue in commands.h *******/
    43     
    45     
    44 #ifdef __CPLUSPLUS
    46 #ifdef __CPLUSPLUS
    45 }
    47 }
    46 #endif
    48 #endif