resonance 1.0.1
Loading...
Searching...
No Matches
ps2hardsynth.h
Go to the documentation of this file.
1#pragma once
2
3#include "synth/midi_main.h"
4#include "synth/synth.h"
5
25class Ps2HardSynth : public Synth {
26public:
38
43 virtual ~Ps2HardSynth();
44
49 virtual void LoadBankSet4();
50
55 virtual void LoadBankSet5();
56
61 virtual void LoadBankSet6();
62
67 virtual void UnloadBanks();
68
73 virtual void PlayMidi(unsigned char nStatus, unsigned char nData1, unsigned char nData2);
74
79 virtual void SelectBank(unsigned char nChannel, unsigned char nBank);
80
85 virtual void SetStereo(int bStereo);
86
91 virtual void SetRemixMode(int bRemix);
92
97 virtual void SetPaused(int bPaused);
98
103 virtual void AllNotesOff();
104
120 virtual void LoadBankPair(const HxStr &bdName, const HxStr &hdName, int nTag, int nPlacement);
121
134
135private:
136 // Selects the bank the sound-effect channel is switched to. The constructor sets it, and each
137 // of the three bank loaders sets it again. Bank 15 is used while it is non-zero and bank 0
138 // otherwise.
139 int mUseSfxBank; // +0x04
140 // Whether the alternate bank set is resident, read from configuration code 0x3a4 in
141 // LoadBankSet6() and cleared by LoadBankSet4(). SelectBank() performs no work while it is
142 // zero.
143 int mAlternateBanksResident; // +0x08
144};
145
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
The game's hardware synthesiser.
Definition ps2hardsynth.h:25
virtual void PlayMidi(unsigned char nStatus, unsigned char nData1, unsigned char nData2)
virtual void SetRemixMode(int bRemix)
virtual void LoadBankPair(const HxStr &bdName, const HxStr &hdName, int nTag, int nPlacement)
Compose both bank paths and load the pair.
virtual ~Ps2HardSynth()
virtual void SelectBank(unsigned char nChannel, unsigned char nBank)
virtual void SetStereo(int bStereo)
virtual void SetPaused(int bPaused)
virtual void LoadBankSet6()
virtual void UnloadBanks()
virtual void AllNotesOff()
virtual void LoadBankSet5()
void SelectSfxProgram()
Program the sound-effect channel.
virtual void LoadBankSet4()
Ps2HardSynth()
Select the sound-effect bank and bring the synthesiser driver up.
Abstract base of the game's sound output.
Definition synth.h:41
Ps2HardSynth * CreatePs2HardSynth()
Create the hardware synthesiser.