mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +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;
|
||||
}
|
||||
}
|
||||
catch { /* ignore errors */ }
|
||||
catch
|
||||
{
|
||||
sound.Position = 0;
|
||||
}
|
||||
}
|
||||
return sound;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user