Async  1.5.0
AsyncAudioInterpolator.h
Go to the documentation of this file.
1 
22 #ifndef ASYNC_AUDIO_INTERPOLATOR_INCLUDED
23 #define ASYNC_AUDIO_INTERPOLATOR_INCLUDED
24 
25 
26 /****************************************************************************
27  *
28  * System Includes
29  *
30  ****************************************************************************/
31 
32 
33 
34 /****************************************************************************
35  *
36  * Project Includes
37  *
38  ****************************************************************************/
39 
40 #include <AsyncAudioProcessor.h>
41 
42 
43 
44 /****************************************************************************
45  *
46  * Local Includes
47  *
48  ****************************************************************************/
49 
50 
51 
52 /****************************************************************************
53  *
54  * Forward declarations
55  *
56  ****************************************************************************/
57 
58 
59 
60 /****************************************************************************
61  *
62  * Namespace
63  *
64  ****************************************************************************/
65 
66 namespace Async
67 {
68 
69 
70 /****************************************************************************
71  *
72  * Forward declarations of classes inside of the declared namespace
73  *
74  ****************************************************************************/
75 
76 
77 
78 /****************************************************************************
79  *
80  * Defines & typedefs
81  *
82  ****************************************************************************/
83 
84 
85 
86 /****************************************************************************
87  *
88  * Exported Global Variables
89  *
90  ****************************************************************************/
91 
92 
93 
94 /****************************************************************************
95  *
96  * Class definitions
97  *
98  ****************************************************************************/
99 
118 {
119  public:
126  AudioInterpolator(int interpolation_factor, const float *filter_coeff,
127  int taps);
128 
132  ~AudioInterpolator(void);
133 
134 
135  protected:
147  virtual void processSamples(float *dest, const float *src, int count);
148 
149 
150  private:
151  const int factor_L;
152  float *p_Z;
153  int L_size;
154  const float *p_H;
155 
157  AudioInterpolator& operator=(const AudioInterpolator&);
158 
159 }; /* class AudioInterpolator */
160 
161 
162 } /* namespace */
163 
164 #endif /* ASYNC_AUDIO_INTERPOLATOR_INCLUDED */
165 
166 
167 
168 /*
169  * This file has not been truncated
170  */
171 
AudioInterpolator(int interpolation_factor, const float *filter_coeff, int taps)
Constuctor.
Interpolates a lower sampling rate to a higher one.
The base class for an audio processor.
~AudioInterpolator(void)
Destructor.
virtual void processSamples(float *dest, const float *src, int count)
Process incoming samples and put them into the output buffer.
Namespace for the asynchronous programming classes.
The base class for an audio processor class.