HRIRSphere¶
class HRIRSphere : public Resource
A 3D sphere of HRIR data.
Functions¶
| Name | Description |
|---|---|
| SetSamplingMode | Sets the sampling mode for the HRIR sphere. |
| GetSamplingMode | Gets the sampling mode for the HRIR sphere. |
| Sample | Samples the HRIR sphere for the given direction. |
Function Details¶
GetSamplingMode¶
[[nodiscard]] virtual eHRIRSphereSamplingMode GetSamplingMode() const = 0
Gets the sampling mode for the HRIR sphere.
Sample¶
virtual void Sample(const AmVec3& direction, AmReal32* leftHRIR, AmReal32* rightHRIR) const = 0
Samples the HRIR sphere for the given direction.
- Parameter
direction - The sound to listener direction.
- Parameter
leftHRIR - The left HRIR data.
- Parameter
rightHRIR - The right HRIR data.
SetSamplingMode¶
virtual void SetSamplingMode(eHRIRSphereSamplingMode mode) = 0
Sets the sampling mode for the HRIR sphere.
- Parameter
mode - The sampling mode to use.