diff options
author | sunpenghao <sunpenghao1997@outlook.com> | 2024-04-01 17:20:47 +0800 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-19 02:28:23 +0200 |
commit | 503a0f184ca5b12acb355f3b3cf96ca0a5cda200 (patch) | |
tree | f471e2262745a95b4510debcc01c45f8ae006e82 /audio/out/ao_wasapi.h | |
parent | e5d683e187d1e67fcfc944769a7c31cfcc2d0491 (diff) | |
download | mpv-503a0f184ca5b12acb355f3b3cf96ca0a5cda200.tar.bz2 mpv-503a0f184ca5b12acb355f3b3cf96ca0a5cda200.tar.xz |
ao_wasapi: add `--wasapi-exclusive-buffer` option
This allows users to set buffer duration in exclusive mode. We have
been using the default device period as the buffer size and it is
robust enough in most cases. However, on some devices there are
horrible glitches after a stream reset. Unfortunately, the issue is not
consistently reproducible, but using a smaller buffer size (e.g., the
minimum device period) seems to resolve the problem.
Fixes #13715.
Diffstat (limited to 'audio/out/ao_wasapi.h')
-rw-r--r-- | audio/out/ao_wasapi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/out/ao_wasapi.h b/audio/out/ao_wasapi.h index 4e5e9c8a67..e294e317c3 100644 --- a/audio/out/ao_wasapi.h +++ b/audio/out/ao_wasapi.h @@ -91,6 +91,7 @@ typedef struct wasapi_state { // ao options int opt_exclusive; + int opt_exclusive_buffer; // exclusive mode buffer duration in us // format info WAVEFORMATEXTENSIBLE format; |