SpatialSoundPoolTester


public final class SpatialSoundPoolTester


A test utility for accessing and inspecting the spatial data associated with the SpatialSoundPool.

Summary

Public methods

boolean
equals(Object other)
final int

The value that will be returned by the SpatialSoundPool.play method for point source audio.

final int

The value that will be returned by the SpatialSoundPool.play method for sound field audio.

final @NonNull SpatializerConstants.SourceType

The spatial source type which can be retrieved from SpatialSoundPool.getSpatialSourceType of the sound pool.

int
final void

The value that will be returned by the SpatialSoundPool.play method for point source audio.

final void

The value that will be returned by the SpatialSoundPool.play method for sound field audio.

final void

The spatial source type which can be retrieved from SpatialSoundPool.getSpatialSourceType of the sound pool.

Public methods

equals

public boolean equals(Object other)

getPlayAsPointSourceResult

Added in 1.0.0-alpha16
public final int getPlayAsPointSourceResult()

The value that will be returned by the SpatialSoundPool.play method for point source audio.

Setting this property allows tests to simulate both successful and failed attempts to play a sound. A non-zero value simulates a successful playback, while 0 simulates a failure (e.g., because no more streams are available).

getPlayAsSoundFieldResult

Added in 1.0.0-alpha16
public final int getPlayAsSoundFieldResult()

The value that will be returned by the SpatialSoundPool.play method for sound field audio.

Setting this property allows tests to simulate both successful and failed attempts to play a sound. A non-zero value simulates a successful playback, while 0 simulates a failure (e.g., because no more streams are available).

getSpatialSourceType

Added in 1.0.0-alpha16
public final @NonNull SpatializerConstants.SourceType getSpatialSourceType()

The spatial source type which can be retrieved from SpatialSoundPool.getSpatialSourceType of the sound pool.

hashCode

public int hashCode()

setPlayAsPointSourceResult

Added in 1.0.0-alpha16
public final void setPlayAsPointSourceResult(int value)

The value that will be returned by the SpatialSoundPool.play method for point source audio.

Setting this property allows tests to simulate both successful and failed attempts to play a sound. A non-zero value simulates a successful playback, while 0 simulates a failure (e.g., because no more streams are available).

setPlayAsSoundFieldResult

Added in 1.0.0-alpha16
public final void setPlayAsSoundFieldResult(int value)

The value that will be returned by the SpatialSoundPool.play method for sound field audio.

Setting this property allows tests to simulate both successful and failed attempts to play a sound. A non-zero value simulates a successful playback, while 0 simulates a failure (e.g., because no more streams are available).

setSpatialSourceType

Added in 1.0.0-alpha16
public final void setSpatialSourceType(@NonNull SpatializerConstants.SourceType value)

The spatial source type which can be retrieved from SpatialSoundPool.getSpatialSourceType of the sound pool.