-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPocketModNode.h
More file actions
33 lines (23 loc) · 909 Bytes
/
PocketModNode.h
File metadata and controls
33 lines (23 loc) · 909 Bytes
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
32
33
#ifndef POCKETMOD_NODE
#define POCKETMOD_NODE
#include <LabSound/core/AudioNode.h>
class PocketModNode : public lab::AudioNode
{
struct Detail;
Detail* _detail = nullptr;
static bool s_registered;
public:
PocketModNode(lab::AudioContext & ac);
virtual ~PocketModNode();
static const char* static_name() { return "PocketMod"; }
virtual const char* name() const override { return static_name(); }
// AudioNode
virtual void process(lab::ContextRenderLock &, int bufferSize) override;
virtual void reset(lab::ContextRenderLock &) override;
void loadMOD(const char* path);
private:
virtual bool propagatesSilence(lab::ContextRenderLock& r) const override { return false; }
virtual double tailTime(lab::ContextRenderLock & r) const override { return 0; }
virtual double latencyTime(lab::ContextRenderLock & r) const override { return 0; }
};
#endif