From 7466c7da5bd6136e5f72b08879b32d988c478a50 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 4 Jan 2020 12:26:03 +0100 Subject: [PATCH] - backported ALSA init fix. --- source/zmusic/configuration.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/zmusic/configuration.cpp b/source/zmusic/configuration.cpp index ec4fcea..94554fc 100644 --- a/source/zmusic/configuration.cpp +++ b/source/zmusic/configuration.cpp @@ -190,7 +190,8 @@ struct MidiDeviceList #ifdef HAVE_SYSTEM_MIDI #ifdef __linux__ auto& sequencer = AlsaSequencer::Get(); - auto& dev = sequencer.GetDevices(); + sequencer.EnumerateDevices(); + auto& dev = sequencer.GetInternalDevices(); for (auto& d : dev) { MidiOutDevice mdev = { strdup(d.Name.c_str()), d.ID, MIDIDEV_MAPPER }; // fixme: Correctly determine the type of the device.