27bool play(std::string soundFile) {
31bool playLooped(std::string soundFile,
int loopCount) {
35bool pause(std::string soundFile) {
43bool resume(std::string soundFile) {
51bool stop(std::string soundFile) {
59double getVolume(std::string soundFile) {
68double getVolumeAll() {
77void setVolume(std::string soundFile,
double volume) {
81void setVolumeAll(
double volume) {
A C++ Wrapper around the sound engine declarations.
Definition sound.hpp:26
Primary namespace for CmdFX.
Definition cmdfx.hpp:26
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.