mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
dsound: Make sure device buflen is initially set to ds_hel_buflen.
This commit is contained in:
parent
d16a634c38
commit
3230ea026a
1 changed files with 2 additions and 3 deletions
|
@ -148,9 +148,8 @@ static HRESULT DSOUND_PrimaryOpen(DirectSoundDevice *device)
|
|||
/* on original windows, the buffer it set to a fixed size, no matter what the settings are.
|
||||
on windows this size is always fixed (tested on win-xp) */
|
||||
if (!device->buflen)
|
||||
buflen = ds_hel_buflen;
|
||||
else /* In case we move from hw accelerated to waveout */
|
||||
buflen = device->buflen;
|
||||
device->buflen = ds_hel_buflen;
|
||||
buflen = device->buflen;
|
||||
buflen -= buflen % device->pwfx->nBlockAlign;
|
||||
device->buflen = buflen;
|
||||
|
||||
|
|
Loading…
Reference in a new issue