1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

dsound/tests: Test that the shifted frequency is limited to DSBFREQUENCY_MAX.

This commit is contained in:
Anton Baskanov 2023-04-24 09:31:33 +07:00 committed by Alexandre Julliard
parent 315e998951
commit 3d5f2f8796

View file

@ -1449,6 +1449,10 @@ static void test_doppler(GUID *guid, BOOL play)
check_doppler(dsound, listener, play, DS3DMODE_NORMAL, 0, 0, 1, -240, 22050, 44100);
check_doppler(dsound, listener, play, DS3DMODE_NORMAL, 0, 0, 1, 240, 22050, 14700);
/* The shifted frequency is limited to DSBFREQUENCY_MAX. */
/* Wine TODO: The frequency is not limited. */
check_doppler(dsound, listener, play, DS3DMODE_NORMAL, 0, 0, 1, -90, 176400, 200000);
IDirectSound3DListener_Release(listener);
ref = IDirectSoundBuffer_Release(primary);
ok(!ref, "Got outstanding refcount %ld.\n", ref);