1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4     Rubber Band Library
5     An audio time-stretching and pitch-shifting library.
6     Copyright 2007-2021 Particular Programs Ltd.
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     Alternatively, if you have a valid commercial licence for the
15     Rubber Band Library obtained by agreement with the copyright
16     holders, you may redistribute and/or modify it under the terms
17     described in that licence.
18 
19     If you wish to distribute code using the Rubber Band Library
20     under terms other than those of the GNU General Public License,
21     you must obtain a valid commercial licence before doing so.
22 */
23 
24 #ifndef RUBBERBAND_SILENT_AUDIO_CURVE_H
25 #define RUBBERBAND_SILENT_AUDIO_CURVE_H
26 
27 #include "../dsp/AudioCurveCalculator.h"
28 
29 namespace RubberBand
30 {
31 
32 class SilentAudioCurve : public AudioCurveCalculator
33 {
34 public:
35     SilentAudioCurve(Parameters parameters);
36     virtual ~SilentAudioCurve();
37 
38     virtual float processFloat(const float *R__ mag, int increment);
39     virtual double processDouble(const double *R__ mag, int increment);
40     virtual void reset();
getUnit()41     virtual const char *getUnit() const { return "bool"; }
42 };
43 
44 }
45 
46 #endif
47