# SoundFieldAttributes

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

*** ** * ** ***


```
class SoundFieldAttributes
```

<br />

*** ** * ** ***

Configures a sound source to be played as an ambisonics sound field.

Ambisonic audio (or ambisonics) is like a skybox for audio, providing an immersive soundscape for your users. Ambisonic sounds must be in AmbiX format in first, second, or third order. For more information about playing ambisonics, see: [Add ambisonic sound fields to your app](https://developer.android.com/develop/xr/jetpack-xr-sdk/add-spatial-audio#ambionics_example).

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/SoundFieldAttributes#SoundFieldAttributes(androidx.xr.scenecore.SpatializerConstants.AmbisonicsOrder)(order: https://developer.android.com/reference/kotlin/androidx/xr/scenecore/SpatializerConstants.AmbisonicsOrder)` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/SpatializerConstants.AmbisonicsOrder` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/SoundFieldAttributes#order()` The `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/SpatializerConstants.AmbisonicsOrder` of the sound to be played. |

## Public constructors

### SoundFieldAttributes

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

```
SoundFieldAttributes(order: SpatializerConstants.AmbisonicsOrder)
```

## Public properties

### order

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

```
val order: SpatializerConstants.AmbisonicsOrder
```

The `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/SpatializerConstants.AmbisonicsOrder` of the sound to be played.