|
Agora Java API Reference for Android
|
Sound insulation area settings. More...
Public Attributes | |
| int | zoneSetId |
| float[] | position |
| float[] | forward |
| float[] | right |
| float[] | up |
| float | forwardLength |
| float | rightLength |
| float | upLength |
| float | audioAttenuation |
Sound insulation area settings.
| int io.agora.spatialaudio.SpatialAudioZone.zoneSetId |
The ID of the sound insulation area.
| float [] io.agora.spatialaudio.SpatialAudioZone.position |
The spatial center point of the sound insulation area. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
| float [] io.agora.spatialaudio.SpatialAudioZone.forward |
Starting at position, the forward unit vector. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
| float [] io.agora.spatialaudio.SpatialAudioZone.right |
Starting at position, the right unit vector. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
| float [] io.agora.spatialaudio.SpatialAudioZone.up |
Starting at position, the up unit vector. This parameter is an array of length 3, and the three values represent the front, right, and top coordinates in turn.
| float io.agora.spatialaudio.SpatialAudioZone.forwardLength |
The entire sound insulation area is regarded as a cube; this represents the length of the forward side in the unit length of the game engine.
| float io.agora.spatialaudio.SpatialAudioZone.rightLength |
The entire sound insulation area is regarded as a cube; this represents the length of the right side in the unit length of the game engine.
| float io.agora.spatialaudio.SpatialAudioZone.upLength |
The entire sound insulation area is regarded as a cube; this represents the length of the up side in the unit length of the game engine.
| float io.agora.spatialaudio.SpatialAudioZone.audioAttenuation |
The sound attenuation coefficient when users within the sound insulation area communicate with external users. The value range is [0,1]. The values are as follows:
audioAttenuation parameter.
1.8.18