errors in source filters, so each filter in the chain doesn't have a separate

error
This commit is contained in:
Glenn Maynard
2006-12-23 06:59:50 +00:00
parent 55e3391b4f
commit ce3ba75e23
2 changed files with 6 additions and 7 deletions
+1 -7
View File
@@ -40,14 +40,8 @@ public:
virtual int GetNextSourceFrame() const = 0;
virtual float GetStreamToSourceRatio() const = 0;
virtual RString GetError() const { return m_sError; }
virtual RString GetError() const = 0;
int RetriedRead( char *pBuffer, int iFrames, int *iSourceFrame = NULL, float *fRate = NULL );
protected:
void SetError( RString sError ) const { m_sError = sError; }
private:
mutable RString m_sError;
};
#endif
@@ -26,11 +26,16 @@ public:
virtual OpenResult Open(RString filename) = 0;
virtual bool IsStreamingFromDisk() const { return true; }
virtual float GetStreamToSourceRatio() const { return 1.0f; }
virtual RString GetError() const { return m_sError; }
static RageSoundReader *OpenFile( RString filename, RString &error );
protected:
void SetError( RString sError ) const { m_sError = sError; }
private:
static RageSoundReader_FileReader *TryOpenFile( RString filename, RString &error, RString format, bool &bKeepTrying );
mutable RString m_sError;
};
#endif