AudioSource.Stop Manual     Reference     Scripting  
Scripting > Runtime Classes > AudioSource
AudioSource.Stop

function Stop () : void

Description

Stops playing the clip.

JavaScripts
audio.Stop();

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
audio.Stop();
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
audio.Stop()

See Also: Play, Pause functions.