Merge pull request #173 from FluidSynth/midi_port_type

adjust alsa midi port type
This commit is contained in:
Tom M 2017-07-07 16:41:39 +02:00 committed by GitHub
commit 533fcb3a44

View file

@ -864,7 +864,10 @@ new_fluid_alsa_seq_driver(fluid_settings_t* settings,
SND_SEQ_PORT_CAP_WRITE |
SND_SEQ_PORT_CAP_SUBS_WRITE);
snd_seq_port_info_set_type(port_info,
SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_APPLICATION);
SND_SEQ_PORT_TYPE_MIDI_GM |
SND_SEQ_PORT_TYPE_SYNTHESIZER |
SND_SEQ_PORT_TYPE_APPLICATION |
SND_SEQ_PORT_TYPE_MIDI_GENERIC);
snd_seq_port_info_set_midi_channels(port_info, 16);
snd_seq_port_info_set_port_specified(port_info, 1);