openalbridge/openalbridge.h
changeset 2444 ace11b7d8eab
parent 2443 fececcbc2189
child 2445 5033848d3afa
equal deleted inserted replaced
2443:fececcbc2189 2444:ace11b7d8eab
    27 
    27 
    28 #ifdef __cplusplus
    28 #ifdef __cplusplus
    29 extern "C" {
    29 extern "C" {
    30 #endif 
    30 #endif 
    31         
    31         
    32         char      oalb_init               (const char* programname, const char usehardware);
    32         const char      oalb_init               (const char* programname, const char usehardware);
    33         void      oalb_close              (void);
    33         void            oalb_close              (void);
    34         char      oalb_ready              (void);
    34         char            oalb_ready              (void);
    35         int32_t   oalb_loadfile           (const char* cFilename);
    35         const int32_t   oalb_loadfile           (const char* cFilename);
    36         void      oalb_playsound          (const uint32_t iIndex, const char bLoop);
    36         void            oalb_playsound          (const uint32_t iIndex, const char bLoop);
    37         void      oalb_pausesound         (const uint32_t iIndex);
    37         void            oalb_pausesound         (const uint32_t iIndex);
    38         void      oalb_stopsound          (const uint32_t iIndex);
    38         void            oalb_stopsound          (const uint32_t iIndex);
    39         void      oalb_setvolume          (const uint32_t iIndex, const char cPercentage);
    39         void            oalb_setvolume          (const uint32_t iIndex, const char cPercentage);
    40         void      oalb_setglobalvolume    (const char cPercentage);
    40         void            oalb_setglobalvolume    (const char cPercentage);
    41         
    41         void            oalb_togglemute         (void);
    42        /*
    42        /*
    43         ALboolean   openal_toggleloop        (unsigned int index);
       
    44         ALboolean   openal_setposition       (unsigned int index, float x, float y, float z);
    43         ALboolean   openal_setposition       (unsigned int index, float x, float y, float z);
    45         ALboolean   openal_togglemute        (void);
       
    46         ALboolean   openal_fadeout           (unsigned int index, unsigned short int quantity);
    44         ALboolean   openal_fadeout           (unsigned int index, unsigned short int quantity);
    47         ALboolean   openal_fadein            (unsigned int index, unsigned short int quantity);
    45         ALboolean   openal_fadein            (unsigned int index, unsigned short int quantity);
    48         ALboolean   openal_fade              (unsigned int index, unsigned short int quantity, ALboolean direction);
    46         ALboolean   openal_fade              (unsigned int index, unsigned short int quantity, ALboolean direction);
    49         ALboolean   openal_pausesound        (unsigned int index);
    47         ALboolean   openal_pausesound        (unsigned int index);
    50         */
    48         */
    51         
    49         
    52         char SSound_load        (SSound_t* pSound, const char* cFilename);
    50 
    53         void SSound_close       (SSound_t* pSound);
    51         
    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
    52 #ifdef __cplusplus
    60 }
    53 }
    61 #endif
    54 #endif
    62 
    55 
    63 #endif /*_OALB_INTERFACE_H*/
    56 #endif /*_OALB_INTERFACE_H*/