From 6c512892d4691e004c453af5f0c7f3837d87b7fb Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Thu, 13 Nov 2014 01:09:47 -0800 Subject: ao/wasapi: request reset on appropriate events on changes to PKEY_AudioEngine_DeviceFormat, device status, and default device. call ao_reload directly in the change_notify "methods". this requires keeping a device enumerator around for the duration of execution, rather than just for initially querying devices --- audio/out/ao_wasapi.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'audio/out/ao_wasapi.c') diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c index 42317f7b0e..6d66e5bdc3 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -36,11 +36,6 @@ #include "osdep/timer.h" #include "osdep/io.h" -#define EXIT_ON_ERROR(hres) \ - do { if (FAILED(hres)) { goto exit_label; } } while(0) -#define SAFE_RELEASE(unk, release) \ - do { if ((unk) != NULL) { release; (unk) = NULL; } } while(0) - static double get_device_delay(struct wasapi_state *state) { UINT64 sample_count = atomic_load(&state->sample_count); UINT64 position, qpc_position; -- cgit v1.2.3