SUBSYSTEM: ALSA music driver

We should probably open the sequencer the exact same way, both when
opening the driver and when asking it for available MIDI devices. Not
that I've been able to figure out the difference between "hw" and
"default" from the fine ALSA manual...

And I'm not sure we really need to try and keep compatibility with
ancient (pre-0.9.0?) ALSA any longer...

svn-id: r51014
This commit is contained in:
Torbjörn Andersson 2010-07-19 05:30:40 +00:00
parent efbac08e6b
commit 75dd75a737

View File

@ -290,7 +290,7 @@ MusicDevices AlsaMusicPlugin::getDevices() const {
MusicDevices devices;
snd_seq_t *seq;
if (snd_seq_open(&seq, "default", SND_SEQ_OPEN_DUPLEX, 0) < 0)
if (my_snd_seq_open(&seq) < 0)
return devices; // can't open sequencer
snd_seq_client_info_t *cinfo;