We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 64d781e + 958d798 commit 8c23236Copy full SHA for 8c23236
drivers/pulseaudio/audio_driver_pulseaudio.cpp
@@ -35,6 +35,10 @@
35
#include "core/config/project_settings.h"
36
#include "core/os/os.h"
37
38
+#ifdef ALSAMIDI_ENABLED
39
+#include "drivers/alsa/asound-so_wrap.h"
40
+#endif
41
+
42
void AudioDriverPulseAudio::pa_state_cb(pa_context *c, void *userdata) {
43
AudioDriverPulseAudio *ad = (AudioDriverPulseAudio *)userdata;
44
@@ -271,6 +275,10 @@ Error AudioDriverPulseAudio::init() {
271
275
int dylibloader_verbose = 1;
272
276
#else
273
277
int dylibloader_verbose = 0;
278
279
280
+ // If using PulseAudio with ALSA MIDI, we need to initialize ALSA as well
281
+ initialize_asound(dylibloader_verbose);
274
282
#endif
283
if (initialize_pulse(dylibloader_verbose)) {
284
return ERR_CANT_OPEN;
0 commit comments