(WaveAudio.TryOpen): reset sound position on embedded stream errors.

This commit is contained in:
morkt 2015-05-16 17:11:15 +04:00
parent 7b131442ad
commit 8cd51ae896

View File

@ -120,7 +120,10 @@ namespace GameRes
sound = embedded;
}
}
catch { /* ignore errors */ }
catch
{
sound.Position = 0;
}
}
return sound;
}