Barotrauma Client Doc
|
Public Member Functions | |
Sound (SoundManager owner, string filename, bool stream, bool streamsReliably, ContentXElement xElement=null, bool getFullPath=true) | |
override string | ToString () |
virtual bool | IsPlaying () |
virtual SoundChannel | Play (float gain, float range, Vector2 position, bool muffle=false) |
virtual SoundChannel | Play (float gain, float range, float freqMult, Vector2 position, bool muffle=false) |
virtual SoundChannel | Play (Vector3? position, float gain, float freqMult=1.0f, bool muffle=false) |
virtual SoundChannel | Play (float gain) |
virtual SoundChannel | Play () |
virtual SoundChannel | Play (float? gain, string category) |
abstract int | FillStreamBuffer (int samplePos, short[] buffer) |
abstract float | GetAmplitudeAtPlaybackPos (int playbackPos) |
virtual void | InitializeAlBuffers () |
virtual void | FillAlBuffers () |
virtual void | DeleteAlBuffers () |
virtual void | Dispose () |
Public Attributes | |
readonly SoundManager | Owner |
readonly string | Filename |
readonly ContentXElement | XElement |
readonly bool | Stream |
readonly bool | StreamsReliably |
int | MaxSimultaneousInstances = 5 |
How many instances of the same sound clip can be playing at the same time More... | |
float | BaseGain |
float | BaseNear |
float | BaseFar |
Static Protected Member Functions | |
static void | CastBuffer (float[] inBuffer, short[] outBuffer, int length) |
static short | FloatToShort (float fVal) |
static float | ShortToFloat (short shortVal) |
Protected Attributes | |
bool | disposed |
SoundBuffers | buffers |
Properties | |
bool | Disposed [get] |
virtual SoundManager.SourcePoolIndex | SourcePoolIndex [get] |
SoundBuffers? | Buffers [get] |
int | ALFormat [get, protected set] |
int | SampleRate [get, protected set] |
Barotrauma.Sounds.Sound.Sound | ( | SoundManager | owner, |
string | filename, | ||
bool | stream, | ||
bool | streamsReliably, | ||
ContentXElement | xElement = null , |
||
bool | getFullPath = true |
||
) |
|
staticprotected |
|
virtual |
|
virtual |
Reimplemented in Barotrauma.Sounds.VoipSound, Barotrauma.Sounds.VideoSound, and Barotrauma.Sounds.OggSound.
|
virtual |
Reimplemented in Barotrauma.Sounds.OggSound.
|
pure virtual |
Implemented in Barotrauma.Sounds.VoipSound, Barotrauma.Sounds.VideoSound, and Barotrauma.Sounds.OggSound.
|
staticprotected |
|
pure virtual |
Implemented in Barotrauma.Sounds.VoipSound, Barotrauma.Sounds.VideoSound, and Barotrauma.Sounds.OggSound.
|
virtual |
Reimplemented in Barotrauma.Sounds.OggSound.
|
virtual |
Reimplemented in Barotrauma.Sounds.VideoSound.
|
virtual |
Reimplemented in Barotrauma.Sounds.VoipSound, and Barotrauma.Sounds.VideoSound.
|
virtual |
Reimplemented in Barotrauma.Sounds.VoipSound, and Barotrauma.Sounds.VideoSound.
|
virtual |
|
virtual |
Reimplemented in Barotrauma.Sounds.VoipSound, and Barotrauma.Sounds.VideoSound.
|
virtual |
|
virtual |
Reimplemented in Barotrauma.Sounds.VoipSound, and Barotrauma.Sounds.VideoSound.
|
staticprotected |
|
protected |
int Barotrauma.Sounds.Sound.MaxSimultaneousInstances = 5 |
readonly SoundManager Barotrauma.Sounds.Sound.Owner |
readonly ContentXElement Barotrauma.Sounds.Sound.XElement |
|
get |
|
get |