3D Audio GSoC:
authorJoerg Mueller <nexyon@gmail.com>
Tue, 14 Jun 2011 21:22:22 +0000 (21:22 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Tue, 14 Jun 2011 21:22:22 +0000 (21:22 +0000)
Removing unneeded const from Factory::createReader.

61 files changed:
intern/audaspace/FX/AUD_AccumulatorFactory.cpp
intern/audaspace/FX/AUD_AccumulatorFactory.h
intern/audaspace/FX/AUD_ButterworthFactory.cpp
intern/audaspace/FX/AUD_ButterworthFactory.h
intern/audaspace/FX/AUD_DelayFactory.cpp
intern/audaspace/FX/AUD_DelayFactory.h
intern/audaspace/FX/AUD_DoubleFactory.cpp
intern/audaspace/FX/AUD_DoubleFactory.h
intern/audaspace/FX/AUD_EnvelopeFactory.cpp
intern/audaspace/FX/AUD_EnvelopeFactory.h
intern/audaspace/FX/AUD_FaderFactory.cpp
intern/audaspace/FX/AUD_FaderFactory.h
intern/audaspace/FX/AUD_HighpassFactory.cpp
intern/audaspace/FX/AUD_HighpassFactory.h
intern/audaspace/FX/AUD_IIRFilterFactory.cpp
intern/audaspace/FX/AUD_IIRFilterFactory.h
intern/audaspace/FX/AUD_LimiterFactory.cpp
intern/audaspace/FX/AUD_LimiterFactory.h
intern/audaspace/FX/AUD_LoopFactory.cpp
intern/audaspace/FX/AUD_LoopFactory.h
intern/audaspace/FX/AUD_LowpassFactory.cpp
intern/audaspace/FX/AUD_LowpassFactory.h
intern/audaspace/FX/AUD_PingPongFactory.cpp
intern/audaspace/FX/AUD_PingPongFactory.h
intern/audaspace/FX/AUD_PitchFactory.cpp
intern/audaspace/FX/AUD_PitchFactory.h
intern/audaspace/FX/AUD_RectifyFactory.cpp
intern/audaspace/FX/AUD_RectifyFactory.h
intern/audaspace/FX/AUD_ReverseFactory.cpp
intern/audaspace/FX/AUD_ReverseFactory.h
intern/audaspace/FX/AUD_SquareFactory.cpp
intern/audaspace/FX/AUD_SquareFactory.h
intern/audaspace/FX/AUD_SumFactory.cpp
intern/audaspace/FX/AUD_SumFactory.h
intern/audaspace/FX/AUD_SuperposeFactory.cpp
intern/audaspace/FX/AUD_SuperposeFactory.h
intern/audaspace/FX/AUD_VolumeFactory.cpp
intern/audaspace/FX/AUD_VolumeFactory.h
intern/audaspace/SRC/AUD_SRCResampleFactory.cpp
intern/audaspace/SRC/AUD_SRCResampleFactory.h
intern/audaspace/ffmpeg/AUD_FFMPEGFactory.cpp
intern/audaspace/ffmpeg/AUD_FFMPEGFactory.h
intern/audaspace/intern/AUD_ChannelMapperFactory.cpp
intern/audaspace/intern/AUD_ChannelMapperFactory.h
intern/audaspace/intern/AUD_ConverterFactory.cpp
intern/audaspace/intern/AUD_ConverterFactory.h
intern/audaspace/intern/AUD_FileFactory.cpp
intern/audaspace/intern/AUD_FileFactory.h
intern/audaspace/intern/AUD_IFactory.h
intern/audaspace/intern/AUD_LinearResampleFactory.cpp
intern/audaspace/intern/AUD_LinearResampleFactory.h
intern/audaspace/intern/AUD_SequencerFactory.cpp
intern/audaspace/intern/AUD_SequencerFactory.h
intern/audaspace/intern/AUD_SilenceFactory.cpp
intern/audaspace/intern/AUD_SilenceFactory.h
intern/audaspace/intern/AUD_SinusFactory.cpp
intern/audaspace/intern/AUD_SinusFactory.h
intern/audaspace/intern/AUD_StreamBufferFactory.cpp
intern/audaspace/intern/AUD_StreamBufferFactory.h
intern/audaspace/sndfile/AUD_SndFileFactory.cpp
intern/audaspace/sndfile/AUD_SndFileFactory.h

index 207c2ee502b4073b7af7af12273504514295fe68..b0996ebf849bbe0fce74e72d0bb0c91dbc8006e0 100644 (file)
@@ -59,7 +59,7 @@ AUD_AccumulatorFactory::AUD_AccumulatorFactory(AUD_Reference<AUD_IFactory> facto
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_AccumulatorFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_AccumulatorFactory::createReader()
 {
        return new AUD_CallbackIIRFilterReader(getReader(), 2, 2,
                                                        m_additive ? accumulatorFilterAdditive : accumulatorFilter);
index becd5d9aaee2ca1cf714b1b479fb79ddc660e063..c147d1226e5400a90ce2d31e389bc687626eb9bb 100644 (file)
@@ -57,7 +57,7 @@ public:
         */
        AUD_AccumulatorFactory(AUD_Reference<AUD_IFactory> factory, bool additive = false);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_ACCUMULATORFACTORY
index 1161a485fb17e96378fc7f22da36ed6b815fc470..2d6e14a5ef1f51f989ffeb68406f1432c5170ccc 100644 (file)
@@ -48,7 +48,7 @@ AUD_ButterworthFactory::AUD_ButterworthFactory(AUD_Reference<AUD_IFactory> facto
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_ButterworthFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_ButterworthFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader = getReader();
 
index c211a6df2460f97ff9020ba18a5f78cc859dc1be..be98fd873802ab29f356310c66330a8df30c351f 100644 (file)
@@ -57,7 +57,7 @@ public:
         */
        AUD_ButterworthFactory(AUD_Reference<AUD_IFactory> factory, float frequency);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_BUTTERWORTHFACTORY
index ceecd7a63c99023700f2215516fd4b0023af6a18..e452870281d27c2f79c125635a6112e85c6275ea 100644 (file)
@@ -44,7 +44,7 @@ float AUD_DelayFactory::getDelay() const
        return m_delay;
 }
 
-AUD_Reference<AUD_IReader> AUD_DelayFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_DelayFactory::createReader()
 {
        return new AUD_DelayReader(getReader(), m_delay);
 }
index 6362bd19a70e9e13e4785316355bc0e3137fada8..5ab7f850d2f1700f87fb8d40fbb50ddc10e23e23 100644 (file)
@@ -62,7 +62,7 @@ public:
         */
        float getDelay() const;
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_DELAYFACTORY
index 5b72082f520cb8b9e4224da702be9662b68c5f00..e1e6ba504359c03adf82c789ffcb11582d92825a 100644 (file)
@@ -37,7 +37,7 @@ AUD_DoubleFactory::AUD_DoubleFactory(AUD_Reference<AUD_IFactory> factory1, AUD_R
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_DoubleFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_DoubleFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader1 = m_factory1->createReader();
        AUD_Reference<AUD_IReader> reader2 = m_factory2->createReader();
index acc9997deea6764591f4ece31904a5b0d2676e47..f2be71324427d8f6b7578876afa846a6aef64d34 100644 (file)
@@ -63,7 +63,7 @@ public:
         */
        AUD_DoubleFactory(AUD_Reference<AUD_IFactory> factory1, AUD_Reference<AUD_IFactory> factory2);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_DOUBLEFACTORY
index e36091950a5d9b23c3e950e13f52aeca1bed49d0..53378efb0531291dfcdab9a33795480f251052e6 100644 (file)
@@ -67,7 +67,7 @@ AUD_EnvelopeFactory::AUD_EnvelopeFactory(AUD_Reference<AUD_IFactory> factory, fl
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_EnvelopeFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_EnvelopeFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader = getReader();
 
index 0a803f77aafe3d81cd789e27b5804e0af11c6fed..acf3b13dbc834fbdf1e2e3f99f254045ed252f04 100644 (file)
@@ -76,7 +76,7 @@ public:
        AUD_EnvelopeFactory(AUD_Reference<AUD_IFactory> factory, float attack, float release,
                                                float threshold, float arthreshold);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_ENVELOPEFACTORY
index e7fe5098d7665902bbc9502eea60f897dd219b7d..635873e0ee572eb8b80c094aecb1dee4060666a5 100644 (file)
@@ -56,7 +56,7 @@ float AUD_FaderFactory::getLength() const
        return m_length;
 }
 
-AUD_Reference<AUD_IReader> AUD_FaderFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_FaderFactory::createReader()
 {
        return new AUD_FaderReader(getReader(), m_type, m_start, m_length);
 }
index cc20245a26758314c99a8e1938976e26d3aa40fb..d8314c77ed4c2a1ee1c4bbc1e5c9a5b8e14203c5 100644 (file)
@@ -88,7 +88,7 @@ public:
         */
        float getLength() const;
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_FADERFACTORY
index b8bfa6545ac160ffaf826b5ddc0469044f4f97b4..2104158cdf5fe8245ae09c4c087d681d7137a491 100644 (file)
@@ -46,7 +46,7 @@ AUD_HighpassFactory::AUD_HighpassFactory(AUD_Reference<AUD_IFactory> factory, fl
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_HighpassFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_HighpassFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader = getReader();
 
index 0089cc2c1399e243b0aed31b8a8c18d3ba64a536..de646e7dd64cb9714b6753642d09f0b339fc3116 100644 (file)
@@ -63,7 +63,7 @@ public:
         */
        AUD_HighpassFactory(AUD_Reference<AUD_IFactory> factory, float frequency, float Q = 1.0f);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_HIGHPASSFACTORY
index e24a10266c951757b5abf256f73d1b5895274702..f6ccda6f67e5f6f9a9c12e0d46c90a461ad3c4cd 100644 (file)
@@ -39,7 +39,7 @@ AUD_IIRFilterFactory::AUD_IIRFilterFactory(AUD_Reference<AUD_IFactory> factory,
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_IIRFilterFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_IIRFilterFactory::createReader()
 {
        return new AUD_IIRFilterReader(getReader(), m_b, m_a);
 }
index ffcc70a8ecb23258143fd44a2f7af2aca6ddba2d..0e92ab1a568e88d712ee4c55d3b4b7d269cd6dbf 100644 (file)
@@ -66,7 +66,7 @@ public:
        AUD_IIRFilterFactory(AUD_Reference<AUD_IFactory> factory, std::vector<float> b,
                                                 std::vector<float> a);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_IIRFILTERFACTORY
index e52cdd75d4d95677384b7b44c7495e1b710aff6e..8d1dd14f3aed7601f2a370fb8cf15d8d9b4175a8 100644 (file)
@@ -51,7 +51,7 @@ float AUD_LimiterFactory::getEnd() const
        return m_end;
 }
 
-AUD_Reference<AUD_IReader> AUD_LimiterFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_LimiterFactory::createReader()
 {
        return new AUD_LimiterReader(getReader(), m_start, m_end);
 }
index c45b9da65fe37879b9b9601680641102ac51fdf0..c04bfe861b2752c7bea69493a7fa347a1f73256c 100644 (file)
@@ -75,7 +75,7 @@ public:
         */
        float getEnd() const;
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_LIMITERFACTORY
index 021e69901b2f4a9a74a7b1d1ee7af687cd8f732f..fd39ac901c1f84ac828237a1a222b66e41e31ca7 100644 (file)
@@ -43,7 +43,7 @@ int AUD_LoopFactory::getLoop() const
        return m_loop;
 }
 
-AUD_Reference<AUD_IReader> AUD_LoopFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_LoopFactory::createReader()
 {
        return new AUD_LoopReader(getReader(), m_loop);
 }
index 4d601d5a6057dc54448f45e73341ab9ba09a58ac..03c00dc40ceeda788c260dccee0ba7ebd78af57b 100644 (file)
@@ -64,7 +64,7 @@ public:
         */
        int getLoop() const;
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_LOOPFACTORY
index d0f33c120d9d68fbd3e8af0ecddcde610af92db1..9bc8d7cfe219ef55da5a268ef8fad256b68d02e8 100644 (file)
@@ -46,7 +46,7 @@ AUD_LowpassFactory::AUD_LowpassFactory(AUD_Reference<AUD_IFactory> factory, floa
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_LowpassFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_LowpassFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader = getReader();
 
index efe4dafc4e198819b71e8711b831cee4840d0f7c..43d47dc90650edddb4f60d7ddc11f88407ba67a1 100644 (file)
@@ -63,7 +63,7 @@ public:
         */
        AUD_LowpassFactory(AUD_Reference<AUD_IFactory> factory, float frequency, float Q = 1.0f);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_LOWPASSFACTORY
index 4f0d2a207ac96563577e231eac400d1cb630c220..e5f2193ea565116ee62628b38f0be1c721a11d50 100644 (file)
@@ -38,7 +38,7 @@ AUD_PingPongFactory::AUD_PingPongFactory(AUD_Reference<AUD_IFactory> factory) :
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_PingPongFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_PingPongFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader = getReader();
        AUD_ReverseFactory factory(m_factory);
index 1c88a5a71146a42562e1015a71413e81e9dbb190..908591a6ebec6dc8c95568c93e406b6778933205 100644 (file)
@@ -52,7 +52,7 @@ public:
         */
        AUD_PingPongFactory(AUD_Reference<AUD_IFactory> factory);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_PINGPONGFACTORY
index 94a3fb8034eadf9917d8c160c442e2dbb27860d4..e52028754e9be51f390c1accccb23bee30239096 100644 (file)
@@ -39,7 +39,7 @@ AUD_PitchFactory::AUD_PitchFactory(AUD_Reference<AUD_IFactory> factory, float pi
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_PitchFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_PitchFactory::createReader()
 {
        return new AUD_PitchReader(getReader(), m_pitch);
 }
index bbf08ef5993506528ed711216ab39f02e69bf1ae..2642d41af89d89b5d44298e60f839f92b88a302d 100644 (file)
@@ -57,7 +57,7 @@ public:
         */
        AUD_PitchFactory(AUD_Reference<AUD_IFactory> factory, float pitch);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_PITCHFACTORY
index 3bacd033eb335520bc03134048ddce2ab2399076..1e500dae3ccbe14d2494142024b5fab7b62ffbe0 100644 (file)
@@ -44,7 +44,7 @@ AUD_RectifyFactory::AUD_RectifyFactory(AUD_Reference<AUD_IFactory> factory) :
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_RectifyFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_RectifyFactory::createReader()
 {
        return new AUD_CallbackIIRFilterReader(getReader(), 1, 1, rectifyFilter);
 }
index d841118600141130be6ef98caf79756af4c7e0cc..d7dc236c5fcd866159139042e991b9149a042c81 100644 (file)
@@ -51,7 +51,7 @@ public:
         */
        AUD_RectifyFactory(AUD_Reference<AUD_IFactory> factory);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_RECTIFYFACTORY
index 88d812d7f2a578f3e3c0fd5239f2f73750249b91..060a618dd6802825c1b35607175d2b92fa56d915 100644 (file)
@@ -38,7 +38,7 @@ AUD_ReverseFactory::AUD_ReverseFactory(AUD_Reference<AUD_IFactory> factory) :
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_ReverseFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_ReverseFactory::createReader()
 {
        return new AUD_ReverseReader(getReader());
 }
index ae1fdd5a23324042e89d2d9afc5d00e27bfca539..b501b4e76c86b8c346e6791ecdee379bb1bf88aa 100644 (file)
@@ -52,7 +52,7 @@ public:
         */
        AUD_ReverseFactory(AUD_Reference<AUD_IFactory> factory);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_REVERSEFACTORY
index a3ea088a25802aee45584f4044031840ff1abe2c..3e94107ff8a6daa8ad09b2a6b7bc6d00f2a2c9a9 100644 (file)
@@ -59,7 +59,7 @@ float AUD_SquareFactory::getThreshold() const
        return m_threshold;
 }
 
-AUD_Reference<AUD_IReader> AUD_SquareFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_SquareFactory::createReader()
 {
        return new AUD_CallbackIIRFilterReader(getReader(), 1, 1,
                                                                                   (doFilterIIR) squareFilter,
index 60db49c48e5fa0a1ec3e921b6bd0b4ffa08221c6..31f22614e0a33d8b36de2c2794db382352d3c9d2 100644 (file)
@@ -62,7 +62,7 @@ public:
         */
        float getThreshold() const;
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_SQUAREFACTORY
index 582e2d75b7f4a1446556c7182d462849971d8086..befcc30360f38f27cff205b64624cff2b3732b06 100644 (file)
@@ -37,7 +37,7 @@ AUD_SumFactory::AUD_SumFactory(AUD_Reference<AUD_IFactory> factory) :
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_SumFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_SumFactory::createReader()
 {
        std::vector<float> a, b;
        a.push_back(1);
index 948355e50fdcefc6681d3fbabc4bf06ff442075a..cdb4caf6e496e7a4e6c1f189f797c08ea8e7fbc0 100644 (file)
@@ -51,7 +51,7 @@ public:
         */
        AUD_SumFactory(AUD_Reference<AUD_IFactory> factory);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_SUMFACTORY
index b5e816f66a8030a6d3dedc7b1e43ad0237c285ba..d514bfd8fca21d30ea69c4e4435dceab14ffd606 100644 (file)
@@ -37,7 +37,7 @@ AUD_SuperposeFactory::AUD_SuperposeFactory(AUD_Reference<AUD_IFactory> factory1,
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_SuperposeFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_SuperposeFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader1 = m_factory1->createReader();
        AUD_Reference<AUD_IReader> reader2 = m_factory2->createReader();
index d302658097e3aadeb73c6e4c831ed3f20a945125..ac7ec0801343fc1948637bf0c4b6d47210080299 100644 (file)
@@ -63,7 +63,7 @@ public:
         */
        AUD_SuperposeFactory(AUD_Reference<AUD_IFactory> factory1, AUD_Reference<AUD_IFactory> factory2);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_SUPERPOSEFACTORY
index 1249c4ab9bd67a388af0dad7350678df9256c0c5..17cefd4f3c3bc8ffac0c013563e3ffdf4d0dd23f 100644 (file)
@@ -43,7 +43,7 @@ float AUD_VolumeFactory::getVolume() const
        return m_volume;
 }
 
-AUD_Reference<AUD_IReader> AUD_VolumeFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_VolumeFactory::createReader()
 {
        std::vector<float> a, b;
        a.push_back(1);
index 3cb8bc1da17f0d4b758006306259bb3ab52ab98d..bcc08e7d04ad1f1b29f695fd53acdde85885e88b 100644 (file)
@@ -64,7 +64,7 @@ public:
         */
        float getVolume() const;
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_VOLUMEFACTORY
index ca9c71e73b88d1f2dc90f81016663112c843f147..15e96f6ff1d31bc21a73f5e43b6b351bae017684 100644 (file)
@@ -38,7 +38,7 @@ AUD_SRCResampleFactory::AUD_SRCResampleFactory(AUD_Reference<AUD_IFactory> facto
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_SRCResampleFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_SRCResampleFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader = getReader();
 
index 5d21584b4dc590aa9b85c19020765c541e4dc3db..d3e7acf0d955677b5172d2eac140c03d294174e7 100644 (file)
@@ -48,7 +48,7 @@ private:
 public:
        AUD_SRCResampleFactory(AUD_Reference<AUD_IFactory> factory, AUD_DeviceSpecs specs);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_SRCRESAMPLEFACTORY
index 4e1eedd29ee6ffaf41329960579578a8ea8a5b8d..909f41302d7081caf2aef39dbd27cdc64c58dad1 100644 (file)
@@ -49,7 +49,7 @@ AUD_FFMPEGFactory::AUD_FFMPEGFactory(const data_t* buffer, int size) :
        memcpy(m_buffer->getBuffer(), buffer, size);
 }
 
-AUD_Reference<AUD_IReader> AUD_FFMPEGFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_FFMPEGFactory::createReader()
 {
        if(m_buffer.isNull())
                return new AUD_FFMPEGReader(m_filename);
index 8033836e80b452655e6051ed55ef7e66ddb8fd8e..af95e3a3b813d2aca31160345bae845805fd5fdc 100644 (file)
@@ -74,7 +74,7 @@ public:
         */
        AUD_FFMPEGFactory(const data_t* buffer, int size);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_FFMPEGFACTORY
index ea5e9519729d7e5695f593a55e4ccebc015f2f77..d8ed1153dae3ec03c73de63c67e5111b19eef2dc 100644 (file)
@@ -102,7 +102,7 @@ void AUD_ChannelMapperFactory::deleteMapping(int ic)
        }
 }
 
-AUD_Reference<AUD_IReader> AUD_ChannelMapperFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_ChannelMapperFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader = getReader();
        int ic = reader->getSpecs().channels;
index 25b3e091d8d324530a6cee79702094d983088f9b..7c48aa791a644b5d0220e6af494fd6e49afc4e64 100644 (file)
@@ -67,7 +67,7 @@ public:
         */
        void deleteMapping(int ic);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_CHANNELMAPPERFACTORY
index 78602d2cfa9c6ad8efe44b2ded6a588bd11b06e7..bf9a35866169ac43f71d648ab1bcecf3d5535cb4 100644 (file)
@@ -38,7 +38,7 @@ AUD_ConverterFactory::AUD_ConverterFactory(AUD_Reference<AUD_IFactory> factory,
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_ConverterFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_ConverterFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader = getReader();
 
index cc1fedb2a1077cc2a3c6f77969a0ae0df075a503..8f0221addb79197f3d5d961b0c9aac9d0da9844a 100644 (file)
@@ -48,7 +48,7 @@ private:
 public:
        AUD_ConverterFactory(AUD_Reference<AUD_IFactory> factory, AUD_DeviceSpecs specs);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_CONVERTERFACTORY
index 2f02d4a55e159a26f81a36b632a216838ea60ec5..684fbb13fb2e6d1b7974a19087c29e0ed05783b4 100644 (file)
@@ -59,7 +59,7 @@ AUD_FileFactory::AUD_FileFactory(const data_t* buffer, int size) :
 
 static const char* read_error = "AUD_FileFactory: File couldn't be read.";
 
-AUD_Reference<AUD_IReader> AUD_FileFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_FileFactory::createReader()
 {
 #ifdef WITH_SNDFILE
        try
index c63e50b3b0dda0fec7e5451c5ad414c0e12d682d..dfca70bc3fd636476d9072ff618239ae3a4d8eeb 100644 (file)
@@ -72,7 +72,7 @@ public:
         */
        AUD_FileFactory(const data_t* buffer, int size);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_FILEFACTORY
index 48f2802f8710f920dd250ea9ed603922786bb3f3..c1a9de7f72474b0ab577a1fab34f4256a66394a3 100644 (file)
@@ -56,7 +56,7 @@ public:
         * \exception AUD_Exception An exception may be thrown if there has been
         *            a more unexpected error during reader creation.
         */
-       virtual AUD_Reference<AUD_IReader> createReader() const=0;
+       virtual AUD_Reference<AUD_IReader> createReader()=0;
 };
 
 #endif //AUD_IFACTORY
index f7ac9e1e83e32221a0ea2f82cd20c7db2ca4127f..404281a33bb4e664addd5989d31ac4d6b4186908 100644 (file)
@@ -38,7 +38,7 @@ AUD_LinearResampleFactory::AUD_LinearResampleFactory(AUD_Reference<AUD_IFactory>
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_LinearResampleFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_LinearResampleFactory::createReader()
 {
        AUD_Reference<AUD_IReader> reader = getReader();
 
index 6a593b11f284a9ed23fcd34232e737fc98c37a36..9f4e9e10abac98b393706a4cc7207f7f3b0e876c 100644 (file)
@@ -47,7 +47,7 @@ private:
 public:
        AUD_LinearResampleFactory(AUD_Reference<AUD_IFactory> factory, AUD_DeviceSpecs specs);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_LINEARRESAMPLEFACTORY
index ee0af900b04b8dbd791211e50f30171750ac7246..47d5243c04e34b2e389eab84cf502c23db56b7d7 100644 (file)
@@ -63,16 +63,6 @@ bool AUD_SequencerFactory::getMute() const
        return m_muted;
 }
 
-AUD_Reference<AUD_IReader> AUD_SequencerFactory::newReader()
-{
-       AUD_Reference<AUD_SequencerReader> reader = new AUD_SequencerReader(*m_this, m_entries,
-                                                                                                                 m_specs, m_data,
-                                                                                                                 m_volume);
-       m_readers.push_front(reader);
-
-       return reader.convert<AUD_IReader>();
-}
-
 AUD_Reference<AUD_SequencerEntry> AUD_SequencerFactory::add(AUD_Reference<AUD_IFactory>** sound, float begin, float end, float skip, void* data)
 {
        AUD_Reference<AUD_SequencerEntry> entry = new AUD_SequencerEntry;
@@ -111,9 +101,14 @@ void AUD_SequencerFactory::mute(AUD_Reference<AUD_SequencerEntry> entry, bool mu
        entry->muted = mute;
 }
 
-AUD_Reference<AUD_IReader> AUD_SequencerFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_SequencerFactory::createReader()
 {
-       return const_cast<AUD_SequencerFactory*>(this)->newReader();
+       AUD_Reference<AUD_SequencerReader> reader = new AUD_SequencerReader(*m_this, m_entries,
+                                                                                                                 m_specs, m_data,
+                                                                                                                 m_volume);
+       m_readers.push_front(reader);
+
+       return reader.convert<AUD_IReader>();
 }
 
 void AUD_SequencerFactory::removeReader(AUD_Reference<AUD_SequencerReader> reader)
index b03932976223c47a47a8bb47626643ac54c25473..37a332bc9ffef6d7a052bd5b837a08fdd90e9ff7 100644 (file)
@@ -68,8 +68,6 @@ private:
        AUD_volumeFunction m_volume;
        AUD_Reference<AUD_SequencerFactory>* m_this;
 
-       AUD_Reference<AUD_IReader> newReader();
-
        // hide copy constructor and operator=
        AUD_SequencerFactory(const AUD_SequencerFactory&);
        AUD_SequencerFactory& operator=(const AUD_SequencerFactory&);
@@ -87,7 +85,7 @@ public:
        void move(AUD_Reference<AUD_SequencerEntry> entry, float begin, float end, float skip);
        void mute(AUD_Reference<AUD_SequencerEntry> entry, bool mute);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 
        void removeReader(AUD_Reference<AUD_SequencerReader> reader);
 };
index f1eae1889a232a3ea225b14a6e6fdea0cd35ff28..aefd561a584b44632fbaa624f62e119cc0cfc0e7 100644 (file)
@@ -37,7 +37,7 @@ AUD_SilenceFactory::AUD_SilenceFactory()
 {
 }
 
-AUD_Reference<AUD_IReader> AUD_SilenceFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_SilenceFactory::createReader()
 {
        return new AUD_SilenceReader();
 }
index 0920c1267ab8c37c03364c051d18938eb37afa49..69b446408d7fb4a9da4fc71efd6bfe9a7e3aaeb2 100644 (file)
@@ -50,7 +50,7 @@ public:
         */
        AUD_SilenceFactory();
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_SILENCEFACTORY
index 8276856b9e205901b25a05b9ac88ebb2237809d8..b79f6bee6d75f9ded0baf2276404d27e7b467cd3 100644 (file)
@@ -44,7 +44,7 @@ float AUD_SinusFactory::getFrequency() const
        return m_frequency;
 }
 
-AUD_Reference<AUD_IReader> AUD_SinusFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_SinusFactory::createReader()
 {
        return new AUD_SinusReader(m_frequency, m_sampleRate);
 }
index a440d7b7535eb17c569d997b488c1a49a18031ab..a6bc7f2110ceec6af296b99cc901ff9bacc19587 100644 (file)
@@ -68,7 +68,7 @@ public:
         */
        float getFrequency() const;
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_SINUSFACTORY
index 1b96c97742bfdafecdd26cdc275dd1754c070bda..64e226373293f4407b5c68b374934df057c1232e 100644 (file)
@@ -70,7 +70,7 @@ AUD_StreamBufferFactory::AUD_StreamBufferFactory(AUD_Reference<AUD_IFactory> fac
        m_buffer->resize(index * sample_size, true);
 }
 
-AUD_Reference<AUD_IReader> AUD_StreamBufferFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_StreamBufferFactory::createReader()
 {
        return new AUD_BufferReader(m_buffer, m_specs);
 }
index fc5f103d99bdfa44e09cd063e844237170f6d573..2783889ff6cb8e041dc1080327ee7844a3b889bd 100644 (file)
@@ -66,7 +66,7 @@ public:
         */
        AUD_StreamBufferFactory(AUD_Reference<AUD_IFactory> factory);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_STREAMBUFFERFACTORY
index 7ab3308f01b3c7213d68fa3da511ad131af92a7a..5a0280cdf842cf576782198ce05eb4d659ddfbc4 100644 (file)
@@ -46,7 +46,7 @@ AUD_SndFileFactory::AUD_SndFileFactory(const data_t* buffer, int size) :
        memcpy(m_buffer->getBuffer(), buffer, size);
 }
 
-AUD_Reference<AUD_IReader> AUD_SndFileFactory::createReader() const
+AUD_Reference<AUD_IReader> AUD_SndFileFactory::createReader()
 {
        if(m_buffer.isNull())
                return new AUD_SndFileReader(m_filename);
index 3a1037e55870a073a485390ddb18889cf559c527..a46dc1652642c4d18ed777a2d431ed4b180c4aa9 100644 (file)
@@ -72,7 +72,7 @@ public:
         */
        AUD_SndFileFactory(const data_t* buffer, int size);
 
-       virtual AUD_Reference<AUD_IReader> createReader() const;
+       virtual AUD_Reference<AUD_IReader> createReader();
 };
 
 #endif //AUD_SNDFILEFACTORY