47 Mixer(
int nTrack,
unsigned char nChannel);
174 unsigned char mChannel;
178 unsigned char mBoostVolume;
188 unsigned char mLevel;
191 unsigned char mZeroedBytes[16];
197 unsigned char mGainFactors[4];
200 std::vector<int> mTrackLevels;
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
void SendPan()
Send the pan for the current section.
virtual void DispatchPriv(Message *pMsg)
Act on a message.
void OnTracksOn(TracksOnMsg *pMsg)
React to a TracksOnMsg.
void SetMuted(int bMuted)
Mute or unmute the channel.
MsgSink * mOutput
The sink every message this mixer emits is sent to.
Definition mixer.h:120
Mixer(int nTrack, unsigned char nChannel)
Construct a mixer on one channel.
void SetGainFactor(int nIndex, unsigned char nFactor)
Set one of the four gain factors and send the combined level.
void OnTrackSelect(TrackSelectMsg *pMsg)
React to a TrackSelectMsg.
void RecomputeGain()
Recompute the gain from the game state and send it as gain factor 3.
void ApplyControlChange(StdMidiMsg *pMsg)
Act on one control-change message.
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
One participant in a session, local or remote.
Definition player.h:39
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 trackselectmsg.h:24
Event the game passes between a MsgSource and a MsgSink.
Definition tracksonmsg.h:18