Closed erikjalevik closed 1 year ago
Are you able to try the dev branch? I think I fixed an issue relating to this. I really need to get a new release done...
A cursory test does indeed seem to indicate it's been fixed in the dev branch!
Thanks for checking. I'll go ahead and close this one.
Using the high-level API, I seem to be unable to restrict playback to a range of a sound. Playback starts at the range start point, but doesn't stop at the range's end point.
Assuming an initialised engine, here's a simplified version of the code:
This will always play the sound to the end of the file.
I had a quick look around the source code, and from what I can tell, it looks like
ma_data_source_read_pcm_frames_within_range
is supposed to returnMA_AT_END
when hitting the end of the range, but it never does. NeitherframeCount
norframesRead
ever seem to become 0.Debug output: