[PATCH 1/3] winmm: Increase mmdevapi buffer sizes

Andrew Eikum aeikum at codeweavers.com
Wed Aug 21 10:14:59 CDT 2013


The tiny buffer size caused audio capture glitches on OSX, where the OS
often returns audio in half-second chunks.
---
 dlls/winmm/waveform.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c
index 752e64d..74af574 100644
--- a/dlls/winmm/waveform.c
+++ b/dlls/winmm/waveform.c
@@ -68,8 +68,8 @@ static const WCHAR muteW[] = {'M','u','t','e',0};
  *   - We must be able to identify bad devices without crashing.
  */
 
-/* buffer size = 10 * 100000 (100 ns) = 0.1 seconds */
-#define AC_BUFLEN (10 * 100000)
+/* buffer size = 100 * 100000 (100 ns) = 1 second */
+#define AC_BUFLEN (100 * 100000)
 #define MAX_DEVICES 256
 #define MAPPER_INDEX 0x3F
 
-- 
1.8.3.4





More information about the wine-patches mailing list