carb::audio::fPlaybackModeInterauralDelay
Defined in carb/audio/IAudioPlayback.h
-
constexpr PlaybackModeFlags carb::audio::fPlaybackModeInterauralDelay = 0x00000008
flag to indicate whether interaural time delay calculations should occur on this voice.
This will cause the left or right channel(s) of the voice to be delayed by a few frames to simulate the difference in time that it takes a sound to reach one ear versus the other. These calculations will be performed using the current speed of sound for the context and a generalized acoustic model of the human head. This will be ignored for non-spatial sounds and sounds with fewer than two channels. This needs to be set when the voice is created for it to take effect. The performance cost of this effect is minimal when the interaural time delay is set to 0. For now, interaural time delay will only take effect when the SoundData being played is 1 channel and the output device was opened with 2 channels. This effect adds a small level of distortion when an emitter’s angle is changing relative to the listener; this is imperceptible in most audio, but it can be audible with pure sine waves.