Barotrauma Client Doc
|
Public Member Functions | |
OggSound (SoundManager owner, string filename, bool stream, ContentXElement xElement) | |
override float | GetAmplitudeAtPlaybackPos (int playbackPos) |
override int | FillStreamBuffer (int samplePos, short[] buffer) |
override void | InitializeAlBuffers () |
override void | FillAlBuffers () |
override void | Dispose () |
Public Member Functions inherited from Barotrauma.Sounds.Sound | |
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) |
virtual void | DeleteAlBuffers () |
Properties | |
long | MaxStreamSamplePos [get] |
Properties inherited from Barotrauma.Sounds.Sound | |
bool | Disposed [get] |
virtual SoundManager.SourcePoolIndex | SourcePoolIndex [get] |
SoundBuffers? | Buffers [get] |
int | ALFormat [get, protected set] |
int | SampleRate [get, protected set] |
Additional Inherited Members | |
Public Attributes inherited from Barotrauma.Sounds.Sound | |
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 inherited from Barotrauma.Sounds.Sound | |
static void | CastBuffer (float[] inBuffer, short[] outBuffer, int length) |
static short | FloatToShort (float fVal) |
static float | ShortToFloat (short shortVal) |
Protected Attributes inherited from Barotrauma.Sounds.Sound | |
bool | disposed |
SoundBuffers | buffers |
Definition at line 9 of file OggSound.cs.
Barotrauma.Sounds.OggSound.OggSound | ( | SoundManager | owner, |
string | filename, | ||
bool | stream, | ||
ContentXElement | xElement | ||
) |
Definition at line 20 of file OggSound.cs.
|
virtual |
Reimplemented from Barotrauma.Sounds.Sound.
Definition at line 161 of file OggSound.cs.
|
virtual |
Reimplemented from Barotrauma.Sounds.Sound.
Definition at line 135 of file OggSound.cs.
|
virtual |
Implements Barotrauma.Sounds.Sound.
Definition at line 100 of file OggSound.cs.
|
virtual |
Implements Barotrauma.Sounds.Sound.
Definition at line 90 of file OggSound.cs.
|
virtual |
Reimplemented from Barotrauma.Sounds.Sound.
Definition at line 127 of file OggSound.cs.
|
get |
Definition at line 13 of file OggSound.cs.