diff options
Diffstat (limited to 'intern/audaspace/FX/AUD_LimiterReader.h')
-rw-r--r-- | intern/audaspace/FX/AUD_LimiterReader.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/intern/audaspace/FX/AUD_LimiterReader.h b/intern/audaspace/FX/AUD_LimiterReader.h index 4375ed9e10d..9cddd4d57ec 100644 --- a/intern/audaspace/FX/AUD_LimiterReader.h +++ b/intern/audaspace/FX/AUD_LimiterReader.h @@ -35,7 +35,7 @@ #include "AUD_EffectReader.h" /** - * This reader limits another reader in start and end sample. + * This reader limits another reader in start and end times. */ class AUD_LimiterReader : public AUD_EffectReader { @@ -43,12 +43,12 @@ private: /** * The start sample: inclusive. */ - const int m_start; + const float m_start; /** * The end sample: exlusive. */ - const int m_end; + const float m_end; // hide copy constructor and operator= AUD_LimiterReader(const AUD_LimiterReader&); @@ -58,16 +58,16 @@ public: /** * Creates a new limiter reader. * \param reader The reader to read from. - * \param start The desired start sample (inclusive). - * \param end The desired end sample (exklusive), a negative value signals - * that it should play to the end. + * \param start The desired start time (inclusive). + * \param end The desired end time (sample exklusive), a negative value + * signals that it should play to the end. */ - AUD_LimiterReader(AUD_IReader* reader, float start = 0, float end = -1); + AUD_LimiterReader(AUD_Reference<AUD_IReader> reader, float start = 0, float end = -1); virtual void seek(int position); virtual int getLength() const; virtual int getPosition() const; - virtual void read(int & length, sample_t* & buffer); + virtual void read(int& length, bool& eos, sample_t* buffer); }; #endif //AUD_LIMITERREADER |