# SpatializedExoplayerAudioOutput

Artifact: [androidx.xr.compose:compose](https://developer.android.com/jetpack/androidx/releases/xr-compose) [View Source](https://cs.android.com/search?q=file:androidx/xr/compose/subspace/media/SpatializedAudioOutput.kt+class:androidx.xr.compose.subspace.media.SpatializedExoplayerAudioOutput) Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)


```
abstract class SpatializedExoplayerAudioOutput : SpatializedAudioOutput
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.xr.compose.subspace.media.SpatializedAudioOutput](https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/SpatializedAudioOutput) ||
|   | ↳ | [androidx.xr.compose.subspace.media.SpatializedExoplayerAudioOutput](https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/SpatializedExoplayerAudioOutput) |

Known direct subclasses [PointSourceExoplayerAudioOutput](https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/PointSourceExoplayerAudioOutput), [SoundFieldExoplayerAudioOutput](https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/SoundFieldExoplayerAudioOutput)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/PointSourceExoplayerAudioOutput` | Creates a `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/SpatializedExoplayerAudioOutput` with `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PointSourceParams`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/SoundFieldExoplayerAudioOutput` | Creates a `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/SpatializedExoplayerAudioOutput` from `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/SoundFieldAttributes`. |

*** ** * ** ***

Allows spatializing Exoplayer audio output. This needs to be attached to a Composable via `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/package-summary#(androidx.xr.compose.subspace.layout.SubspaceModifier).spatializedAudioOutput(androidx.xr.compose.subspace.media.SpatializedAudioOutput)`. The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/AudioOutputProvider` contained in this class should be passed to an Exoplayer.Builder instance.

## Summary

| ### Public properties |
|---|---|
| `abstract https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/AudioOutputProvider` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/SpatializedExoplayerAudioOutput#audioOutputProvider()` An `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/AudioOutputProvider` that may be passed to an ExoPlayer.Builder instance. |

### Inherited functions

From [androidx.xr.compose.subspace.media.SpatializedAudioOutput](https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/SpatializedAudioOutput) `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/SpatializedAudioOutput#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/media/SpatializedAudioOutput#hashCode()()`

## Public properties

### audioOutputProvider

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
abstract val audioOutputProvider: AudioOutputProvider
```

An `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/AudioOutputProvider` that may be passed to an ExoPlayer.Builder instance. An `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/AudioOutputProvider` can only be bound with one Exoplayer instance and should not be re-used with other instances.