From 3a77a52dba971cb961d5a014e4258ba8ef0c0e79 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 23 Nov 2005 18:52:49 +0000 Subject: [PATCH] this only returns bool; fix comment --- stepmania/src/RageSound.cpp | 6 +++--- stepmania/src/RageSound.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 7f83d8af5d..1df4e8a367 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -299,10 +299,10 @@ void RageSound::RateChange( char *pBuffer, int &iCount, int iInputSpeed, int iOu iCount = (iCount * iOutputSpeed) / iInputSpeed; } -/* Fill the buffer by about "bytes" worth of data. (We might go a little +/* Fill the buffer by about iFrames worth of data. (We might go a little * over, and we won't overflow our buffer.) Return the number of bytes * actually read; 0 = EOF. Convert mono input to stereo. */ -int RageSound::FillBuf( int iFrames ) +bool RageSound::FillBuf( int iFrames ) { ASSERT( m_pSource ); @@ -344,7 +344,7 @@ int RageSound::FillBuf( int iFrames ) Fail( m_pSource->GetError() ); /* Pretend we got EOF. */ - return 0; + return false; } if( m_pSource->GetNumChannels() == 1 ) diff --git a/stepmania/src/RageSound.h b/stepmania/src/RageSound.h index 7f2b72c687..9e081e3ccc 100644 --- a/stepmania/src/RageSound.h +++ b/stepmania/src/RageSound.h @@ -145,7 +145,7 @@ private: SoundReader *m_pSource; CircBuf m_DataBuffer; - int FillBuf( int iBytes ); + bool FillBuf( int iFrames ); /* We keep track of sound blocks we've sent out recently through GetDataToPlay. */ pos_map_queue m_PositionMapping;