xenia-canary / xenia-canary

Xbox 360 Emulator Research Project
https://xenia.jp
Other
1.48k stars 169 forks source link

Audio delay #201

Open Rex000 opened 1 year ago

Rex000 commented 1 year ago

Validation

Describe what's going wrong

There is a significant amount of audio delay in every game that I have tried in the latest build and even in the August build. I don't know since when this issue started occurring with canary but I came to know that it's an issue with master as well. Even setting the "apu_max_queued_frames" value to "16" which is stated as the lowest possible barely improves it.

Describe what should happen

No audio delay

If applicable, provide a callstack here, especially for crashes

N/A

If applicable, upload a logfile and link it here

N/A

laurac8r commented 1 year ago

Try

apu = "sdl"
apu_max_queued_frames = 16

in xenia-canary.config.toml

Credit:

  1. https://www.reddit.com/r/emulation/comments/sjpflh/comment/hvn32zb/?utm_source=share&utm_medium=web2x&context=3
  2. https://github.com/xenia-canary/xenia-canary/blob/d84df6e47f5338f0d0cff36bb08c4d27d6c442b4/src/xenia/apu/audio_system.cc#L50
svetter commented 3 months ago

Setting apu_max_queued_frames = 16 definitely helps but there still remains a significant amount of delay. sdl doesn't seem to make a difference on my system at least.

ParanormalBanana commented 2 months ago

Setting apu_max_queued_frames = 16 definitely helps but there still remains a significant amount of delay. sdl doesn't seem to make a difference on my system at least.

Exactly. The delay is somewhere between half a second and a full second. How can we fix this?