carb::audio::fPlaybackModeListenerRelative
Defined in carb/audio/IAudioPlayback.h
-
constexpr PlaybackModeFlags carb::audio::fPlaybackModeListenerRelative = 0x00000002
flag to indicate how the spatial attributes of an emitter are to be interpreted.
When true, the emitter’s current position, orientation, and velocity will be added to those of the listener object to get the world coordinates for each value. The spatial calculations will be performed using these calculated world values instead. This is useful for orienting and positioning sounds that are ‘attached’ to the listener’s world representation (ie: camera, player character, weapon, etc), but still move somewhat relative to the listener. When not set, the emitter’s spatial attributes will be assumed to be in world coordinates already and just used directly.