25 bool play(std::string soundFile) {
29 bool playLooped(std::string soundFile,
int loopCount) {
33 bool pause(std::string soundFile) {
41 bool resume(std::string soundFile) {
49 bool stop(std::string soundFile) {
57 double getVolume(std::string soundFile) {
66 double getVolumeAll() {
75 void setVolume(std::string soundFile,
double volume) {
79 void setVolumeAll(
double volume) {
A C++ Wrapper around the sound engine declarations.
Definition sound.hpp:24
Primary namespace for CmdFX.
Definition cmdfx.hpp:25
Primary sound engine declarations.
int Sound_getVolumeAll(double *volume)
Get the volume of all sound files.
int Sound_setVolumeAll(double volume)
Set the volume of all sound files.
int Sound_play(const char *soundFile)
Play a sound file.
int Sound_resumeAll()
Resume all sound files.
int Sound_setVolume(const char *soundFile, double volume)
Set the volume of a sound file.
int Sound_pause(const char *soundFile)
Pause a sound file.
int Sound_resume(const char *soundFile)
Resume a sound file.
int Sound_pauseAll()
Pause all sound files.
int Sound_stop(const char *soundFile)
Stop a sound file.
int Sound_stopAll()
Stop all sound files.
int Sound_getVolume(const char *soundFile, double *volume)
Get the volume of a sound file.
int Sound_playLooped(const char *soundFile, int loopCount)
Play a sound file in a loop.