SpatialAudioTrackBuilder


public static class SpatialAudioTrackBuilder


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

Summary

Public fields

static @NonNull SpatialAudioTrackBuilder

Public methods

static final void
setPointSourceParams(
    @NonNull Session session,
    @NonNull AudioTrack.Builder builder,
    @NonNull PointSourceParams params
)

Sets the PointSourceParams on the provided AudioTrack.Builder.

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

Sets the SoundFieldAttributes on the provided AudioTrack.Builder.

Public fields

INSTANCE

Added in 1.0.0-alpha07
public static @NonNull SpatialAudioTrackBuilder INSTANCE

Public methods

setPointSourceParams

Added in 1.0.0-alpha07
public static final void setPointSourceParams(
    @NonNull Session session,
    @NonNull AudioTrack.Builder builder,
    @NonNull PointSourceParams params
)

Sets the PointSourceParams on the provided AudioTrack.Builder.

Parameters
@NonNull Session session

The current Session instance.

@NonNull AudioTrack.Builder builder

The Builder on which to set the attributes.

@NonNull PointSourceParams params

The source params to be set.

setSoundFieldAttributes

Added in 1.0.0-alpha07
public static final void 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 Session instance.

@NonNull AudioTrack.Builder builder

The Builder on which to set the attributes.

@NonNull SoundFieldAttributes attributes

The source attributes to be set.