mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-28 05:58:30 +00:00
Minor tweaks
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -111,5 +111,6 @@ build/
|
||||
build-*/
|
||||
docgen_tmp/
|
||||
|
||||
# Parser stuff
|
||||
parser/raylib_parser
|
||||
# Tools stuff
|
||||
tools/parser/raylib_parser
|
||||
tools/rexm/VS2022
|
||||
|
@@ -2087,7 +2087,7 @@ float GetMusicTimePlayed(Music music)
|
||||
int framesInFirstBuffer = music.stream.buffer->isSubBufferProcessed[0]? 0 : subBufferSize;
|
||||
int framesInSecondBuffer = music.stream.buffer->isSubBufferProcessed[1]? 0 : subBufferSize;
|
||||
int framesInBuffers = framesInFirstBuffer + framesInSecondBuffer;
|
||||
if (framesInBuffers > music.frameCount) {
|
||||
if ((unsigned int)framesInBuffers > music.frameCount) {
|
||||
if (!music.looping) framesInBuffers = music.frameCount;
|
||||
}
|
||||
int framesSentToMix = music.stream.buffer->frameCursorPos%subBufferSize;
|
||||
|
Reference in New Issue
Block a user