Skip to content
Snippets Groups Projects
Commit 52d6857c authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Clean shutdown of pulseaudio on quiting

parent 48dcc35b
Branches
Tags
No related merge requests found
......@@ -44,16 +44,10 @@ static void audioCallback ( pa_stream* s, size_t bytes, void* userdata )
// Destructor
PulseLayer::~PulseLayer (void)
{
//closeLayer();
/* Delete the pointer streams */
delete playback;
delete record;
closeLayer ();
pa_context_disconnect( context );
pa_context_unref( context );
sleep(2);
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment