New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible bug in audioPlaySoundFrame #329
Comments
This seems to fix #266 for me. Nice find. |
Thanks for the report. Though it is supposed to read those extra samples in order to properly upscale the audio. So I will have to look into it further. |
Ok, I found the issue. The oversampling was correct, but the buffer was increased by the oversample amount - but these are supposed to be stereo samples, which means the value should have been increased by x2. So it was reading/writing past the end of the buffer... Thanks for pointing out the issue, it was probably responsible for "random" crashes even on Windows. This should be fixed in master now. |
I was building a Win32 version of the latest source. There was a consistent crash whenever the first sound was supposed to be played. (music was fine). I bisected the cause to be introduced in February 2023. Below is the cause commented out, and replaced with the earlier logic, which does seem to work: no crashes, sound is fine. Actually it seems to sound a bit better then the current official x64 binary, where i hear some sound interruptions.
TFE_Jedi\IMuse\imDigitalSound.cpp / function audioPlaySoundFrame
The text was updated successfully, but these errors were encountered: