Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/emulators/gngb/files/patch-src_sound.h
16461 views
1
--- src/sound.h.orig 2003-04-03 13:27:29 UTC
2
+++ src/sound.h
3
@@ -22,9 +22,9 @@
4
5
#include "global.h"
6
7
-Uint32 sample_rate;
8
-Uint8 bit_per_sample;
9
-Uint16 sample_per_update;
10
+extern Uint32 sample_rate;
11
+extern Uint8 bit_per_sample;
12
+extern Uint16 sample_per_update;
13
14
typedef struct SoundM1
15
{
16
@@ -61,7 +61,7 @@ typedef struct SoundM1
17
float sample_env_per_step;
18
float cp;
19
}SoundM1;
20
-SoundM1 snd_m1;
21
+extern SoundM1 snd_m1;
22
23
typedef struct SoundM2
24
{
25
@@ -92,7 +92,7 @@ typedef struct SoundM2
26
float sample_env_per_step;
27
float cp;
28
}SoundM2;
29
-SoundM2 snd_m2;
30
+extern SoundM2 snd_m2;
31
32
typedef struct SoundM3
33
{
34
@@ -120,7 +120,7 @@ typedef struct SoundM3
35
Uint16 sample_len; // dur�e en samples
36
float cp;
37
}SoundM3;
38
-SoundM3 snd_m3;
39
+extern SoundM3 snd_m3;
40
41
typedef struct SoundM4
42
{
43
@@ -149,7 +149,7 @@ typedef struct SoundM4
44
float env_per_step;
45
float sample_env_per_step;
46
}SoundM4;
47
-SoundM4 snd_m4;
48
+extern SoundM4 snd_m4;
49
50
/* Control general */
51
typedef struct SoundG
52
@@ -177,7 +177,7 @@ typedef struct SoundG
53
Uint8 Sound3_On_Off ;
54
Uint8 Sound4_On_Off ;
55
}SoundG;
56
-SoundG snd_g;
57
+extern SoundG snd_g;
58
59
60
#define LEFT 1
61
62