Commit 52d6857c authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Clean shutdown of pulseaudio on quiting

parent 48dcc35b
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment