typedef struct OH_AudioObjectPosition {...} OH_AudioObjectPosition Represents the position of an audio object sound source in 3D space. The position can be represented using Cartesian coordinates or polar coordinates.
Since: 26.0.0
Related module: Core
File to include: native_audio_vivid.h
| Name | Description |
|---|---|
| bool isCartesian | Whether the object sound source uses Cartesian coordinates. true indicates that Cartesian coordinates are used, and false indicates that the Cartesian coordinate system is not used and the polar coordinate system is used instead. |
union { OH_CartesianPosition cartesian; OH_PolarPosition polar; } pos | Union that contains the position data in Cartesian coordinates or polar coordinates. cartesian: position represented in Cartesian coordinates. polar: position represented in polar coordinates. |