On Thu May 11 03:00:53 2023 +0000, Anton Baskanov wrote:
Thanks for the feedback. I did some more testing to try and reproduce the pitch shifting behavior, but it turns out not to be the case. I modified wave_generate_la() to change the sine wave pitch over time (like a car alarm), and what I see is that Windows just speeds up the sound playback. I also tried to reproduce your results and yes, I got the short blip with this MR and a longer tone on Windows. Notice also that the blip has a much higher pitch. I think that the difference is caused by Windows limiting the Doppler effect to half the speed of sound, so +-350 becomes +-180. There is a patch that adds this limit in the development branch: https://gitlab.winehq.org/baskanov/wine/-/commits/dsound-doppler/
Oh, that makes sense! I'm sorry for the (my) confusion. This patch really improves Zusi 3 when a train passes by, so thanks again, and I hope it will be merged soon. :-)