summaryrefslogtreecommitdiffhomepage
path: root/src/raudio.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-05-14 14:00:37 +0200
committerraysan5 <[email protected]>2020-05-14 14:00:37 +0200
commit257f232d418cd0e8dc6aef409a16defca044fa1a (patch)
tree5af78932da604a266ea532ddf445f2298def2b8a /src/raudio.h
parent3a33fe0fd9dae174a244680095c90b264d808416 (diff)
downloadraylib-257f232d418cd0e8dc6aef409a16defca044fa1a.tar.gz
raylib-257f232d418cd0e8dc6aef409a16defca044fa1a.zip
WARNING: BREAKING CHANGE: Review audio looping system
Current looping system was broken, `loopCount` has been converted to `bool looping` and user can enable/disable with `music.looping = false`. `SetMusicLoopCount()` has been removed.
Diffstat (limited to 'src/raudio.h')
-rw-r--r--src/raudio.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/raudio.h b/src/raudio.h
index 154ae8e5..8056a37e 100644
--- a/src/raudio.h
+++ b/src/raudio.h
@@ -111,8 +111,8 @@ typedef struct Music {
int ctxType; // Type of music context (audio filetype)
void *ctxData; // Audio context data, depends on type
+ bool looping; // Music looping enable
unsigned int sampleCount; // Total number of samples
- unsigned int loopCount; // Loops count (times music will play), 0 means infinite loop
AudioStream stream; // Audio stream
} Music;
@@ -173,7 +173,6 @@ void ResumeMusicStream(Music music); // Resume playin
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, int 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)