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
@@ -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