aboutsummaryrefslogtreecommitdiff
path: root/backends/midi/alsa.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-12-11 14:38:43 +0000
committerJonathan Gray2003-12-11 14:38:43 +0000
commit7c320d63de7032886f6c8022805501359ffec66e (patch)
tree9e401c3e78ac4a15207abee5ae86bd9fd3dd3a06 /backends/midi/alsa.cpp
parent3174cef1273fb3ff266e8a06f3f89cdd7751855d (diff)
downloadscummvm-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/alsa.cpp')
-rw-r--r--backends/midi/alsa.cpp6
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;
}