WITH_SAMPLERATE option for cmake, without this playback wont behave right so this...
[blender-staging.git] / intern / audaspace / intern / AUD_DefaultMixer.cpp
index 12faa10d866fc787822ac7bc6ce5ffba419d7171..2b641b6bd1a06ad424aa9b4eb315d520a8716c3e 100644 (file)
@@ -24,7 +24,9 @@
  */
 
 #include "AUD_DefaultMixer.h"
  */
 
 #include "AUD_DefaultMixer.h"
+#ifdef WITH_SAMPLERATE
 #include "AUD_SRCResampleReader.h"
 #include "AUD_SRCResampleReader.h"
+#endif
 #include "AUD_ChannelMapperReader.h"
 #include "AUD_ChannelMapperFactory.h"
 
 #include "AUD_ChannelMapperReader.h"
 #include "AUD_ChannelMapperFactory.h"
 
@@ -50,10 +52,12 @@ AUD_IReader* AUD_DefaultMixer::prepare(AUD_IReader* reader)
                specs.channels = m_specs.channels;
        }
 
                specs.channels = m_specs.channels;
        }
 
+#ifdef WITH_SAMPLERATE
        // resample
        if(specs.rate != m_specs.rate)
                reader = new AUD_SRCResampleReader(reader, m_specs.specs);
        // resample
        if(specs.rate != m_specs.rate)
                reader = new AUD_SRCResampleReader(reader, m_specs.specs);
-
+#endif
+       
        // rechannel
        if(specs.channels != m_specs.channels)
                reader = new AUD_ChannelMapperReader(reader,
        // rechannel
        if(specs.channels != m_specs.channels)
                reader = new AUD_ChannelMapperReader(reader,