From 6d96d087e53e4672dd30a7d7e8f2f419c8541769 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 23 Apr 2024 20:23:03 +0300 Subject: [PATCH] Move extern declarations to header --- doomgeneric/i_sound.c | 18 ------------------ doomgeneric/i_sound.h | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/doomgeneric/i_sound.c b/doomgeneric/i_sound.c index 4c007ef..bc891e3 100644 --- a/doomgeneric/i_sound.c +++ b/doomgeneric/i_sound.c @@ -60,24 +60,6 @@ static music_module_t *music_module = NULL; int snd_musicdevice = SNDDEVICE_SB; int snd_sfxdevice = SNDDEVICE_SB; -// Sound modules - -void I_InitTimidityConfig(void); -#ifdef FEATURE_SOUND -extern sound_module_t DG_sound_module; -extern music_module_t DG_music_module; -#endif -extern sound_module_t sound_pcsound_module; -extern music_module_t music_opl_module; - -// For OPL module: - -extern int opl_io_port; - -// For native music module: - -extern char *timidity_cfg_path; - // DOS-specific options: These are unused but should be maintained // so that the config file can be shared between chocolate // doom and doom.exe diff --git a/doomgeneric/i_sound.h b/doomgeneric/i_sound.h index e429e96..e31b5e5 100644 --- a/doomgeneric/i_sound.h +++ b/doomgeneric/i_sound.h @@ -234,5 +234,23 @@ extern char *snd_musiccmd; void I_BindSoundVariables(void); +// Sound modules + +void I_InitTimidityConfig(void); +#ifdef FEATURE_SOUND +extern sound_module_t DG_sound_module; +extern music_module_t DG_music_module; +#endif +extern sound_module_t sound_pcsound_module; +extern music_module_t music_opl_module; + +// For OPL module: + +extern int opl_io_port; + +// For native music module: + +extern char *timidity_cfg_path; + #endif