[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
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/queen command.cpp,1.35,1.36 logic.cpp,1.128,1.129 logic.h,1.84,1.85 talk.cpp,1.57,1.58 xref.txt,1.46,1.47
- Next message: [Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.54,1.55
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
}
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/queen command.cpp,1.35,1.36 logic.cpp,1.128,1.129 logic.h,1.84,1.85 talk.cpp,1.57,1.58 xref.txt,1.46,1.47
- Next message: [Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.54,1.55
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list