misc/libopenalbridge/commands.h
changeset 3697 d5b30d6373fc
parent 3514 59dbd31e9953
equal deleted inserted replaced
3695:c11abf387a7d 3697:d5b30d6373fc
    20                                         if (y != 0)  \
    20                                         if (y != 0)  \
    21                                         openal_toggleloop(x);
    21                                         openal_toggleloop(x);
    22 #ifdef __CPLUSPLUS
    22 #ifdef __CPLUSPLUS
    23 extern "C" {
    23 extern "C" {
    24 #endif
    24 #endif
    25     
    25 
    26     // play, pause, stop a single sound source
    26     // play, pause, stop a single sound source
    27     void openal_pausesound        (unsigned int index);
    27     void openal_pausesound        (unsigned int index);
    28     void openal_stopsound         (unsigned int index);
    28     void openal_stopsound         (unsigned int index);
    29     
    29 
    30     // play a sound and set whether it should loop or not (0/1)
    30     // play a sound and set whether it should loop or not (0/1)
    31     void openal_playsound         (unsigned int index);
    31     void openal_playsound         (unsigned int index);
    32     
    32 
    33     void openal_freesound         (unsigned int index);
    33     void openal_freesound         (unsigned int index);
    34     
    34 
    35     // set or unset the looping property for a sound source
    35     // set or unset the looping property for a sound source
    36     void openal_toggleloop        (unsigned int index);
    36     void openal_toggleloop        (unsigned int index);
    37     
    37 
    38     // set position and volume of a sound source
    38     // set position and volume of a sound source
    39     void openal_setposition       (unsigned int index, float x, float y, float z);
    39     void openal_setposition       (unsigned int index, float x, float y, float z);
    40     void openal_setvolume         (unsigned int index, float gain);
    40     void openal_setvolume         (unsigned int index, float gain);
    41     
    41 
    42     // set volume for all sounds (gain interval is [0-1])
    42     // set volume for all sounds (gain interval is [0-1])
    43     void openal_setglobalvolume   (float gain);
    43     void openal_setglobalvolume   (float gain);
    44     
    44 
    45     // mute or unmute all sounds
    45     // mute or unmute all sounds
    46     void openal_togglemute        (void);
    46     void openal_togglemute        (void);
    47     
    47 
    48     // fade effect,
    48     // fade effect,
    49     void openal_fade              (unsigned int index, unsigned short int quantity, al_fade_t direction);
    49     void openal_fade              (unsigned int index, unsigned short int quantity, al_fade_t direction);
    50     
    50 
    51 #ifdef __CPLUSPLUS
    51 #ifdef __CPLUSPLUS
    52 }
    52 }
    53 #endif
    53 #endif
    54 
    54 
    55 #endif /*_OALB_COMMANDS_H*/
    55 #endif /*_OALB_COMMANDS_H*/