FreeApp2014/Malugri

[Rewrite] Make audio source respect file boundaries

Closed this issue · 1 comments

The audio source callback will only check for looping on every call. In case there is not enough samples left in file to fit the frame, it will over-read the buffer, causing silence or garbage noises to be output for a split second, making the loop sound broken.

The looping check should also include the current read too, to reset counter in the middle of reading, so the loop is perfectly smooth.

Fixed in 7d18825