From 2d43f4d01c4bca4d212caf6c764b8b07c2178755 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 13 Jun 2021 18:05:20 +1000 Subject: [PATCH] Add support for data sources without support for seeking. --- research/miniaudio_engine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/research/miniaudio_engine.h b/research/miniaudio_engine.h index cb298cbe..4c005155 100644 --- a/research/miniaudio_engine.h +++ b/research/miniaudio_engine.h @@ -12261,7 +12261,7 @@ MA_API ma_result ma_sound_start(ma_sound* pSound) /* If the sound is at the end it means we want to start from the start again. */ if (ma_sound_at_end(pSound)) { ma_result result = ma_data_source_seek_to_pcm_frame(pSound->pDataSource, 0); - if (result != MA_SUCCESS) { + if (result != MA_SUCCESS && result != MA_NOT_IMPLEMENTED) { return result; /* Failed to seek back to the start. */ }