From e16c91d07ab2acfb83fdeaa6dcfcd25c97666504 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 9 Mar 2014 00:49:39 +0100 Subject: audio/out: make draining a separate operation Until now, this was always conflated with uninit. This was ugly, and also many AOs emulated this manually (or just ignored it). Make draining an explicit operation, so AOs which support it can provide it, and for all others generic code will emulate it. For ao_wasapi, we keep it simple and basically disable the internal draining implementation (maybe it should be restored later). Tested on Linux only. --- audio/out/ao_jack.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'audio/out/ao_jack.c') diff --git a/audio/out/ao_jack.c b/audio/out/ao_jack.c index b3cd3fd6ef..6e9b652f2d 100644 --- a/audio/out/ao_jack.c +++ b/audio/out/ao_jack.c @@ -207,13 +207,10 @@ err_chmap: } // close audio device -static void uninit(struct ao *ao, bool immed) +static void uninit(struct ao *ao) { struct priv *p = ao->priv; - if (!immed) - ao_wait_drain(ao); - jack_client_close(p->client); } -- cgit v1.2.3