FakeAudioTrackExtensionsWrapper


class FakeAudioTrackExtensionsWrapper


Test-only implementation of AudioTrackExtensionsWrapper

Summary

Public constructors

Public functions

open PointSourceParams?

Returns the PointSourceParams of the AudioTrack.

open SoundFieldAttributes?

Returns the SoundFieldAttributes of the AudioTrack.

open Int

Returns the spatial source type of the AudioTrack.

open AudioTrack.Builder
setPointSourceParams(
    builder: AudioTrack.Builder,
    params: PointSourceParams
)

Sets the PointSourceParams of the AudioTrack.

open Unit

Sets the PointSourceParams of the AudioTrack.

open AudioTrack.Builder
setSoundFieldAttributes(
    builder: AudioTrack.Builder,
    attributes: SoundFieldAttributes
)

Sets the SoundFieldAttributes of the AudioTrack.

Public constructors

FakeAudioTrackExtensionsWrapper

Added in 1.0.0-alpha04
FakeAudioTrackExtensionsWrapper()

Public functions

getPointSourceParams

Added in 1.0.0-alpha04
open fun getPointSourceParams(track: AudioTrack): PointSourceParams?

Returns the PointSourceParams of the AudioTrack.

Parameters
track: AudioTrack

The AudioTrack to get the PointSourceParams from.

Returns
PointSourceParams?

The PointSourceParams of the AudioTrack.

getSoundFieldAttributes

Added in 1.0.0-alpha04
open fun getSoundFieldAttributes(track: AudioTrack): SoundFieldAttributes?

Returns the SoundFieldAttributes of the AudioTrack.

Parameters
track: AudioTrack

The AudioTrack to get the SoundFieldAttributes from.

Returns
SoundFieldAttributes?

The SoundFieldAttributes of the AudioTrack.

getSpatialSourceType

Added in 1.0.0-alpha04
open fun getSpatialSourceType(track: AudioTrack): Int

Returns the spatial source type of the AudioTrack.

Parameters
track: AudioTrack

The AudioTrack to get the spatial source type from.

Returns
Int

The spatial source type of the AudioTrack.

setPointSourceParams

Added in 1.0.0-alpha04
open fun setPointSourceParams(
    builder: AudioTrack.Builder,
    params: PointSourceParams
): AudioTrack.Builder

Sets the PointSourceParams of the AudioTrack.

Parameters
builder: AudioTrack.Builder

The AudioTrack.Builder to set the PointSourceParams on.

params: PointSourceParams

The PointSourceParams to set.

Returns
AudioTrack.Builder

The AudioTrack.Builder with the PointSourceAttributes set.

setPointSourceParams

Added in 1.0.0-alpha04
open fun setPointSourceParams(track: AudioTrack, params: PointSourceParams): Unit

Sets the PointSourceParams of the AudioTrack.

The new PointSourceParams will be applied if the [SpatializerConstants.SourceType] of the AudioTrack was either [SpatializerConstants.DEFAULT]0 or [SpatializerConstants.POINT_SOURCE]. If the [SpatializerConstants.SourceType] was [SpatializerConstants.SOUND_FIELD], then this method will have no effect.

Parameters
track: AudioTrack

The AudioTrack to set the PointSourceParams on.

params: PointSourceParams

The PointSourceParams to set.

setSoundFieldAttributes

Added in 1.0.0-alpha04
open fun setSoundFieldAttributes(
    builder: AudioTrack.Builder,
    attributes: SoundFieldAttributes
): AudioTrack.Builder

Sets the SoundFieldAttributes of the AudioTrack.

Parameters
builder: AudioTrack.Builder

The AudioTrack.Builder to set the SoundFieldAttributes on.

attributes: SoundFieldAttributes

The SoundFieldAttributes to set.

Returns
AudioTrack.Builder

The AudioTrack.Builder with the SoundFieldAttributes set.