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

dsound/tests: Test that the Doppler shift is limited to +-0.5 speed of sound.

This commit is contained in:
Anton Baskanov 2023-04-24 09:14:07 +07:00 committed by Alexandre Julliard
parent 81feccb7e3
commit 8acc3b83e8

View file

@ -1445,6 +1445,12 @@ static void test_doppler(GUID *guid, BOOL play)
check_doppler(dsound, listener, play, DS3DMODE_NORMAL, 0, 90, 1, 0, 22050, 29400);
check_doppler(dsound, listener, play, DS3DMODE_NORMAL, 0, -90, 1, 0, 22050, 17640);
/* The Doppler shift is limited to +-0.5 speed of sound. */
/* Wine TODO: The frequency is not limited. */
check_doppler(dsound, listener, play, DS3DMODE_NORMAL, 0, 0, 1, -240, 22050, 44100);
/* Wine TODO: The frequency is not limited. */
check_doppler(dsound, listener, play, DS3DMODE_NORMAL, 0, 0, 1, 240, 22050, 14700);
IDirectSound3DListener_Release(listener);
ref = IDirectSoundBuffer_Release(primary);
ok(!ref, "Got outstanding refcount %ld.\n", ref);