3D Audio GSoC:
[blender.git] / intern / audaspace / SRC / AUD_SRCResampleFactory.cpp
index 15e96f6ff1d31bc21a73f5e43b6b351bae017684..3ae2c4fbd06b6aa6944d8714071bf425ddd4b95a 100644 (file)
@@ -40,10 +40,5 @@ AUD_SRCResampleFactory::AUD_SRCResampleFactory(AUD_Reference<AUD_IFactory> facto
 
 AUD_Reference<AUD_IReader> AUD_SRCResampleFactory::createReader()
 {
-       AUD_Reference<AUD_IReader> reader = getReader();
-
-       if(reader->getSpecs().rate != m_specs.rate)
-               reader = new AUD_SRCResampleReader(reader, m_specs.specs);
-
-       return reader;
+       return new AUD_SRCResampleReader(getReader(), m_specs.specs);
 }