|
| | SoundManager () |
| |
| bool | InitializeAlcDevice (string deviceName) |
| |
| Sound | LoadSound (string filename, bool stream=false) |
| |
| Sound | LoadSound (ContentXElement element, bool stream=false, string overrideFilePath=null) |
| |
| SoundChannel | GetSoundChannelFromIndex (SourcePoolIndex poolIndex, int ind) |
| |
| uint | GetSourceFromIndex (SourcePoolIndex poolIndex, int srcInd) |
| |
| int | AssignFreeSourceToChannel (SoundChannel newChannel) |
| |
| bool | IsPlaying (Sound sound) |
| |
| int | CountPlayingInstances (Sound sound) |
| |
| SoundChannel | GetChannelFromSound (Sound sound) |
| |
| void | KillChannels (Sound sound) |
| |
| void | RemoveSound (Sound sound) |
| |
| void | MoveSoundToPosition (Sound sound, int pos) |
| |
| void | SetCategoryGainMultiplier (string category, float gain, int index=0) |
| |
| float | GetCategoryGainMultiplier (string category, int index=-1) |
| |
| void | SetCategoryMuffle (string category, bool muffle) |
| |
| bool | GetCategoryMuffle (string category) |
| |
| void | Update () |
| |
| void | ApplySettings () |
| |
| void | InitUpdateChannelThread () |
| | Initializes the thread that handles streaming audio and fading out and disposing channels that are no longer needed. More...
|
| |
| void | ForceStreamUpdate () |
| |
| void | Dispose () |
| |
Definition at line 12 of file SoundManager.cs.
◆ SourcePoolIndex
◆ SoundManager()
| Barotrauma.Sounds.SoundManager.SoundManager |
( |
| ) |
|
◆ ApplySettings()
| void Barotrauma.Sounds.SoundManager.ApplySettings |
( |
| ) |
|
◆ AssignFreeSourceToChannel()
| int Barotrauma.Sounds.SoundManager.AssignFreeSourceToChannel |
( |
SoundChannel |
newChannel | ) |
|
◆ CountPlayingInstances()
| int Barotrauma.Sounds.SoundManager.CountPlayingInstances |
( |
Sound |
sound | ) |
|
◆ Dispose()
| void Barotrauma.Sounds.SoundManager.Dispose |
( |
| ) |
|
◆ ForceStreamUpdate()
| void Barotrauma.Sounds.SoundManager.ForceStreamUpdate |
( |
| ) |
|
◆ GetCategoryGainMultiplier()
| float Barotrauma.Sounds.SoundManager.GetCategoryGainMultiplier |
( |
string |
category, |
|
|
int |
index = -1 |
|
) |
| |
◆ GetCategoryMuffle()
| bool Barotrauma.Sounds.SoundManager.GetCategoryMuffle |
( |
string |
category | ) |
|
◆ GetChannelFromSound()
◆ GetSoundChannelFromIndex()
◆ GetSourceFromIndex()
| uint Barotrauma.Sounds.SoundManager.GetSourceFromIndex |
( |
SourcePoolIndex |
poolIndex, |
|
|
int |
srcInd |
|
) |
| |
◆ InitializeAlcDevice()
| bool Barotrauma.Sounds.SoundManager.InitializeAlcDevice |
( |
string |
deviceName | ) |
|
◆ InitUpdateChannelThread()
| void Barotrauma.Sounds.SoundManager.InitUpdateChannelThread |
( |
| ) |
|
Initializes the thread that handles streaming audio and fading out and disposing channels that are no longer needed.
Definition at line 734 of file SoundManager.cs.
◆ IsPlaying()
| bool Barotrauma.Sounds.SoundManager.IsPlaying |
( |
Sound |
sound | ) |
|
◆ KillChannels()
| void Barotrauma.Sounds.SoundManager.KillChannels |
( |
Sound |
sound | ) |
|
◆ LoadSound() [1/2]
| Sound Barotrauma.Sounds.SoundManager.LoadSound |
( |
ContentXElement |
element, |
|
|
bool |
stream = false, |
|
|
string |
overrideFilePath = null |
|
) |
| |
◆ LoadSound() [2/2]
| Sound Barotrauma.Sounds.SoundManager.LoadSound |
( |
string |
filename, |
|
|
bool |
stream = false |
|
) |
| |
◆ MoveSoundToPosition()
| void Barotrauma.Sounds.SoundManager.MoveSoundToPosition |
( |
Sound |
sound, |
|
|
int |
pos |
|
) |
| |
◆ RemoveSound()
| void Barotrauma.Sounds.SoundManager.RemoveSound |
( |
Sound |
sound | ) |
|
◆ SetCategoryGainMultiplier()
| void Barotrauma.Sounds.SoundManager.SetCategoryGainMultiplier |
( |
string |
category, |
|
|
float |
gain, |
|
|
int |
index = 0 |
|
) |
| |
◆ SetCategoryMuffle()
| void Barotrauma.Sounds.SoundManager.SetCategoryMuffle |
( |
string |
category, |
|
|
bool |
muffle |
|
) |
| |
◆ Update()
| void Barotrauma.Sounds.SoundManager.Update |
( |
| ) |
|
◆ SOURCE_COUNT
| const int Barotrauma.Sounds.SoundManager.SOURCE_COUNT = 32 |
|
static |
◆ CanDetectDisconnect
| bool Barotrauma.Sounds.SoundManager.CanDetectDisconnect |
|
get |
◆ CompressionDynamicRangeGain
| float Barotrauma.Sounds.SoundManager.CompressionDynamicRangeGain |
|
get |
◆ Disabled
| bool Barotrauma.Sounds.SoundManager.Disabled |
|
get |
◆ Disconnected
| bool Barotrauma.Sounds.SoundManager.Disconnected |
|
get |
◆ ListenerGain
| float Barotrauma.Sounds.SoundManager.ListenerGain |
|
getset |
◆ ListenerPosition
| Vector3 Barotrauma.Sounds.SoundManager.ListenerPosition |
|
getset |
◆ ListenerTargetVector
| Vector3 Barotrauma.Sounds.SoundManager.ListenerTargetVector |
|
getset |
◆ ListenerUpVector
| Vector3 Barotrauma.Sounds.SoundManager.ListenerUpVector |
|
getset |
◆ LoadedSoundCount
| int Barotrauma.Sounds.SoundManager.LoadedSoundCount |
|
get |
◆ LoadedSounds
| IReadOnlyList<Sound> Barotrauma.Sounds.SoundManager.LoadedSounds |
|
get |
◆ PlaybackAmplitude
| float?? Barotrauma.Sounds.SoundManager.PlaybackAmplitude |
|
get |
◆ UniqueLoadedSoundCount
| int Barotrauma.Sounds.SoundManager.UniqueLoadedSoundCount |
|
get |
◆ VoipAttenuatedGain
| float Barotrauma.Sounds.SoundManager.VoipAttenuatedGain |
|
getset |