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
|
@ -410,20 +410,18 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
|
||||||
trace(" new Caps: flags=0x%08lx size=%ld\n",new_dsbcaps.dwFlags,
|
trace(" new Caps: flags=0x%08lx size=%ld\n",new_dsbcaps.dwFlags,
|
||||||
new_dsbcaps.dwBufferBytes);
|
new_dsbcaps.dwBufferBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for primary buffer size change */
|
/* Check for primary buffer size change */
|
||||||
if (new_dsbcaps.dwBufferBytes != dsbcaps.dwBufferBytes) {
|
ok(new_dsbcaps.dwBufferBytes == dsbcaps.dwBufferBytes,
|
||||||
trace(" buffer size changed after SetFormat() - "
|
" buffer size changed after SetFormat() - "
|
||||||
"previous size was %lu, current size is %lu\n",
|
"previous size was %lu, current size is %lu\n",
|
||||||
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
||||||
}
|
|
||||||
|
|
||||||
/* Check for primary buffer flags change */
|
/* Check for primary buffer flags change */
|
||||||
if (new_dsbcaps.dwFlags != dsbcaps.dwFlags) {
|
ok(new_dsbcaps.dwFlags == dsbcaps.dwFlags,
|
||||||
trace(" flags changed after SetFormat() - "
|
" flags changed after SetFormat() - "
|
||||||
"previous flags were %08lx, current flags are %08lx\n",
|
"previous flags were %08lx, current flags are %08lx\n",
|
||||||
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
||||||
}
|
|
||||||
|
|
||||||
/* Set the CooperativeLevel back to normal */
|
/* Set the CooperativeLevel back to normal */
|
||||||
/* DSOUND: Setting DirectSound cooperative level to DSSCL_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 */
|
/* Check for primary buffer size change */
|
||||||
if (new_dsbcaps.dwBufferBytes != dsbcaps.dwBufferBytes) {
|
ok(new_dsbcaps.dwBufferBytes == dsbcaps.dwBufferBytes,
|
||||||
trace(" buffer size changed after SetFormat() - "
|
" buffer size changed after SetFormat() - "
|
||||||
"previous size was %lu, current size is %lu\n",
|
"previous size was %lu, current size is %lu\n",
|
||||||
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
dsbcaps.dwBufferBytes, new_dsbcaps.dwBufferBytes);
|
||||||
}
|
|
||||||
|
|
||||||
/* Check for primary buffer flags change */
|
/* Check for primary buffer flags change */
|
||||||
if (new_dsbcaps.dwFlags != dsbcaps.dwFlags) {
|
ok(new_dsbcaps.dwFlags == dsbcaps.dwFlags,
|
||||||
trace(" flags changed after SetFormat() - "
|
" flags changed after SetFormat() - "
|
||||||
"previous flags were %08lx, current flags are %08lx\n",
|
"previous flags were %08lx, current flags are %08lx\n",
|
||||||
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
dsbcaps.dwFlags, new_dsbcaps.dwFlags);
|
||||||
}
|
|
||||||
|
|
||||||
/* Set the CooperativeLevel back to normal */
|
/* Set the CooperativeLevel back to normal */
|
||||||
/* DSOUND: Setting DirectSound cooperative level to DSSCL_NORMAL */
|
/* DSOUND: Setting DirectSound cooperative level to DSSCL_NORMAL */
|
||||||
|
|
Loading…
Reference in New Issue