LocalSpatialAudioEngine class abstract
This class calculates user positions through the SDK to implement the spatial audio effect.
This class inherits from BaseSpatialAudioEngine. Before calling other APIs in this class, you need to call the initialize method to initialize this class.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearRemotePositions(
) → Future< void> - Removes the spatial positions of all remote users.
-
initialize(
) → Future< void> - Initializes LocalSpatialAudioEngine.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeRemotePosition(
int uid) → Future< void> - Removes the spatial position of the specified remote user.
-
setRemoteAudioAttenuation(
{required int uid, required double attenuation, required bool forceSet}) → Future< void> - Sets the sound attenuation effect for the specified user.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRemotePosition(
{required int uid, required RemoteVoicePositionInfo posInfo}) → Future< void> - Updates the spatial position of the specified remote user.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited