kcat / openal-soft

OpenAL Soft is a software implementation of the OpenAL 3D audio API.
Other
2.23k stars 536 forks source link

Resampled delay exceeds max (84.50 > 63) when at 96k (non-issue) #974

Closed TheBestKmanEver closed 9 months ago

TheBestKmanEver commented 9 months ago

not really an issue as it's just a Warn but if my system is at 96k 'openal-info' will have "[ALSOFT] (WW) Resampled delay exceeds max (84.50 > 63)" spat out under 'available events'

kcat commented 9 months ago

The delay is referring to the HRTF ear delay, how many samples between the sound being started and it reaching one of the ears from the given position. Since it's sample-based, and there's a limit to the number of samples it can delay in the mixing buffer, higher sample rates will have a higher number of samples to delay, which can exceed that limit.

With HRTF in particular, higher sample rates have a significant impact on performance. Playback shouldn't really be higher than 48khz, there's no real benefit but many downsides.