SpatialAudioTrack


public final class SpatialAudioTrack


Summary

Public constructors

Public methods

static final PointSourceAttributes
getPointSourceAttributes(
    @NonNull Session session,
    @NonNull AudioTrack track
)

Gets the PointSourceAttributes of the provided AudioTrack.

static final SoundFieldAttributes
getSoundFieldAttributes(
    @NonNull Session session,
    @NonNull AudioTrack track
)

Gets the SoundFieldAttributes of the provided AudioTrack.

static final int

Gets the SourceType of the provided AudioTrack.

Public constructors

SpatialAudioTrack

Added in 1.0.0-alpha01
public SpatialAudioTrack()

Public methods

getPointSourceAttributes

Added in 1.0.0-alpha01
public static final PointSourceAttributes getPointSourceAttributes(
    @NonNull Session session,
    @NonNull AudioTrack track
)

Gets the PointSourceAttributes of the provided AudioTrack.

Parameters
@NonNull Session session

The current SceneCore Session instance.

@NonNull AudioTrack track

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
public static final SoundFieldAttributes getSoundFieldAttributes(
    @NonNull Session session,
    @NonNull AudioTrack track
)

Gets the SoundFieldAttributes of the provided AudioTrack.

Parameters
@NonNull Session session

The current SceneCore Session instance.

@NonNull AudioTrack track

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
public static final int getSpatialSourceType(@NonNull Session session, @NonNull AudioTrack track)

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 SpatializerExtensions.NOT_SPATIALIZED for tracks that didn't use spatial audio attributes.

Parameters
@NonNull Session session

The current SceneCore Session instance.

@NonNull AudioTrack track

The AudioTrack from which to get the SpatializerConstants.SourceType.

Returns
int

The SpatializerExtensions.SourceType of the provided track.