use float.h and limit.h constants instead of arbitrary large numbers

This commit is contained in:
Chris Danford
2005-03-25 20:01:51 +00:00
parent 50bd3a493c
commit bb6592a4e7
12 changed files with 30 additions and 19 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ unsigned RageSoundReader_Chain::GetNextSoundIndex() const
int RageSoundReader_Chain::ReadBlock( int16_t *pBuffer, int iFrames )
{
/* How many samples should we read before we need to start up a sound? */
int iFramesToRead = 999999999; /* inf */
int iFramesToRead = INT_MAX;
if( m_iNextSound < m_Sounds.size() )
{
int iStartFrame = m_iCurrentFrame;