Public Types |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Properties |
List of all members
OVR.AudioManager Class Reference
Inheritance diagram for OVR.AudioManager:

Public Types | |
enum | Fade { Fade.In, Fade.Out } |
Public Member Functions | |
void | MuteAllSounds (bool mute, bool muteReserved=false) |
void | UnMuteAllSounds (bool unmute, bool unmuteReserved=false) |
Static Public Member Functions | |
static SoundFX | FindSoundFX (string name, bool rebuildCache=false) |
static GameObject | GetGameObject () |
static string | NameMinusGroup (string name) |
static string [] | GetSoundFXNames (string currentValue, out int currentIdx) |
static void | FadeOutSoundChannel (int channel, float delaySecs, float fadeTime) |
static bool | StopSound (int idx, bool fadeOut=true, bool stopReserved=false) |
static void | FadeInSound (int idx, float fadeTime, float volume) |
static void | FadeInSound (int idx, float fadeTime) |
static void | FadeOutSound (int idx, float fadeTime) |
static void | StopAllSounds (bool fadeOut, bool stopReserved=false) |
static float | GetEmitterEndTime (int idx) |
static float | SetEmitterTime (int idx, float time) |
static int | PlaySound (AudioClip clip, float volume, EmitterChannel src=EmitterChannel.Any, float delay=0.0f, float pitchVariance=1.0f, bool loop=false) |
static int | PlaySound (SoundFX soundFX, EmitterChannel src=EmitterChannel.Any, float delay=0.0f) |
static int | PlaySoundAt (Vector3 position, SoundFX soundFX, EmitterChannel src=EmitterChannel.Any, float delay=0.0f, float volumeOverride=1.0f, float pitchMultiplier=1.0f) |
static int | PlayRandomSoundAt (Vector3 position, AudioClip[] clips, float volume, EmitterChannel src=EmitterChannel.Any, float delay=0.0f, float pitch=1.0f, bool loop=false) |
static int | PlaySoundAt (Vector3 position, AudioClip clip, float volume=1.0f, EmitterChannel src=EmitterChannel.Any, float delay=0.0f, float pitch=1.0f, bool loop=false) |
static void | SetOnFinished (int emitterIdx, System.Action onFinished) |
static void | SetOnFinished (int emitterIdx, System.Action< object > onFinished, object obj) |
static void | AttachSoundToParent (int idx, Transform parent) |
static void | DetachSoundFromParent (int idx) |
static void | DetachSoundsFromParent (SoundEmitter[] emitters, bool stopSounds=true) |
static void | SetEmitterMixerGroup (int idx, AudioMixerGroup mixerGroup) |
static MixerSnapshot | GetActiveSnapshot () |
static void | SetCurrentSnapshot (MixerSnapshot mixerSnapshot) |
static void | BlendWithCurrentSnapshot (MixerSnapshot blendSnapshot, float weight, float blendTime=0.0f) |
Public Attributes | |
bool | makePersistent = true |
bool | enableSpatializedAudio = true |
bool | enableSpatializedFastOverride = false |
AudioMixer | audioMixer = null |
AudioMixerGroup | defaultMixerGroup = null |
AudioMixerGroup | reservedMixerGroup = null |
AudioMixerGroup | voiceChatMixerGroup = null |
bool | verboseLogging = false |
int | maxSoundEmitters = 32 |
float | volumeSoundFX = 1.0f |
float | soundFxFadeSecs = 1.0f |
float | audioMinFallOffDistance = 1.0f |
float | audioMaxFallOffDistance = 25.0f |
SoundGroup [] | soundGroupings = new SoundGroup[0] |
Properties | |
static bool | enableSpatialization [get] |
static AudioManager | Instance [get] |
static float | NearFallOff [get] |
static float | FarFallOff [get] |
static AudioMixerGroup | EmitterGroup [get] |
static AudioMixerGroup | ReservedGroup [get] |
static AudioMixerGroup | VoipGroup [get] |
static bool | SoundEnabled [get] |
Member Enumeration Documentation
◆ Fade
|
strong |
Member Function Documentation
◆ AttachSoundToParent()
|
static |
◆ BlendWithCurrentSnapshot()
|
static |
◆ DetachSoundFromParent()
|
static |
◆ DetachSoundsFromParent()
|
static |
◆ FadeInSound() [1/2]
|
static |
◆ FadeInSound() [2/2]
|
static |
◆ FadeOutSound()
|
static |
◆ FadeOutSoundChannel()
|
static |
◆ FindSoundFX()
|
static |
◆ GetActiveSnapshot()
|
static |
◆ GetEmitterEndTime()
|
static |
◆ GetGameObject()
|
static |
◆ GetSoundFXNames()
|
static |
◆ MuteAllSounds()
void OVR.AudioManager.MuteAllSounds | ( | bool | mute, |
bool | muteReserved = false |
||
) |
◆ NameMinusGroup()
|
static |
◆ PlayRandomSoundAt()
|
static |
◆ PlaySound() [1/2]
|
static |
◆ PlaySound() [2/2]
|
static |
◆ PlaySoundAt() [1/2]
|
static |
◆ PlaySoundAt() [2/2]
|
static |
◆ SetCurrentSnapshot()
|
static |
◆ SetEmitterMixerGroup()
|
static |
◆ SetEmitterTime()
|
static |
◆ SetOnFinished() [1/2]
|
static |
◆ SetOnFinished() [2/2]
|
static |
◆ StopAllSounds()
|
static |
◆ StopSound()
|
static |
◆ UnMuteAllSounds()
void OVR.AudioManager.UnMuteAllSounds | ( | bool | unmute, |
bool | unmuteReserved = false |
||
) |
Member Data Documentation
◆ audioMaxFallOffDistance
float OVR.AudioManager.audioMaxFallOffDistance = 25.0f |
◆ audioMinFallOffDistance
float OVR.AudioManager.audioMinFallOffDistance = 1.0f |
◆ audioMixer
AudioMixer OVR.AudioManager.audioMixer = null |
◆ defaultMixerGroup
AudioMixerGroup OVR.AudioManager.defaultMixerGroup = null |
◆ enableSpatializedAudio
bool OVR.AudioManager.enableSpatializedAudio = true |
◆ enableSpatializedFastOverride
bool OVR.AudioManager.enableSpatializedFastOverride = false |
◆ makePersistent
bool OVR.AudioManager.makePersistent = true |
◆ maxSoundEmitters
int OVR.AudioManager.maxSoundEmitters = 32 |
◆ reservedMixerGroup
AudioMixerGroup OVR.AudioManager.reservedMixerGroup = null |
◆ soundFxFadeSecs
float OVR.AudioManager.soundFxFadeSecs = 1.0f |
◆ soundGroupings
SoundGroup [] OVR.AudioManager.soundGroupings = new SoundGroup[0] |
◆ verboseLogging
bool OVR.AudioManager.verboseLogging = false |
◆ voiceChatMixerGroup
AudioMixerGroup OVR.AudioManager.voiceChatMixerGroup = null |
◆ volumeSoundFX
float OVR.AudioManager.volumeSoundFX = 1.0f |
Property Documentation
◆ EmitterGroup
|
staticget |
◆ enableSpatialization
|
staticget |
◆ FarFallOff
|
staticget |
◆ Instance
|
staticget |
◆ NearFallOff
|
staticget |
◆ ReservedGroup
|
staticget |
◆ SoundEnabled
|
staticget |
◆ VoipGroup
|
staticget |
The documentation for this class was generated from the following files:
- Oculus/AudioManager/Scripts/Audio/AudioManager.cs
- Oculus/AudioManager/Scripts/Audio/AudioManager_Sound.cs