flush the sound to the write position, not the play position

This commit is contained in:
Glenn Maynard
2004-11-04 00:20:48 +00:00
parent 26faea2615
commit e3b9a4bacc
@@ -192,7 +192,7 @@ void RageSound_ALSA9::StartMixing(RageSoundBase *snd)
if( bEOF ) if( bEOF )
{ {
stream_pool[i]->state = stream_pool[i]->FLUSHING; stream_pool[i]->state = stream_pool[i]->FLUSHING;
stream_pool[i]->flush_pos = stream_pool[i]->pcm->GetPosition(); stream_pool[i]->flush_pos = stream_pool[i]->pcm->GetPlayPos();
} }
else else
stream_pool[i]->state = stream_pool[i]->PLAYING; stream_pool[i]->state = stream_pool[i]->PLAYING;