SpatialAudioTrackBuilder


object SpatialAudioTrackBuilder


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

Summary

Public functions

Unit
setPointSourceParams(
    session: Session,
    builder: AudioTrack.Builder,
    params: PointSourceParams
)

Sets the PointSourceParams on the provided AudioTrack.Builder.

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

Sets the SoundFieldAttributes on the provided AudioTrack.Builder.

Public functions

setPointSourceParams

Added in 1.0.0-alpha07
fun setPointSourceParams(
    session: Session,
    builder: AudioTrack.Builder,
    params: PointSourceParams
): Unit

Sets the PointSourceParams on the provided AudioTrack.Builder.

Parameters
session: Session

The current Session instance.

builder: AudioTrack.Builder

The Builder on which to set the attributes.

params: PointSourceParams

The source params to be set.

setSoundFieldAttributes

Added in 1.0.0-alpha07
fun setSoundFieldAttributes(
    session: Session,
    builder: AudioTrack.Builder,
    attributes: SoundFieldAttributes
): Unit

Sets the SoundFieldAttributes on the provided AudioTrack.Builder.

Parameters
session: Session

The current Session instance.

builder: AudioTrack.Builder

The Builder on which to set the attributes.

attributes: SoundFieldAttributes

The source attributes to be set.