22 #ifndef FREESCAPE_CASTLE_OPL_MUSIC_H 23 #define FREESCAPE_CASTLE_OPL_MUSIC_H 25 #include "audio/fmopl.h" 26 #include "freescape/music.h" 43 void startMusic()
override;
44 void stopMusic()
override;
45 bool isPlaying()
const override;
54 const byte *orderList;
57 uint16 patternDataOffset;
63 uint16 baseSIDFrequency;
64 int16 sidFrequencyOffset;
65 uint16 baseFrequencyFnum;
66 byte baseFrequencyBlock;
74 void reset(
const byte *channelOrderList);
80 ChannelState _channels[kChannelCount];
85 void loadNextPattern(
int channel);
86 byte readPatternByte(
int channel);
87 void parseCommands(
int channel);
88 void setOPLInstrument(
int channel, byte instrument);
89 void noteOn(
int channel, byte note);
90 void noteOff(
int channel);
91 void gateOff(
int channel);
92 void applyFrameEffects(
int channel);
93 void setFrequency(
int channel, uint16 fnum, byte block);
94 void writeFrequency(
int channel, uint16 fnum, byte block);
95 void noteToFnumBlock(
int note, uint16 &fnum, byte &block)
const;
Definition: opl.music.h:38