|
| abstract int | initialize (LocalSpatialAudioConfig config) |
| | Initializes ILocalSpatialAudioEngine. More...
|
| |
| abstract int | updateRemotePosition (int uid, RemoteVoicePositionInfo posInfo) |
| | Updates the spatial position of the specified remote user. More...
|
| |
|
abstract int | updateRemotePositionEx (int uid, RemoteVoicePositionInfo posInfo, RtcConnection connection) |
| |
| abstract int | removeRemotePosition (int uid) |
| | Removes the spatial position of the specified remote user. More...
|
| |
|
abstract int | removeRemotePositionEx (int uid, RtcConnection connection) |
| |
|
abstract int | clearRemotePositionsEx (RtcConnection connection) |
| |
| abstract int | setRemoteAudioAttenuation (int uid, double attenuation, boolean forceSet) |
| | Sets the sound attenuation effect for the specified user. More...
|
| |
| abstract int | setMaxAudioRecvCount (int maxCount) |
| | Sets the maximum number of streams that a user can receive in a specified audio reception range. More...
|
| |
| abstract int | setAudioRecvRange (float range) |
| | Sets the audio reception range of the local user. More...
|
| |
| abstract int | setDistanceUnit (float unit) |
| | Sets the length (in meters) of the game engine distance per unit. More...
|
| |
| abstract int | updateSelfPosition (float[] position, float[] axisForward, float[] axisRight, float[] axisUp) |
| | Updates the spatial position of the local user. More...
|
| |
| abstract int | updatePlayerPositionInfo (int playerId, RemoteVoicePositionInfo positionInfo) |
| | Updates the spatial position of the media player. More...
|
| |
| abstract int | muteLocalAudioStream (boolean mute) |
| | Stops or resumes publishing the local audio stream. More...
|
| |
| abstract int | muteAllRemoteAudioStreams (boolean mute) |
| | Stops or resumes subscribing to the audio streams of all remote users. More...
|
| |
| abstract int | setZones (SpatialAudioZone[] zones) |
| | Sets the sound insulation area. More...
|
| |
| abstract int | setPlayerAttenuation (int playerId, double attenuation, boolean forceSet) |
| | Sets the sound attenuation properties of the media player. More...
|
| |
|
abstract int | muteRemoteAudioStream (int uid, boolean mute) |
| |
|
abstract int | updateSelfPositionEx (float[] position, float[] axisForward, float[] axisRight, float[] axisUp, RtcConnection connection) |
| |
| abstract int | clearRemotePositions () |
| | Removes the spatial positions of all remote users. More...
|
| |
| abstract int io.agora.spatialaudio.ILocalSpatialAudioEngine.removeRemotePosition |
( |
int |
uid | ) |
|
|
abstract |
Removes the spatial position of the specified remote user.
After successfully calling this method, the local user no longer hears the specified remote user. After leaving the channel, to avoid wasting computing resources, call this method to delete the spatial position information of the specified remote user. Otherwise, the user's spatial position information will be saved continuously. When the number of remote users exceeds the number of audio streams that can be received as set in setMaxAudioRecvCount, the system automatically unsubscribes from the audio stream of the user who is furthest away based on relative distance.
- Parameters
-
| uid | The user ID. This parameter must be the same as the user ID passed in when the user joined the channel. |
- Returns
- 0: Success.
- < 0: Failure.