diff options
author | Simon Howard | 2014-03-23 00:55:13 -0400 |
---|---|---|
committer | Simon Howard | 2014-03-23 00:55:13 -0400 |
commit | 765ca3a04dafe63b8803443067293ee46f53b951 (patch) | |
tree | a8f9fea996d5551748088c51149f8013fd7c78fd /src/setup | |
parent | a3e2dbc78825378307509201f904a1de3bf8bab8 (diff) | |
download | chocolate-doom-765ca3a04dafe63b8803443067293ee46f53b951.tar.gz chocolate-doom-765ca3a04dafe63b8803443067293ee46f53b951.tar.bz2 chocolate-doom-765ca3a04dafe63b8803443067293ee46f53b951.zip |
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.
Diffstat (limited to 'src/setup')
-rw-r--r-- | src/setup/sound.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |