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
cellAudioPortOpen/Timestamp fix #10763
Conversation
Ahh very annoying, I unfortunately removed a years old hack which makes audio speed stay the same no matter what clock's scale is. |
Probably fixed now. The reason was that get_system_time was used where it shouldn't affecting cellAudioGetPortConfig timestamp. |
Restored precious hack, fixed in cellAudioPortOpen. |
Audio is periodically stuttering on this build |
rpcs3/Emu/Cell/lv2/sys_time.cpp
Outdated
{ | ||
return get_system_time() * g_cfg.core.clocks_scale / 100; | ||
return (time ? time : get_system_time()) * g_cfg.core.clocks_scale / 100 - timebase_offset / (g_timebase_freq / 1000000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't it make sense to move all the math on the timebase offset out of here? If not for performance but for readability. It could easily be calculated in part of initalize_timebased_time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out the audio stuttering issue actually occurs for me on all appimage builds (not just this PR) when using the pulseaudio backend. When locally built or when using other audio backends, the audio is fine on this PR.
With that out of the way, it's LGTM.
Samurai Warriors 2 HD I was able to confirm that the playback speed of these movies is normal. |
Fix timestamps exported to the PS3 appplication, we forgot to stretch them out based on system-time offset abd clock-s scaling setting.
Fixes #10757.