From 765ca3a04dafe63b8803443067293ee46f53b951 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 23 Mar 2014 00:55:13 -0400 Subject: music: Add config var for external music program. Mix_SetMusicCMD() allows a program to be specified to configure an external program to be invoked for music playback. Add a config variable (snd_musiccmd) to allow this to be set from a configuration file. Thanks to Holering for his comments on Doomworld about how to do this. --- src/setup/sound.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/setup/sound.c') diff --git a/src/setup/sound.c b/src/setup/sound.c index 9c635335..ab78cdf5 100644 --- a/src/setup/sound.c +++ b/src/setup/sound.c @@ -74,6 +74,7 @@ int snd_musicdevice = SNDDEVICE_SB; int snd_samplerate = 44100; int opl_io_port = 0x388; int snd_cachesize = 64 * 1024 * 1024; +char *snd_musiccmd = ""; static int numChannels = 8; static int sfxVolume = 15; @@ -317,6 +318,7 @@ void BindSoundVariables(void) M_BindVariable("snd_sbirq", &snd_sbirq); M_BindVariable("snd_sbdma", &snd_sbdma); M_BindVariable("snd_mport", &snd_mport); + M_BindVariable("snd_musiccmd", &snd_musiccmd); M_BindVariable("snd_cachesize", &snd_cachesize); M_BindVariable("opl_io_port", &opl_io_port); -- cgit v1.2.3