diff --git a/src/media/audio/pulseaudio/pulselayer.cpp b/src/media/audio/pulseaudio/pulselayer.cpp index a88dd855342c85db711e1ce7b06453a710bc0365..7c89ccbd8638d1d3c6330445d12f49e18936bb9e 100644 --- a/src/media/audio/pulseaudio/pulselayer.cpp +++ b/src/media/audio/pulseaudio/pulselayer.cpp @@ -87,7 +87,7 @@ PulseLayer::PulseLayer(AudioPreference& pref) pa_context_set_state_callback(context_, context_state_callback, this); - if (pa_context_connect(context_, nullptr, PA_CONTEXT_NOAUTOSPAWN, nullptr) < 0) + if (pa_context_connect(context_, nullptr, PA_CONTEXT_NOFLAGS, nullptr) < 0) throw std::runtime_error("Could not connect pulseaudio context to the server"); // wait until context is ready diff --git a/src/media/audio/pulseaudio/pulselayer.h b/src/media/audio/pulseaudio/pulselayer.h index 61926583e42537465b6f5f7cb6da05f2ecce6a79..0664ef17736e85b7682dc88077f47fbb9f9d08f1 100644 --- a/src/media/audio/pulseaudio/pulselayer.h +++ b/src/media/audio/pulseaudio/pulselayer.h @@ -119,7 +119,8 @@ public: ~PulseLayer(); /** - * Write data from the ring buffer to the harware and read data from the hardware + * Write data from the ring buffer to the hardware and read data + * from the hardware. */ void readFromMic(); void writeToSpeaker();