> For the complete documentation index, see [llms.txt](https://pahutyakv.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pahutyakv.gitbook.io/docs/mega-extension-pack/audio-source.md).

# Audio Source

#### **Audio Clip**

* `SetClip(AudioClip clip)` — Assigns a specific AudioClip.&#x20;
* `SetClip(AudioSource from)` — Copies the clip from another AudioSource.

***

#### **Volume and Pitch**

* `SetVolume(float volume)` — Sets volume (0–1).&#x20;
* `SetPitch(float pitch)` — Sets pitch (-3–3).

***

#### **Loop**

* `SetLoop(bool loop)` — Enables/disables looping.&#x20;
* `ToggleLoop()` — Toggles loop state.

***

#### **Mute**

* `Mute()` — Mutes the AudioSource.&#x20;
* `Unmute()` — Unmutes the AudioSource.&#x20;
* `ToggleMute()` — Toggles mute state.

***

#### **Audio Mixer Group**

* `SetMixer(AudioMixerGroup mixerGroup)` — Assigns an AudioMixerGroup.&#x20;
* `SetMixer(AudioMixer mixer)` — Assigns using AudioMixer’s output group.

***

#### **Positioning**

* `SetWorldPosition(Vector3 position)` — Sets world position.&#x20;
* `SetParent(Transform parent)` — Sets parent and resets local position.

***

#### **Reverb Zone, Spatial and 3D Settings**

* `SetReverbZoneMix(float mix)` — Sets reverb mix (0–1.1).&#x20;
* `SetSpatialSettings(float spatialBlend, float dopplerLevel, float spread)` — Sets spatial blend, doppler, and spread.&#x20;
* `Set3DSettings(float minDistance, float maxDistance, AudioRolloffMode rolloffMode)` — Sets 3D distance and rolloff.

***

**Utility**

`IsPaused()` — Returns true if AudioSource is paused (not playing but time > 0).
