mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(WaveAudio.TryOpen): reset sound position on embedded stream errors.
This commit is contained in:
@@ -120,7 +120,10 @@ namespace GameRes
|
|||||||
sound = embedded;
|
sound = embedded;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch { /* ignore errors */ }
|
catch
|
||||||
|
{
|
||||||
|
sound.Position = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return sound;
|
return sound;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user