Manual     Reference     Scripting  
  
Scripting > Runtime Classes > AudioSource Switch to Component   

AudioSource.Stop  

function Stop () : void

Description

Stops playing the clip.

JavaScript
audio.Stop();

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
audio.Stop()

See Also: Play, Pause functions.