mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Add support for data sources without support for seeking.
This commit is contained in:
@@ -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 the sound is at the end it means we want to start from the start again. */
|
||||||
if (ma_sound_at_end(pSound)) {
|
if (ma_sound_at_end(pSound)) {
|
||||||
ma_result result = ma_data_source_seek_to_pcm_frame(pSound->pDataSource, 0);
|
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. */
|
return result; /* Failed to seek back to the start. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user