Pioneer
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
Sound.h File Reference
#include <SDL.h>
#include <map>
#include <string>
#include <vector>
Include dependency graph for Sound.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Sound::Sample
 
class  Sound::Event
 

Namespaces

namespace  Sound
 

Typedefs

typedef Uint32 Sound::Op
 
typedef Uint32 Sound::eventid
 

Enumerations

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

Functions

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