This project is read-only.

FLAC not repositioning

Jul 21, 2014 at 8:10 PM
Using the function SoundOut.WaveSource.SetPosition has no influence on the position in FLAC files. After using SetPosition, the GetPosition reports the correct position in the flac file (the position which was set by SetPosition), but the song continues playing from the previous position (the position it was in before calling SetPosition).
I'm using this skip function:
Public Sub Skip(iGotoSeconds As Integer) Implements IPlayer.Skip

            Debug.WriteLine("FLAC position before=" & Me.mSoundOut.WaveSource.GetPosition.ToString)
            Debug.WriteLine("Setting FLAC position to=" & New TimeSpan(0, 0, iGotoSeconds).ToString)
            Me.mSoundOut.WaveSource.SetPosition(New TimeSpan(0, 0, iGotoSeconds))
            Debug.WriteLine("FLAC position after=" & Me.mSoundOut.WaveSource.GetPosition.ToString)
        Catch ex As Exception

        End Try
    End Sub
This is the output from calling skip():

FLAC position before=00:00:02.7710000
Setting FLAC position to=00:01:43
FLAC position after=00:01:43.0260000
Jul 21, 2014 at 10:13 PM
Edited Jul 24, 2014 at 4:55 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

-- Bug got fixed.
Marked as answer by filoe on 7/24/2014 at 8:55 AM