Mercurial > hg > old > magoroku_racing
diff sound.h @ 111:7600cdfa8779
copy sound
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 09 Jun 2011 02:23:21 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sound.h Thu Jun 09 02:23:21 2011 +0900 @@ -0,0 +1,49 @@ +#ifndef _SOUND_H_ +#define _SOUND_H_ + +#define BGM 0 +#define SHOT_A 1 +#define SHOT_B 2 +#define SHOT_C 3 +#define RING 4 +#define NEW 5 +#define JIKIOUT 6 +#define BOM 7 + +#define SE_VOLUME 60 + + #define LASER_A 4 + #define LASER_C 5 + #define JIKIOUT 6 + +#define VH_NAME "\\DATA\\SOUND\\STD0.VH;1" +#define VB_NAME "\\DATA\\SOUND\\STD0.VB;1" +#define SQVH_ADDR (unsigned char*)0x80180000L +#define SQVB_ADDR (unsigned char*)0x80190000L +#define SQ_ADDR (unsigned long*)0x80170000L + +extern void Soundss(); +extern void SoundPlay(int no); +extern void SoundStop(); +extern int done ; +extern void poked( int sig) ; +//_______________________________ +extern void InitSdlMixer(void); +extern void LoadSdlMixer(void); +extern void FreeSdlMixer(void); +extern void PlaySdlMixer(int freq, int ch ); +extern void PauseSdlMixer(int ch); +extern void ResumeSdlMixer(int ch); +extern void InitVolume(void); +extern void TimeSdlMixer(int fleq, int ch, int time); +//______________________________ + +extern int se_voice[9]; +extern int vab[10]; +extern int seq[4]; +extern int vb_addr[10]; + +extern unsigned char *buf; +extern int vh_addr[10]; + +#endif // _SOUND_H_