Barotrauma Client Doc
Barotrauma.Sounds.OggSound Class Reference
Inheritance diagram for Barotrauma.Sounds.OggSound:
Barotrauma.Sounds.Sound

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]
 
SoundBuffersBuffers [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
 

Detailed Description

Definition at line 9 of file OggSound.cs.

Constructor & Destructor Documentation

◆ OggSound()

Barotrauma.Sounds.OggSound.OggSound ( SoundManager  owner,
string  filename,
bool  stream,
ContentXElement  xElement 
)

Definition at line 20 of file OggSound.cs.

Member Function Documentation

◆ Dispose()

override void Barotrauma.Sounds.OggSound.Dispose ( )
virtual

Reimplemented from Barotrauma.Sounds.Sound.

Definition at line 161 of file OggSound.cs.

◆ FillAlBuffers()

override void Barotrauma.Sounds.OggSound.FillAlBuffers ( )
virtual

Reimplemented from Barotrauma.Sounds.Sound.

Definition at line 135 of file OggSound.cs.

◆ FillStreamBuffer()

override int Barotrauma.Sounds.OggSound.FillStreamBuffer ( int  samplePos,
short[]  buffer 
)
virtual

Implements Barotrauma.Sounds.Sound.

Definition at line 100 of file OggSound.cs.

◆ GetAmplitudeAtPlaybackPos()

override float Barotrauma.Sounds.OggSound.GetAmplitudeAtPlaybackPos ( int  playbackPos)
virtual

Implements Barotrauma.Sounds.Sound.

Definition at line 90 of file OggSound.cs.

◆ InitializeAlBuffers()

override void Barotrauma.Sounds.OggSound.InitializeAlBuffers ( )
virtual

Reimplemented from Barotrauma.Sounds.Sound.

Definition at line 127 of file OggSound.cs.

Property Documentation

◆ MaxStreamSamplePos

long Barotrauma.Sounds.OggSound.MaxStreamSamplePos
get

Definition at line 13 of file OggSound.cs.