Andrew Eikum : Revert "winmm: Increase mmdevapi buffer sizes.".

Alexandre Julliard julliard at wine.codeweavers.com
Thu Dec 4 16:01:08 CST 2014


Module: wine
Branch: master
Commit: 5b7e49e84a44be9b837716d60961646e4cee0933
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5b7e49e84a44be9b837716d60961646e4cee0933

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Wed Dec  3 13:56:53 2014 -0600

Revert "winmm: Increase mmdevapi buffer sizes.".

This reverts commit fdfff7cf6013a030f2b240b13b02831e502d49e7.

In theory, this commit should have had no affect on winmm-using
applications and just prevented underruns on the mmdevapi side. But
Patrol Falcon abuses the winmm API by modifying the buffer after
passing it to waveOutWrite, and this patch breaks that behavior. We've
improved the winecoreaudio driver since this patch was sent, and so
large buffers should no longer be necessary to avoid underruns.

---

 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 8d7f8ad..32083b8 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 = 100 * 100000 (100 ns) = 1 second */
-#define AC_BUFLEN (100 * 100000)
+/* buffer size = 10 * 100000 (100 ns) = 0.1 seconds */
+#define AC_BUFLEN (10 * 100000)
 #define MAX_DEVICES 256
 #define MAPPER_INDEX 0x3F
 




More information about the wine-cvs mailing list