clean vorbis seek requires discarding pending samples from the dsp

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5783 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty
2003-12-28 12:19:37 +00:00
parent 7bbf8af761
commit f339b6e0b5
@@ -139,6 +139,10 @@ vorbisDecoder::Seek(uint32 seekTo,
bigtime_t seekTime, bigtime_t *time)
{
TRACE("vorbisDecoder::Seek\n");
float **pcm;
// throw the old samples away!
int samples = vorbis_synthesis_pcmout(&fDspState,&pcm);
vorbis_synthesis_read(&fDspState,samples);
return B_OK;
}