diff src/vamp-hostsdk/Window.h @ 444:7bab0c5422f4 vampipe

Make single/double-precision selectable for input domain adapter windowing and FFTs. Double precision is necessary to pass Sonic Annotator regression tests, though in practice most real-world methods would be fine with single precision.
author Chris Cannam
date Thu, 18 Aug 2016 14:43:52 +0100
parents 5cb298435765
children
line wrap: on
line diff
--- a/src/vamp-hostsdk/Window.h	Thu Aug 18 12:03:09 2016 +0100
+++ b/src/vamp-hostsdk/Window.h	Thu Aug 18 14:43:52 2016 +0100
@@ -76,8 +76,8 @@
     void cut(T *src, T *dst) const {
 	for (size_t i = 0; i < m_size; ++i) dst[i] = src[i] * m_cache[i];
     }
-    template <typename T0>
-    void cut(T0 *src, T *dst) const {
+    template <typename T0, typename T1>
+    void cut(T0 *src, T1 *dst) const {
 	for (size_t i = 0; i < m_size; ++i) dst[i] = src[i] * m_cache[i];
     }