sgdk
sound.h
Go to the documentation of this file.
00001 
00010 #ifndef _SOUND_H_
00011 #define _SOUND_H_
00012 
00017 typedef enum
00018 {
00019     SOUND_PCM_CH_AUTO = -1,       // auto-select
00020     SOUND_PCM_CH1 = 0,            // channel 1
00021     SOUND_PCM_CH2,                // channel 2
00022     SOUND_PCM_CH3,                // channel 3
00023     SOUND_PCM_CH4,                // channel 4
00024 } SoundPCMChannel;
00025 
00030 typedef enum
00031 {
00032     SOUND_PAN_NONE = 0x00,        // mute
00033     SOUND_PAN_RIGHT = 0x40,       // right speaker only
00034     SOUND_PAN_LEFT = 0x80,        // left speaker only
00035     SOUND_PAN_CENTER = 0xC0       // center (both speakers)
00036 } SoundPanning;
00037 
00042 #define SOUND_PCM_CH1_MSK   (1 << SOUND_PCM_CH1)
00043 
00047 #define SOUND_PCM_CH2_MSK   (1 << SOUND_PCM_CH2)
00048 
00052 #define SOUND_PCM_CH3_MSK   (1 << SOUND_PCM_CH3)
00053 
00057 #define SOUND_PCM_CH4_MSK   (1 << SOUND_PCM_CH4)
00058 
00059 
00060 #define SOUND_PCM_AUTO      _Pragma("GCC error \"This method is deprecated, use SOUND_PCM_CH_AUTO instead.\"")
00061 
00062 
00069 void SND_NULL_loadDriver(void);
00076 void SND_NULL_unloadDriver(void);
00077 
00078 
00079 #endif // _SOUND_H_
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines