summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_wasapi.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-07-07 17:41:16 +0200
committerwm4 <wm4@nowhere>2017-07-07 17:56:18 +0200
commit951c1a4907b107ab2da6509fc6aa99ca30591e08 (patch)
tree36f0ce8bfb2fb97c82b2f2820565ece9b2bc6845 /audio/out/ao_wasapi.h
parent4cb5e53ada84f73f29de0d15a7b67cd32631536a (diff)
downloadmpv-951c1a4907b107ab2da6509fc6aa99ca30591e08.tar.bz2
mpv-951c1a4907b107ab2da6509fc6aa99ca30591e08.tar.xz
ao_wasapi: drop use of AF_FORMAT_S24
Do conversion directly, using the infrastructure that was added before. This also rewrites part of format negotation, I guess. I couldn't test the format that was used for S24 - my hardware does not report support for it. So I commented it, as it could be buggy. Testing this with the wasapi_formats[] entry for 24/24 uncommented would be appreciated.
Diffstat (limited to 'audio/out/ao_wasapi.h')
-rw-r--r--audio/out/ao_wasapi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/out/ao_wasapi.h b/audio/out/ao_wasapi.h
index 8f6e38867c..81c3d93386 100644
--- a/audio/out/ao_wasapi.h
+++ b/audio/out/ao_wasapi.h
@@ -101,6 +101,7 @@ typedef struct wasapi_state {
WAVEFORMATEXTENSIBLE format;
AUDCLNT_SHAREMODE share_mode; // AUDCLNT_SHAREMODE_EXCLUSIVE / SHARED
UINT32 bufferFrameCount; // number of frames in buffer
+ struct ao_convert_fmt convert_format;
change_notify change;
} wasapi_state;