From cc043b3d16739e86f6d4d0990c2c7cc1c1c717f7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 23 Dec 2006 07:00:28 +0000 Subject: [PATCH] no error here --- stepmania/src/RageSoundReader_Preload.cpp | 4 ---- stepmania/src/RageSoundReader_Preload.h | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/stepmania/src/RageSoundReader_Preload.cpp b/stepmania/src/RageSoundReader_Preload.cpp index a6a0adf116..22cfcbe4f4 100644 --- a/stepmania/src/RageSoundReader_Preload.cpp +++ b/stepmania/src/RageSoundReader_Preload.cpp @@ -65,11 +65,7 @@ bool RageSoundReader_Preload::Open( RageSoundReader *pSource ) int iCnt = pSource->Read( buffer, sizeof(buffer) / iBytesPerFrame ); if( iCnt < 0 ) - { - /* XXX untested */ - SetError(pSource->GetError()); return false; - } if( iCnt == END_OF_FILE ) break; diff --git a/stepmania/src/RageSoundReader_Preload.h b/stepmania/src/RageSoundReader_Preload.h index 7be26480b8..4e7993a818 100644 --- a/stepmania/src/RageSoundReader_Preload.h +++ b/stepmania/src/RageSoundReader_Preload.h @@ -22,6 +22,7 @@ public: bool IsStreamingFromDisk() const { return false; } int GetNextSourceFrame() const; float GetStreamToSourceRatio() const { return m_fRate; } + RString GetError() const { return ""; } /* Return the total number of copies of this sound. (If 1 is returned, * this is the last copy.) */