diff options
author | neonloop | 2022-03-27 16:33:44 +0000 |
---|---|---|
committer | neonloop | 2022-03-27 16:33:44 +0000 |
commit | 8870de89ba1ad9ae08e5f4c7602007b05fab5f3e (patch) | |
tree | 21447aa0ef726eb04317cdd9f0d9481fcb69f297 /patches/snes9x2002 | |
parent | caa956d120b34e4c0deadb9e61af509a88debd09 (diff) | |
download | picoarch-8870de89ba1ad9ae08e5f4c7602007b05fab5f3e.tar.gz picoarch-8870de89ba1ad9ae08e5f4c7602007b05fab5f3e.tar.bz2 picoarch-8870de89ba1ad9ae08e5f4c7602007b05fab5f3e.zip |
Adds dynamic audio rate control option
When DRC is on, game syncs to frame rate instead of audio buffer
capacity. Audio is resampled to generate more samples when buffer is
low and less when buffer is high, to keep buffer 40%-60% full. Buffer
size doubled to keep same avg. audio latency value.
Audio can distort when buffer is out of range, not often during
gameplay. Better resampler could improve but would be slower. When
buffer is always out of range (heavy frameskip), it is better to leave
off, DRC doesn't help anyway then.
Idea from RetroArch audio_driver.c and
https://near.sh/articles/audio/dynamic-rate-control
Diffstat (limited to 'patches/snes9x2002')
0 files changed, 0 insertions, 0 deletions