Remove sampleLeft from Music struct... -WIP-

...moved to internal AudioBuffer structure as totalFramesProcessed, now time measure works again... but there is some problem with looping...
Also note some inconsistencies between frames and samples, it seems those concepts are not considered correctly in the code.
This commit is contained in:
Ray 2019-09-03 23:08:02 +02:00
parent dde1e0671f
commit fc95ceadf0
4 changed files with 132 additions and 169 deletions

View file

@ -434,7 +434,6 @@ typedef struct Music {
void *ctxData; // Audio context data, depends on type
unsigned int sampleCount; // Total number of samples
unsigned int sampleLeft; // Number of samples left to end
unsigned int loopCount; // Loops count (times music will play), 0 means infinite loop
AudioStream stream; // Audio stream