SpatialAudioTrackBuilder


public final class SpatialAudioTrackBuilder


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

Summary

Public methods

static final @NonNull AudioTrack.Builder
setPointSourceAttributes(
    @NonNull Session session,
    @NonNull AudioTrack.Builder builder,
    @NonNull PointSourceAttributes attributes
)

Sets the PointSourceAttributes on the provided AudioTrack.Builder.

static final @NonNull AudioTrack.Builder
setSoundFieldAttributes(
    @NonNull Session session,
    @NonNull AudioTrack.Builder builder,
    @NonNull SoundFieldAttributes attributes
)

Sets the SoundFieldAttributes on the provided AudioTrack.Builder.

Public methods

setPointSourceAttributes

Added in 1.0.0-alpha01
public static final @NonNull AudioTrack.Builder setPointSourceAttributes(
    @NonNull Session session,
    @NonNull AudioTrack.Builder builder,
    @NonNull PointSourceAttributes attributes
)

Sets the PointSourceAttributes on the provided AudioTrack.Builder.

Parameters
@NonNull Session session

The current SceneCore Session instance.

@NonNull AudioTrack.Builder builder

The Builder on which to set the attributes.

@NonNull 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 static final @NonNull AudioTrack.Builder setSoundFieldAttributes(
    @NonNull Session session,
    @NonNull AudioTrack.Builder builder,
    @NonNull SoundFieldAttributes attributes
)

Sets the SoundFieldAttributes on the provided AudioTrack.Builder.

Parameters
@NonNull Session session

The current SceneCore Session instance.

@NonNull AudioTrack.Builder builder

The Builder on which to set the attributes.

@NonNull SoundFieldAttributes attributes

The source attributes to be set.

Returns
@NonNull AudioTrack.Builder

The same AudioTrack.Builder instance provided.