Use PBD::ffs for portability
[ardour.git] / libs / rubberband / src / ConstantAudioCurve.cpp
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
2
3 /*
4     Rubber Band
5     An audio time-stretching and pitch-shifting library.
6     Copyright 2007-2008 Chris Cannam.
7     
8     This program is free software; you can redistribute it and/or
9     modify it under the terms of the GNU General Public License as
10     published by the Free Software Foundation; either version 2 of the
11     License, or (at your option) any later version.  See the file
12     COPYING included with this distribution for more information.
13 */
14
15 #include "ConstantAudioCurve.h"
16
17 namespace RubberBand
18 {
19
20 ConstantAudioCurve::ConstantAudioCurve(size_t sampleRate, size_t windowSize) :
21     AudioCurve(sampleRate, windowSize)
22 {
23 }
24
25 ConstantAudioCurve::~ConstantAudioCurve()
26 {
27 }
28
29 void
30 ConstantAudioCurve::reset()
31 {
32 }
33
34 void
35 ConstantAudioCurve::setWindowSize(size_t newSize)
36 {
37     m_windowSize = newSize;
38 }
39
40 float
41 ConstantAudioCurve::process(const float *R__, size_t)
42 {
43     return 1.f;
44 }
45
46 float
47 ConstantAudioCurve::processDouble(const double *R__, size_t)
48 {
49     return 1.f;
50 }
51
52 }
53