Commit c82a63ba authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

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.
parent 03b8fca7
......@@ -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 */
......
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