AudioListener.pause Manual     Reference     Scripting  
Scripting > Runtime Classes > AudioListener
AudioListener.pause

static var pause : bool

Description

The paused state of the audio. If set to True, the listener will not generate sound.

Similar to setting the volume to 0.0.

JavaScripts
using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
AudioListener.pause = true;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
AudioListener.pause = true