# PositionalAudioComponentTester

Artifact: [androidx.xr.scenecore:scenecore-testing](https://developer.android.com/jetpack/androidx/releases/xr-scenecore) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/testing/PositionalAudioComponentTester.kt+class:androidx.xr.scenecore.testing.PositionalAudioComponentTester) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
class PositionalAudioComponentTester
```

<br />

*** ** * ** ***

A test-only accessor for `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PositionalAudioComponent` that enables direct manipulation and inspection of its internal state.

## Summary

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/PositionalAudioComponentTester#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/scenecore/testing/PositionalAudioComponentTester#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/AudioOutputProvider` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/PositionalAudioComponentTester#audioOutputProvider()` The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/AudioOutputProvider` used by the `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PositionalAudioComponent#audioOutputProvider()`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PointSourceParams` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/testing/PositionalAudioComponentTester#pointSourceParams()` The `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PointSourceParams` that are currently set for this spatial audio source. |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### audioOutputProvider

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

```
var audioOutputProvider: AudioOutputProvider
```

The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/AudioOutputProvider` used by the `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PositionalAudioComponent#audioOutputProvider()`.

Setting this property simulates the configuration of an `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/AudioOutputProvider`, e.g. a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/ForwardingAudioOutputProvider`, that can be used to configure an `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.Builder` for positional audio playback.

### pointSourceParams

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

```
val pointSourceParams: PointSourceParams
```

The `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PointSourceParams` that are currently set for this spatial audio source.

This is useful for verifying if the component has been updated with the intended parameters via `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/PositionalAudioComponent#pointSourceParams()`.