ref: f3706e77c29b68c74388a44456859506df7d163b
parent: cc0e4a0b1db6345b8c358344786f5aa5c1d8a615
author: Turo Lamminen <[email protected]>
date: Mon Sep 5 19:06:37 EDT 2022
sound: Move extern variable declarations to header
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -494,10 +494,6 @@
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);
--- a/src/i_sound.h
+++ b/src/i_sound.h
@@ -234,6 +234,9 @@
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);
--- 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 */