# SoundEffect

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/SoundEffectPool.kt+class:androidx.xr.scenecore.SoundEffect) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
public final class SoundEffect
```

<br />

*** ** * ** ***

Represents a handle to a single sound effect loaded into memory.

Can be used only with the `https://developer.android.com/reference/androidx/xr/scenecore/SoundEffectPool` that loaded this SoundEffect or any `https://developer.android.com/reference/androidx/xr/scenecore/SoundEffectPlayer` that was created with that `https://developer.android.com/reference/androidx/xr/scenecore/SoundEffectPool`. The SoundEffect can be released with `https://developer.android.com/reference/androidx/xr/scenecore/SoundEffectPool#unload(androidx.xr.scenecore.SoundEffect)` when no longer needed.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/scenecore/SoundEffect#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/xr/scenecore/SoundEffect#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/SoundEffect#toString()()` |

## Public methods

### equals

```
public boolean equals(Object other)
```

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```