FakeXrExtensions.FakeAudioTrackExtensions


public class FakeXrExtensions.FakeAudioTrackExtensions


Fake AudioTrackExtensions.

Summary

Public constructors

Public fields

pointSourceAttributes

Added in 1.0.0-alpha01
public PointSourceAttributes pointSourceAttributes

soundFieldAttributes

Added in 1.0.0-alpha01
public SoundFieldAttributes soundFieldAttributes

Public constructors

FakeAudioTrackExtensions

Added in 1.0.0-alpha01
public FakeAudioTrackExtensions()

Public methods

getPointSourceAttributes

Added in 1.0.0-alpha01
public @Nullable PointSourceAttributes getPointSourceAttributes()

getPointSourceAttributes

Added in 1.0.0-alpha01
public @Nullable PointSourceAttributes getPointSourceAttributes(@NonNull AudioTrack track)

Gets the PointSourceAttributes of the provided AudioTrack.

Parameters
@NonNull AudioTrack track

The AudioTrack from which to get the PointSourceAttributes.

Returns
@Nullable PointSourceAttributes

The PointSourceAttributes of the provided track, null if not set.

getSoundFieldAttributes

Added in 1.0.0-alpha01
public @Nullable SoundFieldAttributes getSoundFieldAttributes()

getSoundFieldAttributes

Added in 1.0.0-alpha01
public @Nullable SoundFieldAttributes getSoundFieldAttributes(@NonNull AudioTrack track)

Gets the SoundFieldAttributes of the provided AudioTrack.

Parameters
@NonNull AudioTrack track

The AudioTrack from which to get the SoundFieldAttributes.

Returns
@Nullable SoundFieldAttributes

The SoundFieldAttributes of the provided track, null if not set.

getSpatialSourceType

Added in 1.0.0-alpha01
public int getSpatialSourceType(@NonNull AudioTrack track)

Gets the SourceType of the provided AudioTrack. This value is implicitly set depending one which type of attributes was used to configure the builder. Will return for tracks that didn't use spatial audio attributes.

Parameters
@NonNull AudioTrack track

The AudioTrack from which to get the SourceType.

Returns
int

The SourceType of the provided track.

setPointSourceAttributes

Added in 1.0.0-alpha01
public void setPointSourceAttributes(
    @Nullable PointSourceAttributes pointSourceAttributes
)

setPointSourceAttributes

Added in 1.0.0-alpha01
@CanIgnoreReturnValue
public @NonNull AudioTrack.Builder setPointSourceAttributes(
    @NonNull AudioTrack.Builder builder,
    @Nullable PointSourceAttributes attributes
)

Sets the PointSourceAttributes on the provided AudioTrack.Builder.

Parameters
@NonNull AudioTrack.Builder builder

The Builder on which to set the attributes.

@Nullable PointSourceAttributes attributes

The source attributes to be set.

Returns
@NonNull AudioTrack.Builder

The same {AudioTrack.Builder} instance provided.

setSoundFieldAttributes

Added in 1.0.0-alpha01
public void setSoundFieldAttributes(
    @Nullable SoundFieldAttributes soundFieldAttributes
)

setSoundFieldAttributes

Added in 1.0.0-alpha01
@CanIgnoreReturnValue
public @NonNull AudioTrack.Builder setSoundFieldAttributes(
    @NonNull AudioTrack.Builder builder,
    @Nullable SoundFieldAttributes attributes
)

Sets the SoundFieldAttributes on the provided AudioTrack.Builder.

Parameters
@NonNull AudioTrack.Builder builder

The Builder on which to set the attributes.

@Nullable SoundFieldAttributes attributes

The sound field attributes to be set.

Returns
@NonNull AudioTrack.Builder

The same {AudioTrack.Builder} instance provided.

setSourceType

Added in 1.0.0-alpha01
public void setSourceType(int sourceType)