[Bug 28723] Sound stutter in Rage when emulated windows version is set to "Windows 7" (XAudio2 -> mmdevapi sound output path)

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Nov 3 20:15:06 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=28723

--- Comment #26 from Alexey Loukianov <mooroon2 at mail.ru> 2011-11-03 20:15:06 CDT ---
OK, tested with following inside AudioClient_Initialize():

/*This->bufsize_frames = ceil((duration / 10000000.) * fmt->nSamplesPerSec); */
/* FIXME by LeXa2: Temporary hack to force using N*PeriodSize buffer size */
This->bufsize_frames = mmdev_period_frames * 3;

Despite XA2 calling GetBufferSize() behavior remains just as if XA2 ignores the
GetBufferSize() output and sticks with originally requested buffer size. Using
"mmdev_period_frames * 4" also has no effect of XA2 behavior.

Just to be sure I added TRACE() debug prints for "This->bufsize_frames" in
Initialize() and for "*out" in GetBufferSize(). Both report expected buffer
size being either 1323 or 1764 so it is XA2 who refuse to use full buffer size.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list