mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
43 lines
1.6 KiB
Diff
43 lines
1.6 KiB
Diff
From 5cfd0ad9a87b738a7bce79c966b476a682892506 Mon Sep 17 00:00:00 2001
|
|
From: Maarten Lankhorst <maarten.lankhorst@canonical.com>
|
|
Date: Tue, 24 Jun 2014 08:48:47 +0200
|
|
Subject: [PATCH 26/43] winepulse: disable the setevent part of the latency
|
|
hack
|
|
|
|
If you get playback glitches in skyrim or other games as a result of
|
|
this patch, PLEASE REPORT TO ME!
|
|
---
|
|
dlls/winepulse.drv/mmdevdrv.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/dlls/winepulse.drv/mmdevdrv.c b/dlls/winepulse.drv/mmdevdrv.c
|
|
index 68de00c..643d55e 100644
|
|
--- a/dlls/winepulse.drv/mmdevdrv.c
|
|
+++ b/dlls/winepulse.drv/mmdevdrv.c
|
|
@@ -1822,7 +1822,7 @@ static HRESULT WINAPI AudioRenderClient_ReleaseBuffer(
|
|
{
|
|
ACImpl *This = impl_from_IAudioRenderClient(iface);
|
|
UINT32 written_bytes = written_frames * pa_frame_size(&This->ss);
|
|
- UINT32 period;
|
|
+// UINT32 period;
|
|
|
|
TRACE("(%p)->(%u, %x)\n", This, written_frames, flags);
|
|
|
|
@@ -1858,10 +1858,10 @@ static HRESULT WINAPI AudioRenderClient_ReleaseBuffer(
|
|
TRACE("Released %u, pad %zu\n", written_frames, This->pad / pa_frame_size(&This->ss));
|
|
assert(This->pad <= This->bufsize_bytes);
|
|
|
|
- period = pa_stream_get_buffer_attr(This->stream)->minreq;
|
|
+// period = pa_stream_get_buffer_attr(This->stream)->minreq;
|
|
/* Require a minimum of 3 periods filled, if possible */
|
|
- if (This->event && This->pad + period <= This->bufsize_bytes && This->pad < period * 3)
|
|
- SetEvent(This->event);
|
|
+// if (This->event && This->pad + period <= This->bufsize_bytes && This->pad < period * 3)
|
|
+// SetEvent(This->event);
|
|
pthread_mutex_unlock(&pulse_lock);
|
|
return S_OK;
|
|
}
|
|
--
|
|
2.0.0
|
|
|