Anton Baskanov : dsound/tests: Test that the Doppler shift is limited to +-0.5 speed of sound.
Module: wine Branch: master Commit: 8acc3b83e81e23ebe8c62c068ef6c934b6916e8c URL: https://gitlab.winehq.org/wine/wine/-/commit/8acc3b83e81e23ebe8c62c068ef6c93... Author: Anton Baskanov <baskanov(a)gmail.com> Date: Mon Apr 24 09:14:07 2023 +0700 dsound/tests: Test that the Doppler shift is limited to +-0.5 speed of sound. --- dlls/dsound/tests/ds3d.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/dsound/tests/ds3d.c b/dlls/dsound/tests/ds3d.c index 5fa558f7c87..99a1f16cf8e 100644 --- a/dlls/dsound/tests/ds3d.c +++ b/dlls/dsound/tests/ds3d.c @@ -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);
participants (1)
-
Alexandre Julliard