The issue is that you either have to "pretend" the reposition has happened, by setting position to the supplied value, or leave position as it was and change it when the reposition is actually performed. The former is probably preferable. You really do need to move those decoder variables being set to 0 into the Read function though, or you could get corruption in the playback thread if you were repositioning while a Read was in progress.
↧