PointSourceExoplayerAudioOutput

class PointSourceExoplayerAudioOutput : SpatializedExoplayerAudioOutput


Creates a SpatializedExoplayerAudioOutput with PointSourceParams. When used with an ExoPlayer.Builder instance and spatializedAudioOutput, audio will be spatialized from the Composable it is attached to.

Summary

Public constructors

Public properties

open AudioOutputProvider

An AudioOutputProvider that be passed to an ExoPlayer.Builder instance.

PointSourceParams

A PointSourceParams to modify the audio spatialization.

Inherited functions

From androidx.xr.compose.subspace.media.SpatializedAudioOutput
open operator Boolean
equals(other: Any?)
open Int

Public constructors

PointSourceExoplayerAudioOutput

Added in 1.0.0-alpha16
@RememberInComposition
PointSourceExoplayerAudioOutput(
    session: Session,
    params: PointSourceParams
)

Public properties

audioOutputProvider

open val audioOutputProviderAudioOutputProvider

An AudioOutputProvider that be passed to an ExoPlayer.Builder instance.

params

Added in 1.0.0-alpha16
var paramsPointSourceParams

A PointSourceParams to modify the audio spatialization. These pointSourceParams will apply to currently playing audio and future playback requests.