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_SquareReader.h')
-rw-r--r--intern/audaspace/FX/AUD_SquareReader.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/intern/audaspace/FX/AUD_SquareReader.h b/intern/audaspace/FX/AUD_SquareReader.h
index 63dda351445..d3a5331b0e8 100644
--- a/intern/audaspace/FX/AUD_SquareReader.h
+++ b/intern/audaspace/FX/AUD_SquareReader.h
@@ -27,7 +27,7 @@
#define AUD_SQUAREREADER
#include "AUD_EffectReader.h"
-class AUD_Buffer;
+#include "AUD_Buffer.h"
/**
* This class changes another signal into a square signal.
@@ -38,27 +38,25 @@ private:
/**
* The playback buffer.
*/
- AUD_Buffer *m_buffer;
+ AUD_Buffer m_buffer;
/**
* The threshold level.
*/
- float m_threshold;
+ const float m_threshold;
+
+ // hide copy constructor and operator=
+ AUD_SquareReader(const AUD_SquareReader&);
+ AUD_SquareReader& operator=(const AUD_SquareReader&);
public:
/**
* Creates a new square reader.
* \param reader The reader to read from.
* \param threshold The size of the buffer.
- * \exception AUD_Exception Thrown if the reader specified is NULL.
*/
AUD_SquareReader(AUD_IReader* reader, float threshold);
- /**
- * Destroys the reader.
- */
- virtual ~AUD_SquareReader();
-
virtual void read(int & length, sample_t* & buffer);
};