Pioneer
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions | Variables
Sound Namespace Reference

Classes

class  Event
 
class  LoadSoundJob
 
class  MusicEvent
 
class  MusicPlayer
 
class  OggFileDataStream
 
struct  Sample
 
struct  SoundEvent
 

Typedefs

typedef Uint32 Op
 
typedef Uint32 eventid
 

Enumerations

enum  { OP_REPEAT = (1 << 0) , OP_STOP_AT_TARGET_VOLUME = (1 << 1) }
 

Functions

void SetMasterVolume (const float vol)
 
float GetMasterVolume ()
 
void SetSfxVolume (const float vol)
 
float GetSfxVolume ()
 
void CalculateStereo (const Body *b, float vol, float *volLeftOut, float *volRightOut)
 
eventid BodyMakeNoise (const Body *b, const char *sfx, float vol)
 
bool SetOp (eventid id, Op op)
 
eventid PlaySfx (const char *fx, const float volume_left, const float volume_right, const Op op)
 
eventid PlayMusic (const char *fx, const float volume_left, const float volume_right, const Op op)
 
void DestroyAllEvents ()
 
void DestroyAllEventsExceptMusic ()
 
bool Init (bool automaticallyOpenDevice)
 
bool InitDevice (std::string &name)
 
void Uninit ()
 
void UpdateAudioDevices ()
 
void Pause (int on)
 
const std::map< std::string, Sample > & GetSamples ()
 
std::vector< std::string > & GetAudioDevices ()
 

Variables

struct SoundEvent wavstream [MAX_WAVSTREAMS]
 
std::vector< std::string > s_audioDeviceNames = {}
 

Typedef Documentation

◆ eventid

typedef Uint32 Sound::eventid

◆ Op

typedef Uint32 Sound::Op

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OP_REPEAT 
OP_STOP_AT_TARGET_VOLUME 

Function Documentation

◆ BodyMakeNoise()

eventid Sound::BodyMakeNoise ( const Body b,
const char *  sfx,
float  vol 
)
Here is the call graph for this function:

◆ CalculateStereo()

void Sound::CalculateStereo ( const Body b,
float  vol,
float *  volLeftOut,
float *  volRightOut 
)
Here is the call graph for this function:

◆ DestroyAllEvents()

void Sound::DestroyAllEvents ( )

Silence all active sound events.

◆ DestroyAllEventsExceptMusic()

void Sound::DestroyAllEventsExceptMusic ( )

◆ GetAudioDevices()

std::vector< std::string > & Sound::GetAudioDevices ( )

◆ GetMasterVolume()

float Sound::GetMasterVolume ( )

◆ GetSamples()

const std::map< std::string, Sample > & Sound::GetSamples ( )

◆ GetSfxVolume()

float Sound::GetSfxVolume ( )

◆ Init()

bool Sound::Init ( bool  automaticallyOpenDevice)
Here is the call graph for this function:

◆ InitDevice()

bool Sound::InitDevice ( std::string &  name)
Here is the call graph for this function:

◆ Pause()

void Sound::Pause ( int  on)

◆ PlayMusic()

eventid Sound::PlayMusic ( const char *  fx,
const float  volume_left,
const float  volume_right,
const Op  op 
)

◆ PlaySfx()

eventid Sound::PlaySfx ( const char *  fx,
const float  volume_left,
const float  volume_right,
const Op  op 
)
Here is the call graph for this function:

◆ SetMasterVolume()

void Sound::SetMasterVolume ( const float  vol)

◆ SetOp()

bool Sound::SetOp ( eventid  id,
Op  op 
)

◆ SetSfxVolume()

void Sound::SetSfxVolume ( const float  vol)

◆ Uninit()

void Sound::Uninit ( )
Here is the call graph for this function:

◆ UpdateAudioDevices()

void Sound::UpdateAudioDevices ( )

Variable Documentation

◆ s_audioDeviceNames

std::vector<std::string> Sound::s_audioDeviceNames = {}

◆ wavstream

struct SoundEvent Sound::wavstream[MAX_WAVSTREAMS]