Fix a seeking bug for sounds.

This commit is contained in:
David Reid
2021-06-19 15:13:47 +10:00
parent 2d43f4d01c
commit efc2fdcba3
+1
View File
@@ -11967,6 +11967,7 @@ static ma_result ma_sound_preinit(ma_engine* pEngine, ma_sound* pSound)
}
MA_ZERO_OBJECT(pSound);
pSound->seekTarget = MA_SEEK_TARGET_NONE;
if (pEngine == NULL) {
return MA_INVALID_ARGS;