openalbridge/openalbridge.h
changeset 2443 fececcbc2189
parent 2421 a4b039ee2eb0
child 2444 ace11b7d8eab
equal deleted inserted replaced
2442:228757f6c54d 2443:fececcbc2189
    17  */
    17  */
    18 
    18 
    19 #ifndef _OALB_INTERFACE_H
    19 #ifndef _OALB_INTERFACE_H
    20 #define _OALB_INTERFACE_H
    20 #define _OALB_INTERFACE_H
    21 
    21 
    22 #include "globals.h"
    22 #include "common.h"
    23 #include "wrappers.h"
    23 #include "wrappers.h"
       
    24 #include "loaders.h"
    24 #include "alc.h"
    25 #include "alc.h"
    25 #include "loaders.h"
       
    26 
    26 
    27 
    27 
    28 #ifdef __CPLUSPLUS
    28 #ifdef __cplusplus
    29 extern "C" {
    29 extern "C" {
    30 #endif 
    30 #endif 
    31         
    31         
    32         ALboolean   openal_init              (char* programname, ALboolean usehardware, unsigned int memorysize);
    32         char      oalb_init               (const char* programname, const char usehardware);
    33         ALboolean   openal_close             (void);
    33         void      oalb_close              (void);
    34         ALboolean   openal_ready             (void);
    34         char      oalb_ready              (void);
    35         ALint       openal_loadfile          (const char *filename);
    35         int32_t   oalb_loadfile           (const char* cFilename);
       
    36         void      oalb_playsound          (const uint32_t iIndex, const char bLoop);
       
    37         void      oalb_pausesound         (const uint32_t iIndex);
       
    38         void      oalb_stopsound          (const uint32_t iIndex);
       
    39         void      oalb_setvolume          (const uint32_t iIndex, const char cPercentage);
       
    40         void      oalb_setglobalvolume    (const char cPercentage);
       
    41         
       
    42        /*
    36         ALboolean   openal_toggleloop        (unsigned int index);
    43         ALboolean   openal_toggleloop        (unsigned int index);
    37         ALboolean   openal_setposition       (unsigned int index, float x, float y, float z);
    44         ALboolean   openal_setposition       (unsigned int index, float x, float y, float z);
    38         ALboolean   openal_setvolume         (unsigned int index, unsigned char percentage);
       
    39         ALboolean   openal_setglobalvolume   (unsigned char percentage);
       
    40         ALboolean   openal_togglemute        (void);
    45         ALboolean   openal_togglemute        (void);
    41         ALboolean   openal_fadeout           (unsigned int index, unsigned short int quantity);
    46         ALboolean   openal_fadeout           (unsigned int index, unsigned short int quantity);
    42         ALboolean   openal_fadein            (unsigned int index, unsigned short int quantity);
    47         ALboolean   openal_fadein            (unsigned int index, unsigned short int quantity);
    43         ALboolean   openal_fade              (unsigned int index, unsigned short int quantity, ALboolean direction);
    48         ALboolean   openal_fade              (unsigned int index, unsigned short int quantity, ALboolean direction);
    44         ALboolean   openal_playsound         (unsigned int index);	
       
    45         ALboolean   openal_pausesound        (unsigned int index);
    49         ALboolean   openal_pausesound        (unsigned int index);
    46         ALboolean   openal_stopsound         (unsigned int index);
    50         */
    47         
    51         
    48 #ifdef __CPLUSPLUS
    52         char SSound_load        (SSound_t* pSound, const char* cFilename);
       
    53         void SSound_close       (SSound_t* pSound);
       
    54         void SSound_play        (SSound_t* pSound, const char bLoop);
       
    55         void SSound_pause       (const SSound_t* pSound);
       
    56         void SSound_continue    (const SSound_t* pSound);
       
    57         void SSound_stop        (SSound_t* pSound);
       
    58         void SSound_volume      (const SSound_t* pSound, const float fPercentage);
       
    59 #ifdef __cplusplus
    49 }
    60 }
    50 #endif
    61 #endif
    51 
    62 
    52 #endif /*_OALB_INTERFACE_H*/
    63 #endif /*_OALB_INTERFACE_H*/