shithub: choc

Download patch

ref: 2c50992b689dad64fe7ff03104ee7cbfd066eb40
parent: 46f34c1a52a59550ad6375be8c71690872fa920d
author: Turo Lamminen <[email protected]>
date: Thu Sep 8 11:25:32 EDT 2022

sound: Move a lot of extern declarations to i_sound.h

--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -66,28 +66,6 @@
 // depending on whether the current track is substituted.
 static music_module_t *active_music_module;
 
-// Sound modules
-
-extern void I_InitTimidityConfig(void);
-extern sound_module_t sound_sdl_module;
-extern sound_module_t sound_pcsound_module;
-extern music_module_t music_sdl_module;
-extern music_module_t music_opl_module;
-extern music_module_t music_pack_module;
-
-// For OPL module:
-
-extern int opl_io_port;
-
-// For native music module:
-
-extern char *music_pack_path;
-extern char *fluidsynth_sf_path;
-extern char *timidity_cfg_path;
-#ifdef _WIN32
-extern int winmm_reverb_level;
-extern int winmm_chorus_level;
-#endif
 
 // DOS-specific options: These are unused but should be maintained
 // so that the config file can be shared between chocolate
--- a/src/i_sound.h
+++ b/src/i_sound.h
@@ -250,6 +250,29 @@
 void I_SetOPLDriverVer(opl_driver_ver_t ver);
 void I_OPL_DevMessages(char *, size_t);
 
+// Sound modules
+
+extern void I_InitTimidityConfig(void);
+extern sound_module_t sound_sdl_module;
+extern sound_module_t sound_pcsound_module;
+extern music_module_t music_sdl_module;
+extern music_module_t music_opl_module;
+extern music_module_t music_pack_module;
+
+// For OPL module:
+
+extern int opl_io_port;
+
+// For native music module:
+
+extern char *music_pack_path;
+extern char *fluidsynth_sf_path;
+extern char *timidity_cfg_path;
+#ifdef _WIN32
+extern int winmm_reverb_level;
+extern int winmm_chorus_level;
+#endif
+
 
 #ifdef _WIN32
 extern char *winmm_midi_device;