mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
(WaveAudio.TryOpen): reset sound position on embedded stream errors.
This commit is contained in:
parent
7b131442ad
commit
8cd51ae896
@ -120,7 +120,10 @@ namespace GameRes
|
|||||||
sound = embedded;
|
sound = embedded;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch { /* ignore errors */ }
|
catch
|
||||||
|
{
|
||||||
|
sound.Position = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return sound;
|
return sound;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user