SpatialMediaPlayerTester


class SpatialMediaPlayerTester


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

Summary

Public functions

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

Checks whether the given entity is currently configured as the point source for the associated MediaPlayer.

Public properties

PointSourceParams?

The PointSourceParams that are currently set for this MediaPlayer.

SoundFieldAttributes?

The SoundFieldAttributes that are currently set for this MediaPlayer.

Public functions

equals

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

hashCode

open fun hashCode(): Int

isPointSource

Added in 1.0.0-alpha16
fun isPointSource(entity: Entity): Boolean

Checks whether the given entity is currently configured as the point source for the associated MediaPlayer.

This returns true if the entity was passed to SpatialMediaPlayer.setPointSourceParams for this MediaPlayer.

Parameters
entity: Entity

The target Entity to check against.

Returns
Boolean

true if the entity is the point source for the mediaPlayer, false otherwise.

Public properties

pointSourceParams

Added in 1.0.0-alpha16
val pointSourceParamsPointSourceParams?

The PointSourceParams that are currently set for this MediaPlayer.

This is useful for verifying if the MediaPlayer has been updated with the intended parameters via SpatialMediaPlayer.setPointSourceParams.

soundFieldAttributes

Added in 1.0.0-alpha16
val soundFieldAttributesSoundFieldAttributes?

The SoundFieldAttributes that are currently set for this MediaPlayer.

This is useful for verifying if the MediaPlayer has been updated with the intended attributes via SpatialMediaPlayer.setSoundFieldAttributes.