RateTransposer.h | RateTransposer.h | |||
---|---|---|---|---|
skipping to change at line 17 | skipping to change at line 17 | |||
/// Use either of the derived classes of 'RateTransposerInteger' or | /// Use either of the derived classes of 'RateTransposerInteger' or | |||
/// 'RateTransposerFloat' for corresponding integer/floating point tranposi ng | /// 'RateTransposerFloat' for corresponding integer/floating point tranposi ng | |||
/// algorithm implementation. | /// algorithm implementation. | |||
/// | /// | |||
/// Author : Copyright (c) Olli Parviainen | /// Author : Copyright (c) Olli Parviainen | |||
/// Author e-mail : oparviai 'at' iki.fi | /// Author e-mail : oparviai 'at' iki.fi | |||
/// SoundTouch WWW: http://www.surina.net/soundtouch | /// SoundTouch WWW: http://www.surina.net/soundtouch | |||
/// | /// | |||
/////////////////////////////////////////////////////////////////////////// ///// | /////////////////////////////////////////////////////////////////////////// ///// | |||
// | // | |||
// Last changed : $Date: 2014-04-06 15:57:21 +0000 (Sun, 06 Apr 2014) $ | // Last changed : $Date: 2015-07-26 17:45:48 +0300 (Sun, 26 Jul 2015) $ | |||
// File revision : $Revision: 4 $ | // File revision : $Revision: 4 $ | |||
// | // | |||
// $Id: RateTransposer.h 195 2014-04-06 15:57:21Z oparviai $ | // $Id: RateTransposer.h 225 2015-07-26 14:45:48Z oparviai $ | |||
// | // | |||
/////////////////////////////////////////////////////////////////////////// ///// | /////////////////////////////////////////////////////////////////////////// ///// | |||
// | // | |||
// License : | // License : | |||
// | // | |||
// SoundTouch audio processing library | // SoundTouch audio processing library | |||
// Copyright (c) Olli Parviainen | // Copyright (c) Olli Parviainen | |||
// | // | |||
// This library is free software; you can redistribute it and/or | // This library is free software; you can redistribute it and/or | |||
// modify it under the terms of the GNU Lesser General Public | // modify it under the terms of the GNU Lesser General Public | |||
skipping to change at line 84 | skipping to change at line 84 | |||
virtual int transposeStereo(SAMPLETYPE *dest, | virtual int transposeStereo(SAMPLETYPE *dest, | |||
const SAMPLETYPE *src, | const SAMPLETYPE *src, | |||
int &srcSamples) = 0; | int &srcSamples) = 0; | |||
virtual int transposeMulti(SAMPLETYPE *dest, | virtual int transposeMulti(SAMPLETYPE *dest, | |||
const SAMPLETYPE *src, | const SAMPLETYPE *src, | |||
int &srcSamples) = 0; | int &srcSamples) = 0; | |||
static ALGORITHM algorithm; | static ALGORITHM algorithm; | |||
public: | public: | |||
float rate; | double rate; | |||
int numChannels; | int numChannels; | |||
TransposerBase(); | TransposerBase(); | |||
virtual ~TransposerBase(); | virtual ~TransposerBase(); | |||
virtual int transpose(FIFOSampleBuffer &dest, FIFOSampleBuffer &src); | virtual int transpose(FIFOSampleBuffer &dest, FIFOSampleBuffer &src); | |||
virtual void setRate(float newRate); | virtual void setRate(double newRate); | |||
virtual void setChannels(int channels); | virtual void setChannels(int channels); | |||
// static factory function | // static factory function | |||
static TransposerBase *newInstance(); | static TransposerBase *newInstance(); | |||
// static function to set interpolation algorithm | // static function to set interpolation algorithm | |||
static void setAlgorithm(ALGORITHM a); | static void setAlgorithm(ALGORITHM a); | |||
}; | }; | |||
/// A common linear samplerate transposer class. | /// A common linear samplerate transposer class. | |||
skipping to change at line 159 | skipping to change at line 159 | |||
AAFilter *getAAFilter(); | AAFilter *getAAFilter(); | |||
/// Enables/disables the anti-alias filter. Zero to disable, nonzero to enable | /// Enables/disables the anti-alias filter. Zero to disable, nonzero to enable | |||
void enableAAFilter(bool newMode); | void enableAAFilter(bool newMode); | |||
/// Returns nonzero if anti-alias filter is enabled. | /// Returns nonzero if anti-alias filter is enabled. | |||
bool isAAFilterEnabled() const; | bool isAAFilterEnabled() const; | |||
/// Sets new target rate. Normal rate = 1.0, smaller values represent s lower | /// Sets new target rate. Normal rate = 1.0, smaller values represent s lower | |||
/// rate, larger faster rates. | /// rate, larger faster rates. | |||
virtual void setRate(float newRate); | virtual void setRate(double newRate); | |||
/// Sets the number of channels, 1 = mono, 2 = stereo | /// Sets the number of channels, 1 = mono, 2 = stereo | |||
void setChannels(int channels); | void setChannels(int channels); | |||
/// Adds 'numSamples' pcs of samples from the 'samples' memory position into | /// Adds 'numSamples' pcs of samples from the 'samples' memory position into | |||
/// the input of the object. | /// the input of the object. | |||
void putSamples(const SAMPLETYPE *samples, uint numSamples); | void putSamples(const SAMPLETYPE *samples, uint numSamples); | |||
/// Clears all the samples in the object | /// Clears all the samples in the object | |||
void clear(); | void clear(); | |||
End of changes. 5 change blocks. | ||||
5 lines changed or deleted | 5 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |