mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
Fix a seeking bug for sounds.
This commit is contained in:
@@ -11967,6 +11967,7 @@ static ma_result ma_sound_preinit(ma_engine* pEngine, ma_sound* pSound)
|
|||||||
}
|
}
|
||||||
|
|
||||||
MA_ZERO_OBJECT(pSound);
|
MA_ZERO_OBJECT(pSound);
|
||||||
|
pSound->seekTarget = MA_SEEK_TARGET_NONE;
|
||||||
|
|
||||||
if (pEngine == NULL) {
|
if (pEngine == NULL) {
|
||||||
return MA_INVALID_ARGS;
|
return MA_INVALID_ARGS;
|
||||||
|
|||||||
Reference in New Issue
Block a user