SpatialAudioTrackBuilder


class SpatialAudioTrackBuilder


Provides spatial audio extensions on the platform AudioTrack.Builder class.

Summary

Public companion functions

AudioTrack.Builder
setPointSourceAttributes(
    session: Session,
    builder: AudioTrack.Builder,
    attributes: PointSourceAttributes
)

Sets the PointSourceAttributes on the provided AudioTrack.Builder.

AudioTrack.Builder
setSoundFieldAttributes(
    session: Session,
    builder: AudioTrack.Builder,
    attributes: SoundFieldAttributes
)

Sets the SoundFieldAttributes on the provided AudioTrack.Builder.

Public companion functions

setPointSourceAttributes

Added in 1.0.0-alpha01
fun setPointSourceAttributes(
    session: Session,
    builder: AudioTrack.Builder,
    attributes: PointSourceAttributes
): AudioTrack.Builder

Sets the PointSourceAttributes on the provided AudioTrack.Builder.

Parameters
session: Session

The current SceneCore Session instance.

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
fun setSoundFieldAttributes(
    session: Session,
    builder: AudioTrack.Builder,
    attributes: SoundFieldAttributes
): AudioTrack.Builder

Sets the SoundFieldAttributes on the provided AudioTrack.Builder.

Parameters
session: Session

The current SceneCore Session instance.

builder: AudioTrack.Builder

The Builder on which to set the attributes.

attributes: SoundFieldAttributes

The source attributes to be set.

Returns
AudioTrack.Builder

The same AudioTrack.Builder instance provided.