AudioService Class |
Namespace: ImmerseSDK.Audio
public class AudioService : SingletonBehaviour
The AudioService type exposes the following members.
Name | Description | |
---|---|---|
AudioService | Initializes a new instance of the AudioService class |
Name | Description | |
---|---|---|
AudioListener |
Gets the AudioListener created
|
Name | Description | |
---|---|---|
CoroutineInitialise |
This method is used by our internal systems so do not call it directly.
(Overrides SingletonBehaviourCoroutineInitialise.) | |
OnDestroy | (Overrides SingletonBehaviourOnDestroy.) | |
Play(String) |
Play AudioClip from Resources (0.2f volume)
| |
Play(AudioClip) |
Play and AudioClip in 2D (0.2f volume)
| |
Play(AudioServiceSounds) |
Play one of the 'built in' AudioClips (0.2f volume)
| |
Play(String, Single) |
Play AudioClip from Resources
| |
Play(AudioClip, Single) |
Play and AudioClip in 2D
| |
Play(AudioServiceSounds, Single) |
Play one of the 'built in' AudioClips
| |
SetAudioListener |
Sets a new AudioListener. When null is passed in, we search the hierarchy of the App.CameraService.Camera for the AudioListener.
Also disables all other AudioListenrs in the scene
| |
ToString |
returns "Audio Service"
(Overrides UnityEngine.Object.ToString.) |
Name | Description | |
---|---|---|
GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) | |
WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |