summaryrefslogtreecommitdiff
path: root/libs/rubberband
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-04-20 23:34:15 +0000
committerCarl Hetherington <carl@carlh.net>2012-04-20 23:34:15 +0000
commit9befa88debe08349deb01ebc00b605721865eda4 (patch)
tree2cb5dce021afb91b92b1cc32fce7c079822990a8 /libs/rubberband
parent9cc110f111cacb28ca4cea5a239ac9c0271da4a9 (diff)
Fix some warnings.
git-svn-id: svn://localhost/ardour2/branches/3.0@12048 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/rubberband')
-rw-r--r--libs/rubberband/src/StretcherImpl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/rubberband/src/StretcherImpl.cpp b/libs/rubberband/src/StretcherImpl.cpp
index 7ec7c161f3..200c8771a8 100644
--- a/libs/rubberband/src/StretcherImpl.cpp
+++ b/libs/rubberband/src/StretcherImpl.cpp
@@ -834,7 +834,11 @@ RubberBandStretcher::Impl::study(const float *const *input, size_t samples, bool
// cd.accumulator is not otherwise used during studying,
// so we can use it as a temporary buffer here
+#ifdef NDEBUG
+ inbuf.peek(cd.accumulator, m_windowSize);
+#else
size_t got = inbuf.peek(cd.accumulator, m_windowSize);
+#endif
assert(final || got == m_windowSize);
m_window->cut(cd.accumulator);