SpatialSoundPoolTester


class SpatialSoundPoolTester


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

Summary

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Int

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

Int

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

SpatializerConstants.SourceType

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

playAsPointSourceResult

Added in 1.0.0-alpha16
var playAsPointSourceResultInt

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).

playAsSoundFieldResult

Added in 1.0.0-alpha16
var playAsSoundFieldResultInt

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).

spatialSourceType

Added in 1.0.0-alpha16
var spatialSourceTypeSpatializerConstants.SourceType

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