fix StreamingSoundOgg seek

pull/21/head
cosmonaut 2022-08-02 14:15:16 -07:00
parent efb9893aef
commit 1e6455d070
1 changed files with 0 additions and 13 deletions

View File

@ -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(