mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
dsound: Primary buffer size change tests.
It looks like Windows doesn't change the primary buffer length when changing formats so make the tests fail now. This means the current ALSA implementation is broken when hardware acceleration is set to full and the primary buffer format is changed.
This commit is contained in:
parent
03b8fca7e2
commit
c82a63ba97
2 changed files with 17 additions and 21 deletions
|
@ -410,20 +410,18 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
|||
trace(" new Caps: flags=0x%08lx size=%ld\n",new_dsbcaps.dwFlags,
|
||||
new_dsbcaps.dwBufferBytes);
|
||||
}
|
||||
|
||||
|
||||
/* Check for primary buffer size change */
|
||||
if (new_dsbcaps.dwBufferBytes != dsbcaps.dwBufferBytes) {
|
||||
trace(" buffer size changed after SetFormat() - "
|
||||
"previous size was %lu, current size is %lu\n",
|
||||
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
||||
}
|
||||
ok(new_dsbcaps.dwBufferBytes == dsbcaps.dwBufferBytes,
|
||||
" buffer size changed after SetFormat() - "
|
||||
"previous size was %lu, current size is %lu\n",
|
||||
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
||||
|
||||
/* Check for primary buffer flags change */
|
||||
if (new_dsbcaps.dwFlags != dsbcaps.dwFlags) {
|
||||
trace(" flags changed after SetFormat() - "
|
||||
"previous flags were %08lx, current flags are %08lx\n",
|
||||
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
||||
}
|
||||
ok(new_dsbcaps.dwFlags == dsbcaps.dwFlags,
|
||||
" flags changed after SetFormat() - "
|
||||
"previous flags were %08lx, current flags are %08lx\n",
|
||||
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
||||
|
||||
/* Set the CooperativeLevel back to normal */
|
||||
/* DSOUND: Setting DirectSound cooperative level to DSSCL_NORMAL */
|
||||
|
|
|
@ -304,18 +304,16 @@ void test_buffer8(LPDIRECTSOUND8 dso, LPDIRECTSOUNDBUFFER * dsbo,
|
|||
}
|
||||
|
||||
/* Check for primary buffer size change */
|
||||
if (new_dsbcaps.dwBufferBytes != dsbcaps.dwBufferBytes) {
|
||||
trace(" buffer size changed after SetFormat() - "
|
||||
"previous size was %lu, current size is %lu\n",
|
||||
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
||||
}
|
||||
ok(new_dsbcaps.dwBufferBytes == dsbcaps.dwBufferBytes,
|
||||
" buffer size changed after SetFormat() - "
|
||||
"previous size was %lu, current size is %lu\n",
|
||||
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
||||
|
||||
/* Check for primary buffer flags change */
|
||||
if (new_dsbcaps.dwFlags != dsbcaps.dwFlags) {
|
||||
trace(" flags changed after SetFormat() - "
|
||||
"previous flags were %08lx, current flags are %08lx\n",
|
||||
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
||||
}
|
||||
ok(new_dsbcaps.dwFlags == dsbcaps.dwFlags,
|
||||
" flags changed after SetFormat() - "
|
||||
"previous flags were %08lx, current flags are %08lx\n",
|
||||
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
||||
|
||||
/* Set the CooperativeLevel back to normal */
|
||||
/* DSOUND: Setting DirectSound cooperative level to DSSCL_NORMAL */
|
||||
|
|
Loading…
Reference in a new issue