SpatialMediaPlayerTester


public final class SpatialMediaPlayerTester


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

Summary

Public methods

boolean
equals(Object other)
final PointSourceParams

The PointSourceParams that are currently set for this MediaPlayer.

final SoundFieldAttributes

The SoundFieldAttributes that are currently set for this MediaPlayer.

int
final boolean

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

Public methods

equals

public boolean equals(Object other)

getPointSourceParams

Added in 1.0.0-alpha16
public final PointSourceParams getPointSourceParams()

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.

getSoundFieldAttributes

Added in 1.0.0-alpha16
public final SoundFieldAttributes getSoundFieldAttributes()

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.

hashCode

public int hashCode()

isPointSource

Added in 1.0.0-alpha16
public final boolean isPointSource(@NonNull Entity entity)

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
@NonNull Entity entity

The target Entity to check against.

Returns
boolean

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