blob: 88de2c7e492ffb084de89b046dd0fbd9e3943ac6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include <QObject>
#include "util/types.h"
#include "engine/effects/groupfeaturestate.h"
class EngineObject : public QObject {
Q_OBJECT
public:
EngineObject();
virtual ~EngineObject();
virtual void process(CSAMPLE* pInOut,
const int iBufferSize) = 0;
// Sub-classes re-implement and populate GroupFeatureState with the features
// they extract.
virtual void collectFeatures(GroupFeatureState* pGroupFeatures) const {
Q_UNUSED(pGroupFeatures);
}
};
class EngineObjectConstIn : public QObject {
Q_OBJECT
public:
EngineObjectConstIn();
virtual ~EngineObjectConstIn();
virtual void process(const CSAMPLE* pIn, CSAMPLE* pOut,
const int iBufferSize) = 0;
};
|