r8brain-free-src
High-quality pro audio sample rate converter library
 
Loading...
Searching...
No Matches
CDSPProcessor.h
Go to the documentation of this file.
1//$ nobt
2//$ nocpp
3
16
17#ifndef R8B_CDSPPROCESSOR_INCLUDED
18#define R8B_CDSPPROCESSOR_INCLUDED
19
20#include "r8bbase.h"
21
22namespace r8b {
23
31
32class CDSPProcessor : public R8B_DSPBASECLASS
33{
34 R8BNOCTOR( CDSPProcessor )
35
36public:
37 CDSPProcessor()
38 {
39 }
40
41 virtual ~CDSPProcessor()
42 {
43 }
44
63
64 virtual int getInLenBeforeOutPos( const int ReqOutPos ) const = 0;
65
73
74 virtual int getLatency() const = 0;
75
84
85 virtual double getLatencyFrac() const = 0;
86
94
95 virtual int getMaxOutLen( const int MaxInLen ) const = 0;
96
104
105 virtual void clear() = 0;
106
126
127 virtual int process( double* ip, int l0, double*& op0 ) = 0;
128};
129
130} // namespace r8b
131
132#endif // R8B_CDSPPROCESSOR_INCLUDED
The "base" header file with basic classes and functions.
#define R8BNOCTOR(ClassName)
Macro that defines empty copy-constructor and copy operator with the "private:" prefix.
Definition r8bbase.h:198
#define R8B_DSPBASECLASS
Macro defines the name of the class from which all CDSPProcessor objects are derived.
Definition r8bconf.h:79
The "r8brain-free-src" library namespace.
Definition CDSPBlockConvolver.h:22
virtual int getMaxOutLen(const int MaxInLen) const =0
Returns the maximal length of the output buffer required when processing the MaxInLen number of input...
virtual void clear()=0
Clears (resets) the state of this object and returns it to the state after construction.
virtual int getInLenBeforeOutPos(const int ReqOutPos) const =0
Returns the number of input samples required to advance to the specified output sample position (so t...
virtual int process(double *ip, int l0, double *&op0)=0
Performs DSP processing.
virtual double getLatencyFrac() const =0
Returns fractional latency, in samples, which is present in the output signal.
virtual int getLatency() const =0
Return the latency, in samples, which is present in the output signal.