Wwise SDK
_ak3_d_objects_8h_source
版本
menu
|
Wwise SDK 2025.1.4
|
Ak3DObjects.h
浏览该文件的文档.
32 /// 3D 64-bit vector. Intended as storage for world positions of sounds and objects, benefiting from 64-bit precision range
69 /// 3D vector for some operations in 3D space. Typically intended only for localized calculations due to 32-bit precision
123 // Helper for implicit conversion to AkVector64. ConvertAkVectorToAkVector64 is still preferable to make it more obvious where upconversion occurs.
132 /// Position and orientation of game objects in the world (i.e. supports 64-bit-precision position)
163 /// Set position and orientation. Orientation front and top should be orthogonal and normalized.
175 /// Set position and orientation. Orientation front and top should be orthogonal and normalized.
284 /// Set position and orientation. Orientation front and top should be orthogonal and normalized.
296 /// Set position and orientation. Orientation front and top should be orthogonal and normalized.
368 // Helper for implicit conversion to AkWorldTransform. ConvertAkTransformToAkWorldTransform is still preferable to make it more obvious where upconversion occurs.
447 const AkMultiPositionType MultiPositionType_MultiDirections = AkMultiPositionType_MultiDirections;
457 /// Emitter-listener pair: Positioning data pertaining to a single pair of emitter and listener.
488 /// Get the absolute angle, in radians between 0 and pi, of the emitter's orientation relative to
492 /// Get the absolute angle, in radians between 0 and pi, of the listener's orientation relative to
511 /// Get the emitter-listener-pair-specific gain (due to distance and cone attenuation), linear [0,1], for a given connection type.
563 AkReal32 fScalingFactor; /// Listener scaling factor (see AK::SoundEngine::SetListenerScalingFactor()).
564 bool bSpatialized; /// Whether listener is spatialized or not (see AK::SoundEngine::SetListenerSpatialization()).
void SetOrientation(AkReal32 in_orientFrontX, AkReal32 in_orientFrontY, AkReal32 in_orientFrontZ, AkReal32 in_orientTopX, AkReal32 in_orientTopY, AkReal32 in_orientTopZ)
Set orientation. Orientation front and top should be orthogonal and normalized.
Definition: Ak3DObjects.h:351
AkReal32 Occlusion() const
Get the occlusion factor for this emitter-listener pair
Definition: Ak3DObjects.h:497
AkVector64 ConvertAkVectorToAkVector64(AkVector in)
Definition: Ak3DObjects.h:426
AkReal32 fEmitterAngle
Angle between position vector and emitter orientation.
Definition: Ak3DObjects.h:532
AkReal32 Diffraction() const
Get the diffraction factor for this emitter-listener pair
Definition: Ak3DObjects.h:503
void SetOrientation(const AkVector &in_orientationFront, const AkVector &in_orientationTop)
Set orientation. Orientation front and top should be orthogonal and normalized.
Definition: Ak3DObjects.h:220
void Set(const AkVector64 &in_position, const AkVector &in_orientationFront, const AkVector &in_orientationTop)
Set position and orientation. Orientation front and top should be orthogonal and normalized.
Definition: Ak3DObjects.h:164
void SetOrientation(AkReal32 in_orientFrontX, AkReal32 in_orientFrontY, AkReal32 in_orientFrontZ, AkReal32 in_orientTopX, AkReal32 in_orientTopY, AkReal32 in_orientTopZ)
Set orientation. Orientation front and top should be orthogonal and normalized.
Definition: Ak3DObjects.h:230
AkUInt32 AkRayID
Unique (per emitter) identifier for an emitter-listener ray.
Definition: AkTypedefs.h:66
void Set(AkReal64 in_positionX, AkReal64 in_positionY, AkReal64 in_positionZ, AkReal32 in_orientFrontX, AkReal32 in_orientFrontY, AkReal32 in_orientFrontZ, AkReal32 in_orientTopX, AkReal32 in_orientTopY, AkReal32 in_orientTopZ)
Set position and orientation. Orientation front and top should be orthogonal and normalized.
Definition: Ak3DObjects.h:176
AkReal32 PathGain() const
Get the overall path-contribution gain, used to scale the dry + gamedef + userdef gains
Definition: Ak3DObjects.h:509
const AkMultiPositionType MultiPositionType_SingleSource
Definition: Ak3DObjects.h:445
void Set(AkReal32 in_positionX, AkReal32 in_positionY, AkReal32 in_positionZ, AkReal32 in_orientFrontX, AkReal32 in_orientFrontY, AkReal32 in_orientFrontZ, AkReal32 in_orientTopX, AkReal32 in_orientTopY, AkReal32 in_orientTopZ)
Set position and orientation. Orientation front and top should be orthogonal and normalized.
Definition: Ak3DObjects.h:297
void SetPosition(AkReal32 in_x, AkReal32 in_y, AkReal32 in_z)
Set position.
Definition: Ak3DObjects.h:329
Emitter-listener pair: Positioning data pertaining to a single pair of emitter and listener.
Definition: Ak3DObjects.h:459
AkReal32 fGameDefAuxMixGain
Emitter-listener-pair-specific gain (due to distance and cone attenuation) for game-defined send conn...
Definition: Ak3DObjects.h:535
AkReal32 fPathGain
Emitter-listener-pair-specific overall gain that scales fDryMixGain, fGameDefAuxMixGain and fUserDefA...
Definition: Ak3DObjects.h:544
AkWorldTransform ConvertAkTransformToAkWorldTransform(AkTransform in)
Definition: Ak3DObjects.h:435
AkGameObjectID ListenerID() const
Get listener ID associated with the emitter-listener pair.
Definition: Ak3DObjects.h:528
void SetOrientation(const AkVector &in_orientationFront, const AkVector &in_orientationTop)
Set orientation. Orientation front and top should be orthogonal and normalized.
Definition: Ak3DObjects.h:341
AkReal32 fDiffraction
Emitter-listener-pair-specific diffraction coefficient
Definition: Ak3DObjects.h:539
@ AkMultiPositionType_MultiDirections
Simulate one sound coming from multiple directions. Useful for repositionning sounds based on wall op...
Definition: AkEnums.h:319
const AkMultiPositionType MultiPositionType_MultiSources
Definition: Ak3DObjects.h:446
AkReal32 Obstruction() const
Get the obstruction factor for this emitter-listener pair
Definition: Ak3DObjects.h:500
void Set(const AkVector &in_position, const AkVector &in_orientationFront, const AkVector &in_orientationTop)
Set position and orientation. Orientation front and top should be orthogonal and normalized.
Definition: Ak3DObjects.h:285
Positioning information for a sound, with specified subset of its channels.
Definition: Ak3DObjects.h:390
AkReal32 GetGainForConnectionType(AkConnectionType in_eType) const
Get the emitter-listener-pair-specific gain (due to distance and cone attenuation),...
Definition: Ak3DObjects.h:512
AkTransform ConvertAkWorldTransformToAkTransform(AkWorldTransform in)
Definition: Ak3DObjects.h:418
bool bSpatialized
Listener scaling factor (see AK::SoundEngine::SetListenerScalingFactor()).
Definition: Ak3DObjects.h:564
AkVector ConvertAkVector64ToAkVector(AkVector64 in)
Definition: Ak3DObjects.h:408
AkReal32 fScalingFactor
Combined scaling factor due to both emitter and listener.
Definition: Ak3DObjects.h:543
AkReal32 fDryMixGain
Emitter-listener-pair-specific gain (due to distance and cone attenuation) for direct connections.
Definition: Ak3DObjects.h:534
AkReal32 fListenerAngle
Angle between position vector and listener orientation.
Definition: Ak3DObjects.h:533
AkChannelMask uEmitterChannelMask
Channels of the emitter that apply to this ray.
Definition: Ak3DObjects.h:545
AkReal32 fTransmissionLoss
Emitter-listener-pair-specific transmission occlusion.
Definition: Ak3DObjects.h:540
void SetPosition(AkReal64 in_x, AkReal64 in_y, AkReal64 in_z)
Set position.
Definition: Ak3DObjects.h:208
const AkMultiPositionType MultiPositionType_Last
Definition: Ak3DObjects.h:448
3D 64-bit vector. Intended as storage for world positions of sounds and objects, benefiting from 64-b...
Definition: Ak3DObjects.h:34
AkRayID id
ID of this emitter-listener pair, unique for a given emitter.
Definition: Ak3DObjects.h:548
Position and orientation of game objects in the world (i.e. supports 64-bit-precision position)
Definition: Ak3DObjects.h:134
AkReal32 fUserDefAuxMixGain
Emitter-listener-pair-specific gain (due to distance and cone attenuation) for user-defined send conn...
Definition: Ak3DObjects.h:536
3D vector for some operations in 3D space. Typically intended only for localized calculations due to ...
Definition: Ak3DObjects.h:71
const AkMultiPositionType MultiPositionType_MultiDirections
Definition: Ak3DObjects.h:447
@ AkMultiPositionType_MultiSources
Simulate multiple sources in one sound playing, adding volumes. For instance, all the torches on your...
Definition: AkEnums.h:318
AkChannelMask uInputChannels
Channels to which the above position applies.
Definition: Ak3DObjects.h:392
AkReal32 fScalingFactor
Listener position (see AK::SoundEngine::SetPosition()).
Definition: Ak3DObjects.h:563
AkUInt32 AkChannelMask
Channel mask (similar to extensibleWavFormat). Bit values are defined in AkSpeakerConfig....
Definition: AkTypedefs.h:60
AkReal32 TransmissionLoss() const
Get the transmission loss factor for this emitter-listener pair
Definition: Ak3DObjects.h:506
@ AkMultiPositionType_SingleSource
Used for normal sounds, not expected to pass to AK::SoundEngine::SetMultiplePosition() (if done,...
Definition: AkEnums.h:317