diff options
| author | Ray <[email protected]> | 2017-05-17 00:33:29 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2017-05-17 00:33:29 +0200 |
| commit | 0780cd4e6a4545fb2a45231c11f4aa54e624734e (patch) | |
| tree | f3a473ff8041805d10d921e5372e30e7bf187a0e /docs/cheatsheet/raylib_audio.c | |
| parent | a5bfd7db228b90b5ddc183a03e1f0630d7321091 (diff) | |
| download | raylib-0780cd4e6a4545fb2a45231c11f4aa54e624734e.tar.gz raylib-0780cd4e6a4545fb2a45231c11f4aa54e624734e.zip | |
Web review
Diffstat (limited to 'docs/cheatsheet/raylib_audio.c')
| -rw-r--r-- | docs/cheatsheet/raylib_audio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/cheatsheet/raylib_audio.c b/docs/cheatsheet/raylib_audio.c index 85b58ebf..3d0447bf 100644 --- a/docs/cheatsheet/raylib_audio.c +++ b/docs/cheatsheet/raylib_audio.c @@ -3,6 +3,7 @@ void InitAudioDevice(void); // Initialize audio device and context void CloseAudioDevice(void); // Close the audio device and context (and music stream) bool IsAudioDeviceReady(void); // Check if audio device is ready + void SetMasterVolume(float volume); // Set master volume (listener) // Wave/Sound loading/unloading functions Wave LoadWave(const char *fileName); // Load wave data from file into RAM @@ -10,7 +11,6 @@ int sampleSize, int channels); // Load wave data from float array data (32bit) Sound LoadSound(const char *fileName); // Load sound to memory Sound LoadSoundFromWave(Wave wave); // Load sound to memory from wave data - Sound LoadSoundFromRES(const char *rresName, int resId); // Load sound to memory from rRES file (raylib Resource) void UpdateSound(Sound sound, void *data, int numSamples); // Update sound buffer with new data void UnloadWave(Wave wave); // Unload wave data void UnloadSound(Sound sound); // Unload sound @@ -39,6 +39,7 @@ bool IsMusicPlaying(Music music); // Check if music is playing void SetMusicVolume(Music music, float volume); // Set volume for music (1.0 is max level) void SetMusicPitch(Music music, float pitch); // Set pitch for a music (1.0 is base level) + void SetMusicLoopCount(Music music, float count); // Set music loop count (loop repeats) float GetMusicTimeLength(Music music); // Get music time length (in seconds) float GetMusicTimePlayed(Music music); // Get current music time played (in seconds) |
