From 1e6455d07031907b2126b070730e47a0c363883d Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 2 Aug 2022 14:15:16 -0700 Subject: [PATCH] fix StreamingSoundOgg seek --- src/Audio/StreamingSoundOgg.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Audio/StreamingSoundOgg.cs b/src/Audio/StreamingSoundOgg.cs index 1b44e55b..1d37c09d 100644 --- a/src/Audio/StreamingSoundOgg.cs +++ b/src/Audio/StreamingSoundOgg.cs @@ -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(