Pioneer
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
Sound.cpp File Reference
#include "Sound.h"
#include "Body.h"
#include "FileSystem.h"
#include "JobQueue.h"
#include "Pi.h"
#include "Player.h"
#include "SDL_audio.h"
#include "SDL_events.h"
#include <SDL.h>
#include <vorbis/vorbisfile.h>
#include <cassert>
#include <cerrno>
#include <cstdio>
#include <string>
#include <vector>
Include dependency graph for Sound.cpp:

Classes

class  Sound::OggFileDataStream
 
struct  Sound::SoundEvent
 
class  Sound::LoadSoundJob
 

Namespaces

namespace  Sound
 

Functions

void Sound::SetMasterVolume (const float vol)
 
float Sound::GetMasterVolume ()
 
void Sound::SetSfxVolume (const float vol)
 
float Sound::GetSfxVolume ()
 
void Sound::CalculateStereo (const Body *b, float vol, float *volLeftOut, float *volRightOut)
 
eventid Sound::BodyMakeNoise (const Body *b, const char *sfx, float vol)
 
bool Sound::SetOp (eventid id, Op op)
 
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::DestroyAllEvents ()
 
void Sound::DestroyAllEventsExceptMusic ()
 
bool Sound::Init (bool automaticallyOpenDevice)
 
bool Sound::InitDevice (std::string &name)
 
void Sound::Uninit ()
 
void Sound::UpdateAudioDevices ()
 
void Sound::Pause (int on)
 
const std::map< std::string, Sample > & Sound::GetSamples ()
 

Variables

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