3D Audio GSoC:
[blender.git] / intern / audaspace / intern / AUD_LinearResampleFactory.cpp
index 404281a33bb4e664addd5989d31ac4d6b4186908..de23869441f7cb23cd9d5b02f14bea772783af16 100644 (file)
@@ -40,10 +40,5 @@ AUD_LinearResampleFactory::AUD_LinearResampleFactory(AUD_Reference<AUD_IFactory>
 
 AUD_Reference<AUD_IReader> AUD_LinearResampleFactory::createReader()
 {
-       AUD_Reference<AUD_IReader> reader = getReader();
-
-       if(reader->getSpecs().rate != m_specs.rate)
-               reader = new AUD_LinearResampleReader(reader, m_specs.specs);
-
-       return reader;
+       return new AUD_LinearResampleReader(getReader(), m_specs.specs);
 }