make GetSource virtual

This commit is contained in:
Glenn Maynard
2006-12-13 08:47:05 +00:00
parent 66e3eaa3e9
commit 873a979b06
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@ public:
virtual unsigned GetNumChannels() const = 0;
virtual bool IsStreamingFromDisk() const = 0;
virtual bool SetProperty( const RString &sProperty, float fValue ) { return false; }
virtual RageSoundReader *GetSource() { return NULL; }
/* Return values for Read(). */
enum {
+1 -1
View File
@@ -23,7 +23,7 @@ public:
virtual bool SetProperty( const RString &sProperty, float fValue ) { return m_pSource->SetProperty( sProperty, fValue ); }
virtual int GetNextSourceFrame() const { return m_pSource->GetNextSourceFrame(); }
virtual float GetStreamToSourceRatio() const { return m_pSource->GetStreamToSourceRatio(); }
RageSoundReader *GetSource() { return &*m_pSource; }
virtual RageSoundReader *GetSource() { return &*m_pSource; }
protected:
HiddenPtr<RageSoundReader> m_pSource;