-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLabSoundTemplateNode.h
More file actions
32 lines (23 loc) · 968 Bytes
/
LabSoundTemplateNode.h
File metadata and controls
32 lines (23 loc) · 968 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
#ifndef LABSOUND_TEMPLATE_NODE
#define LABSOUND_TEMPLATE_NODE
#include <LabSound/core/AudioNode.h>
class LabSoundTemplateNode : public lab::AudioNode
{
struct Detail;
Detail* _detail = nullptr;
static bool s_registered;
public:
LabSoundTemplateNode(lab::AudioContext & ac);
virtual ~LabSoundTemplateNode();
static const char* static_name() { return "LabSoundTemplate"; }
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 realtimeEvent(float when, int identifier);
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