resonance 1.0.1
Loading...
Searching...
No Matches
axefx.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/activefilter.h"
4#include "app/filterlover.h"
5#include "app/msgsink.h"
6#include "app/msgsource.h"
7#include "msg/message.h"
8
9class AxisFXMsg;
10class Globals;
11class TrackData;
12
13namespace Sch {
14class TickClock;
15} // namespace Sch
16
32class AxeFX : public MsgSink, public MsgSource, public FilterLover {
33public:
40 AxeFX(Globals *pGlobals, const TrackData *pTrackData);
41
52 virtual void OnFilterValue(float flValue);
53
64 virtual void DispatchPriv(Message *pMsg);
65
66private:
73 void SendController();
74
81 void OnAxisFX(AxisFXMsg *pMsg);
82
89 void OnMultiMuse();
90
91 unsigned char mChannel; // +0x1c
92 unsigned char mController; // +0x1d, from configuration code 0x393
93 ActiveFilter mFilter; // +0x20
94 int mPlaying; // +0x48
95 int mValue; // +0x4c, the controller value, 64 at first
96 Sch::TickClock *mClock; // +0x50
97};
First-order smoothing filter that steps itself on a clock and reports each step to a FilterLover.
Definition activefilter.h:27
virtual void DispatchPriv(Message *pMsg)
Act on a message.
virtual void OnFilterValue(float flValue)
Take a new smoothed stick value.
AxeFX(Globals *pGlobals, const TrackData *pTrackData)
Event the game passes between a MsgSource and a MsgSink.
Definition axisfxmsg.h:25
Receiver of the values an ActiveFilter produces.
Definition filterlover.h:10
Abstract owner of the process-wide services.
Definition globals.h:47
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
Sender of engine messages, which stores the list of sinks that receive them.
Definition msgsource.h:26
Pausable view of scheduler time, together with the tempo that maps it to a song position.
Definition tickclock.h:40
Converted events of one track of a level.
Definition trackdata.h:52
Scheduling of timed commands.
Definition activefilter.h:9