22 #ifndef FREESCAPE_CASTLE_C64_MUSIC_H 23 #define FREESCAPE_CASTLE_C64_MUSIC_H 25 #include "audio/sid.h" 26 #include "freescape/music.h" 35 void startMusic()
override;
36 void stopMusic()
override;
37 bool isPlaying()
const override;
46 const byte *orderList;
49 uint16 patternDataOffset;
56 int16 frequencyOffset;
62 void reset(
const byte *channelOrderList);
68 ChannelState _channels[kChannelCount];
72 void sidWrite(
int reg, byte data);
76 void loadNextPattern(
int channel);
77 byte readPatternByte(
int channel);
78 void parseCommands(
int channel);
79 void noteOn(
int channel, byte note);
80 void rest(
int channel);
81 void gateOff(
int channel);
82 void writeFrequency(
int channel, uint16 frequency);
83 uint16 noteToSIDFrequency(
int note)
const;
84 void applyFrameEffects(
int channel);
85 byte sidControlForInstrument(byte instrument)
const;
Definition: c64.music.h:30