Clear the input buffer after seeking. This fixes problems with leftover

data before the seek being delivered after the seek, which would throw
off sync.
This commit is contained in:
Glenn Maynard
2003-08-17 23:55:54 +00:00
parent f901311803
commit a6bc2db876
2 changed files with 4 additions and 0 deletions
@@ -87,6 +87,8 @@ int SoundReader_SDL_Sound::GetLength_Fast() const
int SoundReader_SDL_Sound::SetPosition(int ms, bool accurate)
{
avail = 0;
if(ms == 0)
{
Sound_Rewind(Sample);