cmdfx 0.3.1
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
sound.h
Go to the documentation of this file.
1
11#pragma once
12
13#ifdef __cplusplus
14extern "C" {
15#endif
31int Sound_play(const char* soundFile);
32
41int Sound_playLooped(const char* soundFile, int loopCount);
42
49int Sound_pause(const char* soundFile);
50
57
64int Sound_resume(const char* soundFile);
65
72
79int Sound_stop(const char* soundFile);
80
87
95int Sound_getVolume(const char* soundFile, double* volume);
96
103int Sound_getVolumeAll(double* volume);
104
112int Sound_setVolume(const char* soundFile, double volume);
113
120int Sound_setVolumeAll(double volume);
121
122#ifdef __cplusplus
123}
124#endif
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.