diff options
author | Thomas <mail.thomasclement@gmail.com> | 2021-08-15 10:03:09 +0200 |
---|---|---|
committer | Thomas <mail.thomasclement@gmail.com> | 2021-08-15 10:03:09 +0200 |
commit | 3a1d97f556bc4c5384799ac121640984b590c05c (patch) | |
tree | 20aeab4c18d76c344e2ce1f16913b39c447659b1 /libs/raylib/src/raudio.h | |
parent | eebaddf29efad9bc7b82d8745d839931f08ef887 (diff) | |
download | gamejam-slgj-2024-3a1d97f556bc4c5384799ac121640984b590c05c.tar.gz gamejam-slgj-2024-3a1d97f556bc4c5384799ac121640984b590c05c.tar.bz2 gamejam-slgj-2024-3a1d97f556bc4c5384799ac121640984b590c05c.zip |
Updated to raylib 3.7
Diffstat (limited to 'libs/raylib/src/raudio.h')
-rw-r--r-- | libs/raylib/src/raudio.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/raylib/src/raudio.h b/libs/raylib/src/raudio.h index 154ae8e..cf8b767 100644 --- a/libs/raylib/src/raudio.h +++ b/libs/raylib/src/raudio.h @@ -1,6 +1,6 @@ /********************************************************************************************** * -* raudio - A simple and easy-to-use audio library based on miniaudio +* raudio v1.0 - A simple and easy-to-use audio library based on miniaudio * * FEATURES: * - Manage audio device (init/close) @@ -31,7 +31,7 @@ * * LICENSE: zlib/libpng * -* Copyright (c) 2014-2020 Ramon Santamaria (@raysan5) +* Copyright (c) 2014-2021 Ramon Santamaria (@raysan5) * * This software is provided "as-is", without any express or implied warranty. In no event * will the authors be held liable for any damages arising from the use of this software. @@ -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; @@ -164,6 +164,7 @@ float *GetWaveData(Wave wave); // Get samples d // Music management functions Music LoadMusicStream(const char *fileName); // Load music stream from file +Music LoadMusicStreamFromMemory(const char *fileType, unsigned char* data, int dataSize); // Load module music from data void UnloadMusicStream(Music music); // Unload music stream void PlayMusicStream(Music music); // Start music playing void UpdateMusicStream(Music music); // Updates buffers for music streaming @@ -173,7 +174,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) |