comparison src/vamp-hostsdk/Window.h @ 460:b409560a805b

Merge from branch vampipe
author Chris Cannam
date Mon, 10 Oct 2016 15:48:35 +0100
parents 7bab0c5422f4
children
comparison
equal deleted inserted replaced
442:4101e3f80aa0 460:b409560a805b
74 74
75 void cut(T *src) const { cut(src, src); } 75 void cut(T *src) const { cut(src, src); }
76 void cut(T *src, T *dst) const { 76 void cut(T *src, T *dst) const {
77 for (size_t i = 0; i < m_size; ++i) dst[i] = src[i] * m_cache[i]; 77 for (size_t i = 0; i < m_size; ++i) dst[i] = src[i] * m_cache[i];
78 } 78 }
79 template <typename T0> 79 template <typename T0, typename T1>
80 void cut(T0 *src, T *dst) const { 80 void cut(T0 *src, T1 *dst) const {
81 for (size_t i = 0; i < m_size; ++i) dst[i] = src[i] * m_cache[i]; 81 for (size_t i = 0; i < m_size; ++i) dst[i] = src[i] * m_cache[i];
82 } 82 }
83 83
84 T getArea() { return m_area; } 84 T getArea() { return m_area; }
85 T getValue(size_t i) { return m_cache[i]; } 85 T getValue(size_t i) { return m_cache[i]; }