22 #ifndef MADS_DRAGONSPHERE_SOUND_RSOUND_DRAGONSPHERE_H 23 #define MADS_DRAGONSPHERE_SOUND_RSOUND_DRAGONSPHERE_H 25 #include "mads/dragonsphere/sound/rsound.h" 28 namespace Dragonsphere {
56 typedef int (
RSound1:: *CommandPtr)();
57 static const CommandPtr _commandList[102];
61 int loadCallback2478();
104 void command43_48Tail(byte variant);
107 void loadCommand43_48();
153 bool callFunction(uint16 targetOffset,
Channel &channel)
override;
158 int command(
int commandId,
int param)
override;
185 typedef int (
RSound2:: *CommandPtr)();
186 static const CommandPtr _commandList[73];
194 void resetChannels1to6();
232 int command(
int commandId,
int param)
override;
274 typedef int (
RSound3:: *CommandPtr)();
275 static const CommandPtr _commandList[74];
299 void command31_64Tail(byte variant);
315 bool callFunction(uint16 targetOffset,
Channel &channel)
override;
320 int command(
int commandId,
int param)
override;
359 void resetChannels1to5();
362 void resetChannels6to8();
364 typedef int (
RSound4:: *CommandPtr)();
365 static const CommandPtr _commandList[79];
427 bool callFunction(uint16 targetOffset,
Channel &channel)
override;
432 int command(
int commandId,
int param)
override;
456 typedef int (
RSound5:: *CommandPtr)();
457 static const CommandPtr _commandList[79];
468 bool _command16Played =
false;
471 int loadCommand16A();
472 int loadCommand16B();
473 void dispatchCommand16B();
492 void command31_78Tail(byte variant);
528 bool callFunction(uint16 targetOffset,
Channel &channel)
override;
533 int command(
int commandId,
int param)
override;
570 bool callFunction(uint16 targetOffset,
Channel &channel)
override;
583 void resetChannels6to8();
598 Channel *playSoundChannels1To6(
int offset);
607 Channel *playSoundAny(
int offset);
609 typedef int (
RSound6:: *CommandPtr)();
610 static const CommandPtr _commandList[99];
633 int command32_33Load();
634 void command32_33LoadCh4();
635 byte _command33Flag = 0;
638 int command34LoadCh1AndRest();
639 void command34LoadRestOnly();
642 int retryCommand35();
645 int retryCommand36();
647 int retryCommand37();
649 int retryCommand38();
651 int retryCommand39();
653 int retryCommand40();
658 int retryCommand45();
693 int retryCommand96();
700 int command(
int commandId,
int param)
override;
748 void variantSetupA();
751 void variantSetupB();
759 int command33_47_60Load();
767 int loadCommand34Or54();
785 int command53Callback();
828 typedef int (
RSound9:: *CommandPtr)();
829 static const CommandPtr _commandList[64];
830 bool callFunction(uint16 targetOffset,
Channel &channel)
override;
835 int command(
int commandId,
int param)
override;
847 int dataOffset,
int dataSize,
int sysExOffset);
849 int executeDemoCommonCommand(
int commandId);
852 Channel *playDemoSoundAny(
int offset);
893 bool callFunction(uint16 targetOffset,
Channel &channel)
override;
897 int command(
int commandId,
int param)
override;
905 int loadCommand33Or47();
929 int command(
int commandId,
int param)
override;
Definition: rsound_dragonsphere.h:568
Definition: rsound_dragonsphere.h:739
Definition: rsound_dragonsphere.h:901
Definition: rsound_dragonsphere.h:454
Definition: rsound_dragonsphere.h:351
Definition: rsound_dragonsphere.h:859
Definition: rsound_dragonsphere.h:183
int isMusicChannelsActive()
Definition: rsound_dragonsphere.h:272
Definition: anim_timer.h:27
Definition: rsound_dragonsphere.h:844
int(RSound::* CallbackFunction)()
Definition: rsound.h:185
Definition: rsound_dragonsphere.h:54
int command(int commandId, int param) override