resonance 1.0.1
Loading...
Searching...
No Matches
synthsustainer.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "app/msgsink.h"
6#include "msg/message.h"
7#include "msg/stdmidimsg.h"
9
25class SynthSustainer : public MsgSink {
26private:
33 void HandleSustainNote(SustainNoteMsg *pMsg);
34
41 void HandleStdMidi(StdMidiMsg *pMsg);
42
43 std::vector<unsigned char> mSounding; // +0x04, notes a note-on has let through
44 std::vector<unsigned char> mSustained; // +0x10, notes a sustain request is sustaining
45
46public:
54
59 virtual ~SynthSustainer();
60
70
71protected:
82 virtual void DispatchPriv(Message *pMsg);
83};
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Receiver of engine messages.
Definition msgsink.h:37
Event the game passes between a MsgSource and a MsgSink.
Definition stdmidimsg.h:27
Event the game passes between a MsgSource and a MsgSink.
Definition sustainnotemsg.h:27
SynthSustainer()
Construct a filter with both sets empty and no downstream sink.
MsgSink * mSink
Sink that receives every message the filter passes on.
Definition synthsustainer.h:69
virtual ~SynthSustainer()
virtual void DispatchPriv(Message *pMsg)
Dispatch on the message's registered identity.