foxygit / doom Log in
commit f3706e77c29b68c74388a44456859506df7d163b
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Mon Sep 5 23:06:37 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Tue Sep 27 14:04:16 2022 +0300

    sound: Move extern variable declarations to header
---
 src/i_sound.c     | 4 ----
 src/i_sound.h     | 3 +++
 src/setup/sound.h | 1 -
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/i_sound.c b/src/i_sound.c
index 361eb221..d163bdb0 100644
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -494,10 +494,6 @@ boolean I_MusicIsPlaying(void)

 void I_BindSoundVariables(void)
 {
-    extern char *snd_dmxoption;
-    extern int use_libsamplerate;
-    extern float libsamplerate_scale;
-
     M_BindIntVariable("snd_musicdevice",         &snd_musicdevice);
     M_BindIntVariable("snd_sfxdevice",           &snd_sfxdevice);
     M_BindIntVariable("snd_sbport",              &snd_sbport);
diff --git a/src/i_sound.h b/src/i_sound.h
index 038253eb..b8aaf591 100644
--- a/src/i_sound.h
+++ b/src/i_sound.h
@@ -234,6 +234,9 @@ extern int snd_cachesize;
 extern int snd_maxslicetime_ms;
 extern char *snd_musiccmd;
 extern int snd_pitchshift;
+extern char *snd_dmxoption;
+extern int use_libsamplerate;
+extern float libsamplerate_scale;

 void I_BindSoundVariables(void);

diff --git a/src/setup/sound.h b/src/setup/sound.h
index d0c47dc8..a2157013 100644
--- a/src/setup/sound.h
+++ b/src/setup/sound.h
@@ -20,6 +20,5 @@
 void ConfigSound(void *widget, void *user_data);
 void BindSoundVariables(void);

-extern char *snd_dmxoption;

 #endif /* #ifndef SETUP_SOUND_H */