prepare configurable VST scan timeout
[ardour.git] / libs / ardour / resampled_source.cc
index 1d6028156528b2d04649c9a61977a5e29b78dad3..0a8131910827fefd5817ae76ece8619d572cdead 100644 (file)
 using namespace ARDOUR;
 using namespace PBD;
 
+#ifdef PLATFORM_WINDOWS
+const uint32_t ResampledImportableSource::blocksize = 524288U;
+#else
 const uint32_t ResampledImportableSource::blocksize = 16384U;
+#endif
 
 ResampledImportableSource::ResampledImportableSource (boost::shared_ptr<ImportableSource> src, framecnt_t rate, SrcQuality srcq)
        : source (src)
@@ -55,7 +59,7 @@ ResampledImportableSource::ResampledImportableSource (boost::shared_ptr<Importab
        input = new float[blocksize];
 
        seek (0);
-       
+
        src_data.src_ratio = ((float) rate) / source->samplerate();
 }
 
@@ -128,12 +132,12 @@ ResampledImportableSource::seek (framepos_t pos)
                error << string_compose(_("Import: src_new() failed : %1"), src_strerror (err)) << endmsg ;
                throw failed_constructor ();
        }
-       
+
        src_data.input_frames = 0;
        src_data.data_in = input;
        src_data.end_of_input = 0;
 }
-       
+
 framepos_t
 ResampledImportableSource::natural_position () const
 {