summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>2013-12-08 19:14:56 -0300
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2013-12-08 19:14:56 -0300
commit8f4380d6d5a4e149d9c44d2c72446884b588440d (patch)
tree8233311fdab6953dbf46cafcb0708bbb9604928e /audio
parent2329e462291b9803450a67f7e3fac531823b95a6 (diff)
downloadmpv-8f4380d6d5a4e149d9c44d2c72446884b588440d.tar.bz2
mpv-8f4380d6d5a4e149d9c44d2c72446884b588440d.tar.xz
ao_wasapi: Reduce the buffer size to a sane value
The previous RING_BUFFER_COUNT value, 64, would have ao_wasapi buffer 64 frames of audio in the ring buffer; a delay of 1280ms, which is clearly overkill for everything. A value of 8 buffers 8 frames for a total of 160ms.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_wasapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c
index 4bdad1d242..607389adeb 100644
--- a/audio/out/ao_wasapi.c
+++ b/audio/out/ao_wasapi.c
@@ -50,7 +50,7 @@ DEFINE_PROPERTYKEY(PKEY_Device_DeviceDesc,
0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 2);
#endif
-#define RING_BUFFER_COUNT 64
+#define RING_BUFFER_COUNT 8
/* 20 millisecond buffer? */
#define BUFFER_TIME 20000000.0