121 virtual void PlayMidi(
unsigned char nStatus,
unsigned char nData1,
unsigned char nData2) = 0;
146 virtual void SelectBank(
unsigned char nChannel,
unsigned char nBank);
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
Abstract base of the game's sound output.
Definition synth.h:41
virtual void UnloadBanks()
Release every loaded bank.
virtual void SetStereo(int bStereo)
Switch between stereo and mono output.
virtual void AllNotesOffExceptSfxChannel()
Silence every channel but the sound-effect channel.
virtual void SetRemixMode(int bRemix)
Switch the remix mode of the sound driver.
virtual void OnPlayStarted()
Respond to the start of play.
virtual void LoadBankSet5()
Load one of the three bank sets.
virtual void UnusedHook()
Do nothing.
virtual void DispatchPriv(Message *pMsg)
Act on a message.
virtual void SelectBank(unsigned char nChannel, unsigned char nBank)
Select a bank on one channel.
virtual void LoadBankSet4()
Load one of the three bank sets.
void FadeOut(int nDurationMs)
Fade every channel's volume to silence over a duration.
void SetChannelVolume(unsigned char nVolume)
Set the volume of every channel.
void Setup()
Put every channel into its starting state.
virtual void SetPaused(int bPaused)
Pause or resume the sound driver.
virtual void PlayMidi(unsigned char nStatus, unsigned char nData1, unsigned char nData2)=0
Move one MIDI message to the hardware.
virtual void LoadBankSet6()
Load one of the three bank sets.
virtual void AllNotesOff()
Silence every channel.
void OnStdMidi(StdMidiMsg *pMsg)
Sends the message's three bytes through PlayMidi().