improve process of closing sound devices

This commit is contained in:
Paul Dino Jones 2025-01-25 09:50:11 -05:00
parent 414b9708f4
commit 0e47f53f88
1 changed files with 4 additions and 4 deletions

View File

@ -50,23 +50,23 @@ int setupsound()
int freesound()
{
if (mainloop) {
pa_threaded_mainloop_lock(mainloop);
}
if (context)
pa_context_unref(context);
if (mainloop) {
pa_signal_done();
pa_threaded_mainloop_unlock(mainloop);
pa_threaded_mainloop_free(mainloop);
}
}
#else
int setupsound()
{
slogi("connecting portaudio...");
}