summaryrefslogtreecommitdiff
path: root/src/m_config.c
diff options
context:
space:
mode:
authorSimon Howard2014-03-23 00:55:13 -0400
committerSimon Howard2014-03-23 00:55:13 -0400
commit765ca3a04dafe63b8803443067293ee46f53b951 (patch)
treea8f9fea996d5551748088c51149f8013fd7c78fd /src/m_config.c
parenta3e2dbc78825378307509201f904a1de3bf8bab8 (diff)
downloadchocolate-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/m_config.c')
-rw-r--r--src/m_config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/m_config.c b/src/m_config.c
index edc0a174..89d24eaf 100644
--- a/src/m_config.c
+++ b/src/m_config.c
@@ -807,6 +807,14 @@ static default_t extra_defaults_list[] =
CONFIG_VARIABLE_INT(snd_maxslicetime_ms),
//!
+ // External command to invoke to perform MIDI playback. If set to
+ // the empty string, SDL_mixer's internal MIDI playback is used.
+ // This only has any effect when snd_musicdevice is set to General
+ // MIDI output.
+
+ CONFIG_VARIABLE_STRING(snd_musiccmd),
+
+ //!
// The I/O port to use to access the OPL chip. Only relevant when
// using native OPL music playback.
//