mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 11:22:44 +01:00
0857d6a3db
Currently, processing of audio samples is called from AudioRenderer's Update method, using a fixed 4 buffers to process the given samples. Games call Update at variable rates, depending on framerate and/or sample count, which causes inconsistency in audio processing. From what I've seen, 60 FPS games update every ~0.004s, but 30 FPS/160 sample games update somewhere between 0.02 and 0.04, 5-10x slower. Not enough samples get fed to the backend, leading to a lot of audio skipping. This PR seeks to address this by de-coupling the audio consumption and the audio update. Update remains the same without calling for buffer queuing, and the consume now schedules itself to run based on the sample rate and count. |
||
---|---|---|
.. | ||
audctl.cpp | ||
audctl.h | ||
auddbg.cpp | ||
auddbg.h | ||
audin_a.cpp | ||
audin_a.h | ||
audin_u.cpp | ||
audin_u.h | ||
audio.cpp | ||
audio.h | ||
audout_a.cpp | ||
audout_a.h | ||
audout_u.cpp | ||
audout_u.h | ||
audrec_a.cpp | ||
audrec_a.h | ||
audrec_u.cpp | ||
audrec_u.h | ||
audren_a.cpp | ||
audren_a.h | ||
audren_u.cpp | ||
audren_u.h | ||
codecctl.cpp | ||
codecctl.h | ||
errors.h | ||
hwopus.cpp | ||
hwopus.h |