k4zmu2a / SpaceCadetPinball

Decompilation of 3D Pinball for Windows – Space Cadet
MIT License
3.45k stars 211 forks source link

works great only issue is sound is scratchy on windows 10 #187

Open psxpetey opened 1 year ago

psxpetey commented 1 year ago

love it can finally play fullscreen I had a workaround with another app but fullscreen wasnt working. With this fulltilt works perfectly just scratchy audio

k4zmu2a commented 1 year ago

I am also seeing crackling sound on Windows with the latest SDL_mixer 2.6.3, but only in x64 build. Test with x86 build.

If you are building from source - downgrade SDL_mixer version, try different frequencies in Mix_OpenAudio.

k4zmu2a commented 1 year ago

This is still a thing in 2.1.0. Happens only with SOUND1.WAV; always in x64 build, sometimes in x86 build. The file itself does not appear to be clipping and plays fine in media players. Potential workaround – resample the file at the loading stage.

k4zmu2a commented 1 year ago

As it turns out, a resampling bug in SDL itself caused this. With the latest version of SDL SOUND1.WAV plays without distortion. I have updated Windows binaries for V2.1.0 release.

psxpetey commented 1 year ago

As it turns out, a resampling bug in SDL itself caused this. With the latest version of SDL SOUND1.WAV plays without distortion. I have updated Windows binaries for V2.1.0 release.

Thanks I’ll be sure to download it I love this implementation you put a lot of love and care into it