summaryrefslogtreecommitdiff
path: root/emulators/gngb/files/patch-src_sound.c
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-22 18:38:06 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-22 18:38:06 +0000
commita8b4a281c42c022147a984fa7aaf77ad149278c7 (patch)
treee405a6a742aba68094c2dcca2febfb6b21978a51 /emulators/gngb/files/patch-src_sound.c
parentchinese/zh-librime: Update to 1.6.1 (diff)
Fix build with -fno-common
Diffstat (limited to 'emulators/gngb/files/patch-src_sound.c')
-rw-r--r--emulators/gngb/files/patch-src_sound.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/emulators/gngb/files/patch-src_sound.c b/emulators/gngb/files/patch-src_sound.c
new file mode 100644
index 000000000000..54fd5ba92989
--- /dev/null
+++ b/emulators/gngb/files/patch-src_sound.c
@@ -0,0 +1,20 @@
+--- src/sound.c.orig 2003-04-03 13:27:29 UTC
++++ src/sound.c
+@@ -53,10 +53,17 @@ Uint16 wduty[4][8] =
+ {0,0,0,-1,-1,-1,-1,-1 }
+ };
+
++SoundM1 snd_m1;
++SoundM2 snd_m2;
++SoundM3 snd_m3;
++SoundM4 snd_m4;
++SoundG snd_g;
+
+ double freq_table[2048];
+ double freq_table_m3[2048];
+ long double freq_table_m4[256];
++Uint32 sample_rate;
++Uint16 sample_per_update;
+
+ float lastpos=0,curpos=0;
+ Uint32 buf_size;