mixer.h
changeset 9 7744cfb49357
parent 8 d2bf7cf9446c
child 10 2fbd0414a1fc
equal deleted inserted replaced
8:d2bf7cf9446c 9:7744cfb49357
    28 #include <SDL/SDL_types.h>
    28 #include <SDL/SDL_types.h>
    29 #include <SDL/SDL_rwops.h>
    29 #include <SDL/SDL_rwops.h>
    30 #include <SDL/SDL_audio.h>
    30 #include <SDL/SDL_audio.h>
    31 
    31 
    32 #include <SDL/begin_code.h>
    32 #include <SDL/begin_code.h>
       
    33 
       
    34 /* Set up for C function definitions, even when using C++ */
       
    35 #ifdef __cplusplus
       
    36 extern "C" {
       
    37 #endif
    33 
    38 
    34 /* The default mixer has 8 simultaneous mixing channels */
    39 /* The default mixer has 8 simultaneous mixing channels */
    35 #ifndef MIX_CHANNELS
    40 #ifndef MIX_CHANNELS
    36 #define MIX_CHANNELS	8
    41 #define MIX_CHANNELS	8
    37 #endif
    42 #endif
   196 
   201 
   197 /* We'll use SDL for reporting errors */
   202 /* We'll use SDL for reporting errors */
   198 #define Mix_SetError	SDL_SetError
   203 #define Mix_SetError	SDL_SetError
   199 #define Mix_GetError	SDL_GetError
   204 #define Mix_GetError	SDL_GetError
   200 
   205 
       
   206 /* Ends C function definitions when using C++ */
       
   207 #ifdef __cplusplus
       
   208 };
       
   209 #endif
   201 #include <SDL/close_code.h>
   210 #include <SDL/close_code.h>
   202 
   211 
   203 #endif /* _MIXER_H_ */
   212 #endif /* _MIXER_H_ */