fix StreamingSoundOgg seek

main
cosmonaut 1 year ago
parent efb9893aef
commit 1e6455d070

@ -56,20 +56,7 @@ namespace MoonWorks.Audio
public override void Seek(uint sampleFrame)
{
if (State == SoundState.Playing)
{
FAudio.FAudioSourceVoice_Stop(Handle, 0, 0);
}
FAudio.FAudioSourceVoice_FlushSourceBuffers(Handle);
ClearBuffers();
FAudio.stb_vorbis_seek(VorbisHandle, sampleFrame);
QueueBuffers();
if (State == SoundState.Playing)
{
Play();
}
}
protected unsafe override void FillBuffer(

Loading…
Cancel
Save