> For the complete documentation index, see [llms.txt](https://docs.engagevr.io/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.engagevr.io/developer/afx/node-dictionary/unity/component/audio/audio-source.md).

# Audio Source

## Audio Source Info

Access information about an Audio Source.

<figure><img src="https://2640392766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5yxYHsXtlAaoMUrDWhLm%2Fuploads%2Fgit-blob-476a84f798c179c4a2ab1c25879b48f269508ee4%2Fafx_node_audio_source_info.png?alt=media" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>Audio Source In</td><td>Audio Source</td><td>Reference to an Audio Source object.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="171">Name</th><th width="178">Type</th><th>Description</th></tr></thead><tbody><tr><td>Is Playing</td><td>Boolean</td><td>True if the Audio Source is currently playing. Otherwise, false.</td></tr><tr><td>Time</td><td>Float</td><td>The number of seconds from the start of the audio clip that's currently being played.</td></tr><tr><td>Volume</td><td>Float</td><td>How loud the sound is.</td></tr></tbody></table>

## Set value nodes

There are multiple nodes that you can use to set properties of an Audio Source. For more information, refer to the [Audio Source](https://docs.unity3d.com/2021.3/Documentation/Manual/class-AudioSource.html) page in the Unity documentation.

The set nodes for an Audio Source have a similar arrangement of inputs and outputs, as described in the following sections.

<figure><img src="https://2640392766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5yxYHsXtlAaoMUrDWhLm%2Fuploads%2Fgit-blob-7ec9992e034b13e12638199b2167ba1a0e23a1a0%2Fafx_node_audio_source_clip.png?alt=media" alt=""><figcaption><p>Example set node for an Audio Source - the Set Audio Clip node</p></figcaption></figure>

**Inputs:**

<table><thead><tr><th width="164">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>Enter</td><td>Flow</td><td>Flow to activate the node.</td></tr><tr><td>Audio Source In</td><td>Audio Source</td><td>Reference to an Audio Source object.</td></tr><tr><td>&#x3C;property></td><td>&#x3C;varies> [editable]</td><td>The value to set for the chosen property.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="160">Name</th><th width="178">Type</th><th>Description</th></tr></thead><tbody><tr><td>Exit</td><td>Flow</td><td>Continue the activating flow.</td></tr></tbody></table>

**Available nodes:**

<table><thead><tr><th width="179">Name</th><th width="153">Input type</th><th>Description</th></tr></thead><tbody><tr><td>Set Audio Clip</td><td>Audio Clip</td><td>Sets the Audio Clip to be played.</td></tr><tr><td>Set Doppler Level</td><td>Float</td><td>Determines how much Doppler effect will be applied to this audio source (if is set to 0, then no effect is applied).</td></tr><tr><td>Set Loop</td><td>Boolean</td><td>If true, the audio clip repeats after it reaches the end.</td></tr><tr><td>Set Max Distance</td><td>Float</td><td>The distance where the sound stops attenuating at.</td></tr><tr><td>Set Min Distance</td><td>Float</td><td>Within the MinDistance, the sound will stay at loudest possible. Outside MinDistance it will begin to attenuate.</td></tr><tr><td>Set Mute</td><td>Boolean</td><td>If true, the audio is muted.</td></tr><tr><td>Set Pitch</td><td>Float</td><td>The pitch of the audio. 1.0 is normal pitch.</td></tr><tr><td>Set Play on Awake</td><td>Boolean</td><td>If true, the audio will begin to play when the scene loads. If false, you will need to play the audio.</td></tr><tr><td>Set Reverb Zone Mix</td><td>Float</td><td>Sets the amount of the output signal that gets routed to the reverb zones.</td></tr><tr><td>Set Spacial Blend</td><td>Float</td><td>Sets how much the 3D engine has an effect on the audio source.</td></tr><tr><td>Set Spread</td><td>Float</td><td>Sets the spread angle to 3D stereo or multichannel sound in speaker space.</td></tr><tr><td>Set Stereo Pan</td><td>Float</td><td>Sets the position in the stereo field of 2D sounds.</td></tr><tr><td>Set Volume</td><td>Float</td><td>The loudness of the sound.</td></tr><tr><td>Rolloff</td><td>[Parameter list]</td><td>How fast the sound fades. The available options are logarithmic, linear, or custom. For more information, refer to the <em>Types of Rolloff</em> section on the <a href="https://docs.unity3d.com/2021.3/Documentation/Manual/class-AudioSource.html">Audio Source</a> page of the Unity documentation.</td></tr></tbody></table>
