Commit 35beabb8 authored by David Reid's avatar David Reid

Fix a bug in ma_decoder_seek_to_pcm_frames().

This bug is that the function is never returning MA_SUCCESS even when
successful.
parent 7a72cc3f
...@@ -45903,6 +45903,8 @@ MA_API ma_result ma_decoder_seek_to_pcm_frame(ma_decoder* pDecoder, ma_uint64 fr ...@@ -45903,6 +45903,8 @@ MA_API ma_result ma_decoder_seek_to_pcm_frame(ma_decoder* pDecoder, ma_uint64 fr
if (result == MA_SUCCESS) { if (result == MA_SUCCESS) {
pDecoder->readPointerInPCMFrames = frameIndex; pDecoder->readPointerInPCMFrames = frameIndex;
} }
return result;
} }
/* Should never get here, but if we do it means onSeekToPCMFrame was not set by the backend. */ /* Should never get here, but if we do it means onSeekToPCMFrame was not set by the backend. */
...@@ -62551,6 +62553,7 @@ REVISION HISTORY ...@@ -62551,6 +62553,7 @@ REVISION HISTORY
================ ================
v0.10.19 - TBD v0.10.19 - TBD
- WASAPI: Return an error when exclusive mode is requested, but the native format is not supported by miniaudio. - WASAPI: Return an error when exclusive mode is requested, but the native format is not supported by miniaudio.
- Fix a bug where ma_decoder_seek_to_pcm_frames() never returns MA_SUCCESS even though it was successful.
- Store the sample rate in the `ma_lpf` and `ma_hpf` structures. - Store the sample rate in the `ma_lpf` and `ma_hpf` structures.
v0.10.18 - 2020-08-30 v0.10.18 - 2020-08-30
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment