PositionalAudioComponentTester


public final class PositionalAudioComponentTester


A test-only accessor for PositionalAudioComponent that enables direct manipulation and inspection of its internal state.

Summary

Public methods

equals

public boolean equals(Object other)

getAudioOutputProvider

Added in 1.0.0-alpha16
public final @NonNull AudioOutputProvider getAudioOutputProvider()

The AudioOutputProvider used by the PositionalAudioComponent.audioOutputProvider.

Setting this property simulates the configuration of an AudioOutputProvider, e.g. a androidx.media3.exoplayer.audio.ForwardingAudioOutputProvider, that can be used to configure an androidx.media3.exoplayer.ExoPlayer.Builder for positional audio playback.

getPointSourceParams

Added in 1.0.0-alpha16
public final @NonNull PointSourceParams getPointSourceParams()

The PointSourceParams that are currently set for this spatial audio source.

This is useful for verifying if the component has been updated with the intended parameters via PositionalAudioComponent.pointSourceParams.

hashCode

public int hashCode()

setAudioOutputProvider

Added in 1.0.0-alpha16
public final void setAudioOutputProvider(@NonNull AudioOutputProvider value)

The AudioOutputProvider used by the PositionalAudioComponent.audioOutputProvider.

Setting this property simulates the configuration of an AudioOutputProvider, e.g. a androidx.media3.exoplayer.audio.ForwardingAudioOutputProvider, that can be used to configure an androidx.media3.exoplayer.ExoPlayer.Builder for positional audio playback.