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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user