From 830577f81e0d5905a55319da446eec081ffae30b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 29 Nov 2006 07:38:21 +0000 Subject: [PATCH] add GetNextStreamFrame, GetStreamToSourceRatio --- stepmania/src/RageSoundReader.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/RageSoundReader.h b/stepmania/src/RageSoundReader.h index 5422bcc1aa..f19152a20e 100644 --- a/stepmania/src/RageSoundReader.h +++ b/stepmania/src/RageSoundReader.h @@ -18,6 +18,13 @@ public: virtual unsigned GetNumChannels() const { return 2; } /* 1 or 2 */ virtual bool IsStreamingFromDisk() const = 0; + /* GetNextStreamFrame() provides the source frame associated with the next frame + * that will be read via Read(). GetStreamToSourceRatio() returns the ratio + * for extrapolating the source frames of the remainder of the block. These + * values are valid so long as no parameters are changed before the next Read(). */ + virtual int GetNextStreamFrame() const = 0;//{ return 0; } // XXX: should be pure + virtual float GetStreamToSourceRatio() const { return 1.0f; } // XXX: should be pure + string GetError() const { return m_sError; } protected: