# 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)

*** ** * ** ***


```
public final 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/androidx/xr/scenecore/SoundFieldAttributes#SoundFieldAttributes(androidx.xr.scenecore.SpatializerConstants.AmbisonicsOrder)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/SpatializerConstants.AmbisonicsOrder order )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/SpatializerConstants.AmbisonicsOrder` | `https://developer.android.com/reference/androidx/xr/scenecore/SoundFieldAttributes#getOrder()()` The `https://developer.android.com/reference/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)

```
public SoundFieldAttributes(
    @NonNull SpatializerConstants.AmbisonicsOrder order
)
```

## Public methods

### getOrder

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

```
public final @NonNull SpatializerConstants.AmbisonicsOrder getOrder()
```

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