Skip to content

Commit

Permalink
Merge pull request #1369 from Igevorse/bugs2
Browse files Browse the repository at this point in the history
fix #36376: Switching to PulseAudio works
  • Loading branch information
lasconic committed Oct 11, 2014
2 parents a7dab0a + ab9f831 commit daf97e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mscore/pulseaudio.cpp
Expand Up @@ -120,8 +120,10 @@ bool PulseAudio::init(bool)
pa_ml = pa_mainloop_new();
pa_mainloop_api* pa_mlapi = pa_mainloop_get_api(pa_ml);
pa_context* pa_ctx = pa_context_new(pa_mlapi, "MuseScore");
if (pa_context_connect(pa_ctx, NULL, pa_context_flags_t(0), NULL) != 0)
if (pa_context_connect(pa_ctx, NULL, pa_context_flags_t(0), NULL) != 0) {
qDebug("PulseAudio Context Connect Failed with Error: %s", pa_strerror(pa_context_errno(pa_ctx)));
return false;
}

int pa_ready = 0;
pa_context_set_state_callback(pa_ctx, pa_state_cb, &pa_ready);
Expand Down

0 comments on commit daf97e1

Please sign in to comment.