diff options
author | Jonathan Gray | 2003-12-11 14:38:43 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-12-11 14:38:43 +0000 |
commit | 7c320d63de7032886f6c8022805501359ffec66e (patch) | |
tree | 9e401c3e78ac4a15207abee5ae86bd9fd3dd3a06 /backends/midi | |
parent | 3174cef1273fb3ff266e8a06f3f89cdd7751855d (diff) | |
download | scummvm-rg350-7c320d63de7032886f6c8022805501359ffec66e.tar.gz scummvm-rg350-7c320d63de7032886f6c8022805501359ffec66e.tar.bz2 scummvm-rg350-7c320d63de7032886f6c8022805501359ffec66e.zip |
add config file parameter to specify the desired port when using the ALSA music driver
svn-id: r11583
Diffstat (limited to 'backends/midi')
-rw-r--r-- | backends/midi/alsa.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/midi/alsa.cpp b/backends/midi/alsa.cpp index 7d2c7a7032..f8329621a9 100644 --- a/backends/midi/alsa.cpp +++ b/backends/midi/alsa.cpp @@ -29,6 +29,8 @@ #include "stdafx.h" #include "common/util.h" +#include "common/config-manager.h" + #include <alsa/asoundlib.h> /* @@ -84,8 +86,8 @@ int MidiDriver_ALSA::open() { _isOpen = true; if (!(var = getenv("SCUMMVM_PORT"))) { - // default alsa port if none specified - if (parse_addr("65:0", &seq_client, &seq_port) < 0) { + // use config option if no var specified + if (parse_addr(ConfMan.get("alsa_port").c_str(), &seq_client, &seq_port) < 0) { error("Invalid port %s", var); return -1; } |