20#ifndef YOURGAME_AUDIO_H
21#define YOURGAME_AUDIO_H
33 int init(
int numSources,
int numChannels = 0,
int sampleRate = 0);
48 int storeFile(
const std::string &filename);
57 int play(
const std::string &filename,
bool loop =
false);
65 int stop(
int sourceId);
bool loop
Definition audio.cpp:94
int stop(int sourceId)
stop audio source
Definition audio.cpp:322
bool isInitialized()
check if audio initialized
Definition audio.cpp:242
int init(int numSources, int numChannels=0, int sampleRate=0)
initialize audio
Definition audio.cpp:189
void shutdown()
shutdown audio
Definition audio.cpp:224
int play(const std::string &filename, bool loop=false)
play audio file, that was previously loaded via storeFile()
Definition audio.cpp:266
int pause(int sourceId, bool pause)
pause/unpause audio source
Definition audio.cpp:330
int storeFile(const std::string &filename)
load and store audio file
Definition audio.cpp:247
int setChannelGains(int sourceId, const std::vector< float > &gains)
set gain per channel of an audio source
Definition audio.cpp:353