Configuration structure for randomizing 3D sound source position.
More...
#include <cri_le_atom_ex.h>
Configuration structure for randomizing 3D sound source position.
- Description:
- A structure that contains settings related to randomizing the position of 3D sound sources.
- Attention
- Since the number of members may increase in the future, if you do not use the criAtomEx3dSource_SetDefaultConfigForRandomPosition macro, be sure to clear the structure to zero before using it.
(Be careful not to put undefined values into the structure members.)
- See also
- criAtomEx3dSource_SetRandomPositionConfig, criAtomEx3dSource_SetDefaultConfigForRandomPosition
◆ follows_original_source
CriBool follows_original_source |
Whether to follow the original 3D sound source.
- Description:
- Sets whether the randomly determined 3D sound source moves in sync with the original 3D sound source.
If CRI_TRUE, it will follow the position and orientation of the 3D sound source.
If CRI_FALSE, it will not follow the 3D sound source and will remain in the position it was in when playback started.
◆ calculation_type
◆ calculation_parameters
Array of various parameters for how to calculate coordinates.
- Description:
- This is the parameter array used for each coordinate calculation method.
The settings for each element in the parameter array for the coordinate calculation method set in calculation_type are as follows.
- CRIATOMEX3DSOURCE_RANDOM_POSITION_CALCULATION_TYPE_RECTANGLE
- 0: Width (x-axis), 1: Front-to-back width (z axis), 2: 0.0f
- CRIATOMEX3DSOURCE_RANDOM_POSITION_CALCULATION_TYPE_CUBOID
- 0: Width (x-axis), 1: Front-to-back width (z axis), 2: Vertical width (y-axis)
- CRIATOMEX3DSOURCE_RANDOM_POSITION_CALCULATION_TYPE_CIRCLE
- 0: Radius, 1: 0.0f, 2: 0.0f
- CRIATOMEX3DSOURCE_RANDOM_POSITION_CALCULATION_TYPE_CYLINDER
- 0: Radius, 1: Vertical width (y-axis), 2: 0.0f
- CRIATOMEX3DSOURCE_RANDOM_POSITION_CALCULATION_TYPE_SPHERE
- 0: Radius, 1: 0.0f, 2: 0.0f
Each shape is centered on the original 3D sound source.
- Remarks:
- This parameter is ignored in the coordinate calculation methods below.
- See also
- CriAtomEx3dSourceRandomPositionCalculationType
The documentation for this struct was generated from the following file: