From 7c320d63de7032886f6c8022805501359ffec66e Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 11 Dec 2003 14:38:43 +0000 Subject: add config file parameter to specify the desired port when using the ALSA music driver svn-id: r11583 --- backends/midi/alsa.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backends/midi/alsa.cpp') 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 /* @@ -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; } -- cgit v1.2.3