diff options
author | Joerg Mueller <nexyon@gmail.com> | 2011-08-16 17:00:55 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2011-08-16 17:00:55 +0400 |
commit | 02d2472baacd8ac091a29392a2bc9ac8693fb5e7 (patch) | |
tree | dfd8a80ce8c1771a318a46120c81514836ed4b2d /intern/audaspace/FX/AUD_BaseIIRFilterReader.h | |
parent | a67562e73cbc2f4a9641fbc4d1147b4b2cc935c4 (diff) |
3D Audio GSoC:
Code documentation.
Also:
* Fix: rlint for MSVC.
* Minor other small fixes/changes.
Diffstat (limited to 'intern/audaspace/FX/AUD_BaseIIRFilterReader.h')
-rw-r--r-- | intern/audaspace/FX/AUD_BaseIIRFilterReader.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/intern/audaspace/FX/AUD_BaseIIRFilterReader.h b/intern/audaspace/FX/AUD_BaseIIRFilterReader.h index 644bcffbfaf..6bf877d66da 100644 --- a/intern/audaspace/FX/AUD_BaseIIRFilterReader.h +++ b/intern/audaspace/FX/AUD_BaseIIRFilterReader.h @@ -97,11 +97,21 @@ protected: void setLengths(int in, int out); public: + /** + * Retrieves the last input samples. + * \param pos The position, valid are 0 (current) or negative values. + * \return The sample value. + */ inline sample_t x(int pos) { return m_x[(m_xpos + pos + m_xlen) % m_xlen * m_specs.channels + m_channel]; } + /** + * Retrieves the last output samples. + * \param pos The position, valid are negative values. + * \return The sample value. + */ inline sample_t y(int pos) { return m_y[(m_ypos + pos + m_ylen) % m_ylen * m_specs.channels + m_channel]; @@ -111,7 +121,16 @@ public: virtual void read(int& length, bool& eos, sample_t* buffer); + /** + * Runs the filtering function. + * \return The current output sample value. + */ virtual sample_t filter()=0; + + /** + * Notifies the filter about a sample rate change. + * \param rate The new sample rate. + */ virtual void sampleRateChanged(AUD_SampleRate rate); }; |