[Scummvm-cvs-logs] CVS: scummvm/backends/midi alsa.cpp,1.14,1.15

Jonathan Gray khalek at users.sourceforge.net
Thu Dec 11 06:37:00 CET 2003


Update of /cvsroot/scummvm/scummvm/backends/midi
In directory sc8-pr-cvs1:/tmp/cvs-serv11801

Modified Files:
	alsa.cpp 
Log Message:
add config file parameter to specify the desired port when using the ALSA music driver

Index: alsa.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/alsa.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- alsa.cpp	18 Sep 2003 07:27:48 -0000	1.14
+++ alsa.cpp	11 Dec 2003 14:36:01 -0000	1.15
@@ -29,6 +29,8 @@
 
 #include "stdafx.h"
 #include "common/util.h"
+#include "common/config-manager.h"
+
 #include <alsa/asoundlib.h>
 
 /*
@@ -84,8 +86,8 @@
 	_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;
 		}





More information about the Scummvm-git-logs mailing list