diff options
author | Arystanbek Dyussenov <arystan.d@gmail.com> | 2010-09-04 22:49:07 +0400 |
---|---|---|
committer | Arystanbek Dyussenov <arystan.d@gmail.com> | 2010-09-04 22:49:07 +0400 |
commit | 90b464d3728d9ed8ec26fdf59058d236b99dbcd9 (patch) | |
tree | e88cab4fb1358e962b19f658064ca8c9f8d29f5b /intern/audaspace/intern/AUD_SinusFactory.h | |
parent | 08d02dd04d836976b25793bb1d4c6a86b3f924c7 (diff) | |
parent | b0b787ef38f9947b3176642556f5282eb3518f69 (diff) |
COLLADA branch: merge from trunk -r 28015:31610.soc-2009-chingachgook
Diffstat (limited to 'intern/audaspace/intern/AUD_SinusFactory.h')
-rw-r--r-- | intern/audaspace/intern/AUD_SinusFactory.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/intern/audaspace/intern/AUD_SinusFactory.h b/intern/audaspace/intern/AUD_SinusFactory.h index ffb36e741b9..2c5965e11f0 100644 --- a/intern/audaspace/intern/AUD_SinusFactory.h +++ b/intern/audaspace/intern/AUD_SinusFactory.h @@ -37,12 +37,16 @@ private: /** * The frequence of the sine wave. */ - double m_frequency; + const float m_frequency; /** * The target sample rate for output. */ - AUD_SampleRate m_sampleRate; + const AUD_SampleRate m_sampleRate; + + // hide copy constructor and operator= + AUD_SinusFactory(const AUD_SinusFactory&); + AUD_SinusFactory& operator=(const AUD_SinusFactory&); public: /** @@ -50,21 +54,15 @@ public: * \param frequency The desired frequency. * \param sampleRate The target sample rate for playback. */ - AUD_SinusFactory(double frequency, + AUD_SinusFactory(float frequency, AUD_SampleRate sampleRate = AUD_RATE_44100); /** * Returns the frequency of the sine wave. */ - double getFrequency(); - - /** - * Sets the frequency. - * \param frequency The new frequency. - */ - void setFrequency(double frequency); + float getFrequency() const; - virtual AUD_IReader* createReader(); + virtual AUD_IReader* createReader() const; }; #endif //AUD_SINUSFACTORY |