aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-07-27 16:35:28 +0000
committerTorbjörn Andersson2010-07-27 16:35:28 +0000
commit47f93e9d07e64b8746d9008afb1234744e095914 (patch)
tree340d65da3afd48042617c4f2a209e69fb36ebe61 /backends
parent4fa22695908e4dae587959c70713fe119091a475 (diff)
downloadscummvm-rg350-47f93e9d07e64b8746d9008afb1234744e095914.tar.gz
scummvm-rg350-47f93e9d07e64b8746d9008afb1234744e095914.tar.bz2
scummvm-rg350-47f93e9d07e64b8746d9008afb1234744e095914.zip
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. svn-id: r51378
Diffstat (limited to 'backends')
-rw-r--r--backends/midi/alsa.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/backends/midi/alsa.cpp b/backends/midi/alsa.cpp
index 1f7f7d2ba3..2b36cdc3cf 100644
--- a/backends/midi/alsa.cpp
+++ b/backends/midi/alsa.cpp
@@ -93,9 +93,14 @@ int MidiDriver_ALSA::open() {
}
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);