Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/audaspace/FX/AUD_AccumulatorReader.h')
-rw-r--r--intern/audaspace/FX/AUD_AccumulatorReader.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/intern/audaspace/FX/AUD_AccumulatorReader.h b/intern/audaspace/FX/AUD_AccumulatorReader.h
index 8ad1dda30f6..68c1360731d 100644
--- a/intern/audaspace/FX/AUD_AccumulatorReader.h
+++ b/intern/audaspace/FX/AUD_AccumulatorReader.h
@@ -27,7 +27,7 @@
#define AUD_ACCUMULATORREADER
#include "AUD_EffectReader.h"
-class AUD_Buffer;
+#include "AUD_Buffer.h"
/**
* This class represents an accumulator.
@@ -36,39 +36,37 @@ class AUD_AccumulatorReader : public AUD_EffectReader
{
private:
/**
+ * Whether the accumulator is additive.
+ */
+ const bool m_additive;
+
+ /**
* The playback buffer.
*/
- AUD_Buffer *m_buffer;
+ AUD_Buffer m_buffer;
/**
* The sums of the specific channels.
*/
- AUD_Buffer *m_sums;
+ AUD_Buffer m_sums;
/**
* The previous results of the specific channels.
*/
- AUD_Buffer *m_prevs;
+ AUD_Buffer m_prevs;
- /**
- * Whether the accumulator is additive.
- */
- bool m_additive;
+ // hide copy constructor and operator=
+ AUD_AccumulatorReader(const AUD_AccumulatorReader&);
+ AUD_AccumulatorReader& operator=(const AUD_AccumulatorReader&);
public:
/**
* Creates a new accumulator reader.
* \param reader The reader to read from.
* \param additive Whether the accumulator is additive.
- * \exception AUD_Exception Thrown if the reader specified is NULL.
*/
AUD_AccumulatorReader(AUD_IReader* reader, bool additive);
- /**
- * Destroys the reader.
- */
- virtual ~AUD_AccumulatorReader();
-
virtual void read(int & length, sample_t* & buffer);
};