FakeXrExtensions.FakeAudioTrackExtensions


class FakeXrExtensions.FakeAudioTrackExtensions


Fake AudioTrackExtensions.

Summary

Public constructors

Public constructors

FakeAudioTrackExtensions

Added in 1.0.0-alpha01
FakeAudioTrackExtensions()

Public functions

getPointSourceAttributes

Added in 1.0.0-alpha01
fun getPointSourceAttributes(track: AudioTrack): PointSourceAttributes?

Gets the PointSourceAttributes of the provided AudioTrack.

Parameters
track: AudioTrack

The AudioTrack from which to get the PointSourceAttributes.

Returns
PointSourceAttributes?

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

getSoundFieldAttributes

Added in 1.0.0-alpha01
fun getSoundFieldAttributes(track: AudioTrack): SoundFieldAttributes?

Gets the SoundFieldAttributes of the provided AudioTrack.

Parameters
track: AudioTrack

The AudioTrack from which to get the SoundFieldAttributes.

Returns
SoundFieldAttributes?

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

getSpatialSourceType

Added in 1.0.0-alpha01
fun getSpatialSourceType(track: AudioTrack): Int

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
track: AudioTrack

The AudioTrack from which to get the SourceType.

Returns
Int

The SourceType of the provided track.

setPointSourceAttributes

Added in 1.0.0-alpha01
@CanIgnoreReturnValue
fun setPointSourceAttributes(
    builder: AudioTrack.Builder,
    attributes: PointSourceAttributes?
): AudioTrack.Builder

Sets the PointSourceAttributes on the provided AudioTrack.Builder.

Parameters
builder: AudioTrack.Builder

The Builder on which to set the attributes.

attributes: PointSourceAttributes?

The source attributes to be set.

Returns
AudioTrack.Builder

The same {AudioTrack.Builder} instance provided.

setSoundFieldAttributes

Added in 1.0.0-alpha01
@CanIgnoreReturnValue
fun setSoundFieldAttributes(
    builder: AudioTrack.Builder,
    attributes: SoundFieldAttributes?
): AudioTrack.Builder

Sets the SoundFieldAttributes on the provided AudioTrack.Builder.

Parameters
builder: AudioTrack.Builder

The Builder on which to set the attributes.

attributes: SoundFieldAttributes?

The sound field attributes to be set.

Returns
AudioTrack.Builder

The same {AudioTrack.Builder} instance provided.

setSourceType

Added in 1.0.0-alpha01
fun setSourceType(sourceType: Int): Unit

Public properties

pointSourceAttributes

Added in 1.0.0-alpha01
var pointSourceAttributesPointSourceAttributes!

soundFieldAttributes

Added in 1.0.0-alpha01
var soundFieldAttributesSoundFieldAttributes!