fix ALSA problems when going through plug

This commit is contained in:
Glenn Maynard
2004-02-05 21:03:03 +00:00
parent b899848309
commit 990eb50e4a
4 changed files with 8 additions and 7 deletions
@@ -56,10 +56,7 @@ RageSound_ALSA9::stream::~stream()
/* Returns the number of frames processed */
bool RageSound_ALSA9::stream::GetData(bool init)
{
int frames_to_fill = pcm->GetNumFramesToFill( max_writeahead );
if( !init )
frames_to_fill = min( frames_to_fill, chunksize );
int frames_to_fill = pcm->GetNumFramesToFill( max_writeahead, init? max_writeahead:chunksize );
if( frames_to_fill < chunksize )
return false;