Path: blob/main/emulators/gngb/files/patch-src_sound.h
16461 views
--- src/sound.h.orig 2003-04-03 13:27:29 UTC1+++ src/sound.h2@@ -22,9 +22,9 @@34#include "global.h"56-Uint32 sample_rate;7-Uint8 bit_per_sample;8-Uint16 sample_per_update;9+extern Uint32 sample_rate;10+extern Uint8 bit_per_sample;11+extern Uint16 sample_per_update;1213typedef struct SoundM114{15@@ -61,7 +61,7 @@ typedef struct SoundM116float sample_env_per_step;17float cp;18}SoundM1;19-SoundM1 snd_m1;20+extern SoundM1 snd_m1;2122typedef struct SoundM223{24@@ -92,7 +92,7 @@ typedef struct SoundM225float sample_env_per_step;26float cp;27}SoundM2;28-SoundM2 snd_m2;29+extern SoundM2 snd_m2;3031typedef struct SoundM332{33@@ -120,7 +120,7 @@ typedef struct SoundM334Uint16 sample_len; // dur�e en samples35float cp;36}SoundM3;37-SoundM3 snd_m3;38+extern SoundM3 snd_m3;3940typedef struct SoundM441{42@@ -149,7 +149,7 @@ typedef struct SoundM443float env_per_step;44float sample_env_per_step;45}SoundM4;46-SoundM4 snd_m4;47+extern SoundM4 snd_m4;4849/* Control general */50typedef struct SoundG51@@ -177,7 +177,7 @@ typedef struct SoundG52Uint8 Sound3_On_Off ;53Uint8 Sound4_On_Off ;54}SoundG;55-SoundG snd_g;56+extern SoundG snd_g;575859#define LEFT 1606162