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