cmdfx 0.3.0
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
40int Sound_playLooped(const char* soundFile, int loopCount);
41
48int Sound_pause(const char* soundFile);
49
56
63int Sound_resume(const char* soundFile);
64
71
78int Sound_stop(const char* soundFile);
79
86
94int Sound_getVolume(const char* soundFile, double* volume);
95
102int Sound_getVolumeAll(double* volume);
103
111int Sound_setVolume(const char* soundFile, double volume);
112
119int Sound_setVolumeAll(double volume);
120
121#ifdef __cplusplus
122}
123#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.