r3884 - trunk/plugins



Author: stw
Date: 2006-09-16 04:03:00 -0400 (Sat, 16 Sep 2006)
New Revision: 3884

Modified:
   trunk/plugins/ChangeLog
   trunk/plugins/bseblockutils.cc
Log:
Sat Sep 16 09:35:26 2006  Stefan Westerfeld  <stefan space twc de>

	* bseblockutils.cc: Provide resampler factory method, so that an SSE
	resampler will be used when beast detects SSE instructions.


Modified: trunk/plugins/ChangeLog
===================================================================
--- trunk/plugins/ChangeLog	2006-09-16 08:02:17 UTC (rev 3883)
+++ trunk/plugins/ChangeLog	2006-09-16 08:03:00 UTC (rev 3884)
@@ -1,3 +1,8 @@
+Sat Sep 16 09:35:26 2006  Stefan Westerfeld  <stefan space twc de>
+
+	* bseblockutils.cc: Provide resampler factory method, so that an SSE
+	resampler will be used when beast detects SSE instructions.
+
 Tue Aug 29 20:48:48 2006  Stefan Westerfeld  <stefan space twc de>
 
 	* davorgan.[hc]: Add transpose and fine_tune settings, just like they

Modified: trunk/plugins/bseblockutils.cc
===================================================================
--- trunk/plugins/bseblockutils.cc	2006-09-16 08:02:17 UTC (rev 3883)
+++ trunk/plugins/bseblockutils.cc	2006-09-16 08:03:00 UTC (rev 3884)
@@ -19,6 +19,8 @@
  */
 #include <bse/bsecxxplugin.hh>
 #include <bse/bseblockutils.hh>
+#include <bse/bseresampler.hh>
+#include <bse/bseresampler.tcc>
 #ifndef __SSE__
 #error  SSE support is required for this plugin.
 #endif
@@ -317,6 +319,12 @@
     max_value = maxv;
     return square_sum;
   }
+  virtual Bse::Resampler::Resampler2*
+  create_resampler2 (BseResampler2Mode      mode,
+                     BseResampler2Precision precision)
+  {
+    return Bse::Resampler::Resampler2::create_impl<true> (mode, precision);
+  }
 public:
   void
   hookup ()




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]