diff --git a/stepmania/src/RageSoundReader.h b/stepmania/src/RageSoundReader.h index 604a858fec..a50b916176 100644 --- a/stepmania/src/RageSoundReader.h +++ b/stepmania/src/RageSoundReader.h @@ -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 { diff --git a/stepmania/src/RageSoundReader_Filter.h b/stepmania/src/RageSoundReader_Filter.h index 6ca2e0be57..7e8adc9aca 100644 --- a/stepmania/src/RageSoundReader_Filter.h +++ b/stepmania/src/RageSoundReader_Filter.h @@ -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 m_pSource;