annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #ifndef _SOUND_H_
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #define _SOUND_H_
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 #define BGM 0
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 #define SHOT_A 1
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 #define SHOT_B 2
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 #define SHOT_C 3
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 #define RING 4
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 #define NEW 5
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 #define JIKIOUT 6
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 #define BOM 7
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 #define SE_VOLUME 60
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 #define LASER_A 4
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 #define LASER_C 5
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 #define JIKIOUT 6
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 #define VH_NAME "\\DATA\\SOUND\\STD0.VH;1"
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 #define VB_NAME "\\DATA\\SOUND\\STD0.VB;1"
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 #define SQVH_ADDR (unsigned char*)0x80180000L
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 #define SQVB_ADDR (unsigned char*)0x80190000L
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 #define SQ_ADDR (unsigned long*)0x80170000L
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 extern void Soundss();
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 extern void SoundPlay(int no);
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 extern void SoundStop();
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 extern int done ;
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 extern void poked( int sig) ;
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 //_______________________________
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 extern void InitSdlMixer(void);
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 extern void LoadSdlMixer(void);
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 extern void FreeSdlMixer(void);
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 extern void PlaySdlMixer(int freq, int ch );
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 extern void PauseSdlMixer(int ch);
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 extern void ResumeSdlMixer(int ch);
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 extern void InitVolume(void);
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 extern void TimeSdlMixer(int fleq, int ch, int time);
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 //______________________________
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
40
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 extern int se_voice[9];
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 extern int vab[10];
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 extern int seq[4];
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 extern int vb_addr[10];
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 extern unsigned char *buf;
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 extern int vh_addr[10];
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
48
7600cdfa8779 copy sound
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 #endif // _SOUND_H_