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
33
34class CDSPProcessor : public R8B_DSPBASECLASS,
35 public CSinglyLinkedListItem< CDSPProcessor >
36{
37 R8BNOCTOR( CDSPProcessor )
38
39public:
40 CDSPProcessor()
41 {
42 }
43
44 virtual ~CDSPProcessor()
45 {
46 }
47
69
70 virtual int getInLenBeforeOutPos( int ReqOutPos ) const = 0;
71
79
80 virtual int getLatency() const = 0;
81
90
91 virtual double getLatencyFrac() const = 0;
92
100
101 virtual int getMaxOutLen( const int MaxInLen ) const = 0;
102
110
111 virtual void clear() = 0;
112
132
133 virtual int process( double* ip, int l0, double*& op0 ) = 0;
134};
135
136} // namespace r8b
137
138#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.
Definition r8bbase.h:213
#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(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.