[Scummvm-cvs-logs] SF.net SVN: scummvm:[51378] scummvm/trunk/backends/midi/alsa.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Tue Jul 27 18:35:28 CEST 2010
Revision: 51378
http://scummvm.svn.sourceforge.net/scummvm/?rev=51378&view=rev
Author: eriktorbjorn
Date: 2010-07-27 16:35:28 +0000 (Tue, 27 Jul 2010)
Log Message:
-----------
ALSA: Tweak capability and type flags for the MIDI port
This keeps ScummVM's own port from being included in the list of
available MIDI devices.
Modified Paths:
--------------
scummvm/trunk/backends/midi/alsa.cpp
Modified: scummvm/trunk/backends/midi/alsa.cpp
===================================================================
--- scummvm/trunk/backends/midi/alsa.cpp 2010-07-27 16:09:18 UTC (rev 51377)
+++ scummvm/trunk/backends/midi/alsa.cpp 2010-07-27 16:35:28 UTC (rev 51378)
@@ -93,10 +93,15 @@
}
snd_seq_set_client_group(seq_handle, "input");
- my_port = snd_seq_create_simple_port(seq_handle, "SCUMMVM port 0",
- SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_SUBS_WRITE |
- SND_SEQ_PORT_CAP_READ, SND_SEQ_PORT_TYPE_MIDI_GENERIC);
+ // According to http://www.alsa-project.org/~tiwai/alsa-subs.html
+ // you can set read or write capabilities to allow other clients to
+ // read or write the port. I don't think we need that, unless maybe
+ // to be able to record the sound, but I can't get that to work even
+ // with those capabilities.
+ my_port = snd_seq_create_simple_port(seq_handle, "SCUMMVM port 0", 0,
+ SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_APPLICATION);
+
if (my_port < 0) {
snd_seq_close(seq_handle);
error("Can't create port");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list