~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to libs/rubberband/src/ConstantAudioCurve.h

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2013-09-21 19:05:02 UTC
  • Revision ID: package-import@ubuntu.com-20130921190502-8gsftrku6jnzhd7v
Tags: upstream-3.4~dfsg
ImportĀ upstreamĀ versionĀ 3.4~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#ifndef _CONSTANT_AUDIO_CURVE_H_
 
16
#define _CONSTANT_AUDIO_CURVE_H_
 
17
 
 
18
#include "AudioCurve.h"
 
19
 
 
20
namespace RubberBand
 
21
{
 
22
 
 
23
class ConstantAudioCurve : public AudioCurve
 
24
{
 
25
public:
 
26
    ConstantAudioCurve(size_t sampleRate, size_t windowSize);
 
27
    virtual ~ConstantAudioCurve();
 
28
 
 
29
    virtual void setWindowSize(size_t newSize);
 
30
 
 
31
    virtual float process(const float *R__ mag, size_t increment);
 
32
    virtual float processDouble(const double *R__ mag, size_t increment);
 
33
    virtual void reset();
 
34
};
 
35
 
 
36
}
 
37
 
 
38
#endif