Commit 262c5211 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winepulse.drv: Keep buffer size separate from allocated size.

So that it rounds to integral audio frame count. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52225Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com> Signed-off-by: 's avatarAndrew Eikum <aeikum@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 6995b77a
...@@ -876,7 +876,7 @@ static NTSTATUS pulse_create_stream(void *args) ...@@ -876,7 +876,7 @@ static NTSTATUS pulse_create_stream(void *args)
stream->alloc_size = stream->real_bufsize_bytes = stream->alloc_size = stream->real_bufsize_bytes =
stream->bufsize_frames * 2 * pa_frame_size(&stream->ss); stream->bufsize_frames * 2 * pa_frame_size(&stream->ss);
if (NtAllocateVirtualMemory(GetCurrentProcess(), (void **)&stream->local_buffer, if (NtAllocateVirtualMemory(GetCurrentProcess(), (void **)&stream->local_buffer,
0, &stream->real_bufsize_bytes, MEM_COMMIT, PAGE_READWRITE)) 0, &stream->alloc_size, MEM_COMMIT, PAGE_READWRITE))
hr = E_OUTOFMEMORY; hr = E_OUTOFMEMORY;
} else { } else {
UINT32 i, capture_packets; UINT32 i, capture_packets;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment