22 #ifndef MADS_DRAGONSPHERE_SOUND_ASOUND_DRAGONSPHERE_H 23 #define MADS_DRAGONSPHERE_SOUND_ASOUND_DRAGONSPHERE_H 25 #include "mads/dragonsphere/sound/asound.h" 26 #include "mads/phantom/sound/asound.h" 29 namespace Dragonsphere {
54 typedef int (
ASound1::*CommandPtr)();
55 static const CommandPtr _commandList[102];
63 void loadCallback1FBA();
78 void loadMusicPitchBend();
159 bool callFunction(uint16 offset,
AdlibChannel &channel)
override;
164 int command(
int commandId,
int param)
override;
182 typedef int (
ASound2::*CommandPtr)();
183 static const CommandPtr _commandList[76];
186 void loadCommand16();
187 void loadCommand32();
188 void loadCommand33();
189 void loadCommand34();
190 void loadCommand35();
192 int command0();
int command1();
int command2();
int command3();
193 int command4();
int command5();
int command6();
int command7();
200 int command24();
int command25();
int command26();
int command27();
201 int command28();
int command29();
int command30();
int command31();
203 int command32();
int command33();
int command34();
int command35();
205 int command64();
int command65();
int command66();
int command67();
206 int command68();
int command69_70();
int command71();
int command72();
208 bool callFunction(uint16 offset,
AdlibChannel &channel)
override;
213 int command(
int commandId,
int param)
override;
234 typedef int (
ASound3::*CommandPtr)();
235 static const CommandPtr _commandList[77];
238 void loadCommand16();
239 void loadCommand32();
240 void loadCommand33();
279 bool callFunction(uint16 offset,
AdlibChannel &channel)
override;
284 int command(
int commandId,
int param)
override;
306 typedef int (
ASound4::*CommandPtr)();
307 static const CommandPtr _commandList[82];
310 void loadCommand16();
311 void loadCommand32();
312 void loadCommand33();
313 void loadCommand35();
314 void loadCommand36();
315 void loadCommand37();
316 void loadCommand38();
317 void loadCommand39();
318 void loadCommand40();
320 int command0();
int command1();
int command2();
int command3();
321 int command4();
int command6();
int command7();
int command8();
323 int command16();
int command17();
int command18();
325 int command24();
int command25();
int command26();
int command27();
326 int command28();
int command29();
int command30();
int command31();
328 int command32();
int command33();
int command35();
int command36();
329 int command37();
int command38();
int command39();
int command40();
331 int command64();
int command65();
int command66();
int command67();
332 int command68();
int command69();
int command70();
int command71();
333 int command72();
int command73();
int command74();
int command75();
334 int command76();
int command77();
int command78();
335 int command80();
int command81();
340 int command(
int commandId,
int param)
override;
365 typedef int (
ASound5::*CommandPtr)();
366 static const CommandPtr _commandList[82];
369 void loadCommand16();
370 void loadCallback1B7B();
371 void loadCommand32();
372 void loadCommand33();
373 void loadCommand34();
374 void loadCommand35();
375 void loadCommand38();
379 int command0();
int command1();
int command2();
int command3();
380 int command4();
int command5();
int command6();
int command7();
383 int command16();
int command17();
int command18();
385 int command24();
int command25();
int command26();
int command27();
386 int command28();
int command29();
int command30();
int command31();
388 int command32();
int command33();
int command34();
int command35();
389 int command36();
int command37();
int command38();
391 int command64();
int command65();
int command66();
int command67();
392 int command68();
int command69();
int command70();
int command71();
393 int command72();
int command73();
int command74();
int command75();
394 int command76();
int command77();
int command78();
395 int command80();
int command81();
397 bool callFunction(uint16 offset,
AdlibChannel &channel)
override;
402 int command(
int commandId,
int param)
override;
417 typedef int (
ASound6::*CommandPtr)();
418 static const CommandPtr _commandList[102];
420 void loadCommand16();
421 void loadCommand32();
422 void loadCommand34();
423 void loadCommand35();
424 void loadCommand36();
425 void loadCommand37();
426 void loadCommand38();
427 void loadCommand39();
428 void loadCommand40();
429 void loadCommand44();
430 void loadCommand45();
431 void loadCommand96();
436 int command0();
int command1();
int command2();
int command3();
437 int command4();
int command5();
int command6();
int command7();
440 int command16();
int command17();
int command18();
442 int command24();
int command25();
int command26();
int command27();
443 int command28();
int command29();
int command30();
int command31();
445 int command32();
int command33();
int command34();
int command35();
446 int command36();
int command37();
int command38();
int command39();
447 int command40();
int command44();
int command45();
449 int command64();
int command65();
int command66();
int command67();
450 int command68();
int command69();
int command70();
int command71();
451 int command72();
int command73();
int command74();
int command75();
452 int command76();
int command77();
int command78();
int command79();
453 int command80();
int command81();
int command82();
int command83();
454 int command84();
int command85();
int command86();
int command87();
455 int command88();
int command89();
int command90();
int command91();
456 int command92();
int command93();
int command94();
int command95();
457 int command96();
int command97();
int command98();
458 int command100();
int command101();
460 bool callFunction(uint16 offset,
AdlibChannel &channel)
override;
465 int command(
int commandId,
int param)
override;
481 uint16 _callbackCounter;
482 uint16 _callbackPeriod;
483 CallbackFunction _callbackFnPtr;
485 void clearGameCallback();
486 void resetGameState()
override;
487 void tickGameCallback()
override;
491 int dataOffset,
int dataSize);
498 _callbackFnPtr =
nullptr;
499 _callbackCounter = period;
500 _callbackPeriod = period;
503 _callbackFnPtr =
nullptr;
504 _callbackCounter = counter;
505 _callbackPeriod = period;
522 static const CommandPtr _commandList[93];
524 void callFunction(uint16 offset,
527 void loadCommand16();
528 void loadCommand32();
529 void loadCommand33();
530 void loadCommand34();
531 void loadCommand35();
532 void loadCommand36();
533 void loadCommand37();
534 void loadCommand38();
535 void loadCommand39();
536 void loadCommand40();
537 void loadCommand41();
538 void loadCommand42();
539 void loadCommand43();
540 void loadCommand44();
541 void loadCommand45();
542 void loadCommand92();
544 int command0();
int command1();
int command2();
int command3();
545 int command4();
int command5();
int command6();
int command7();
550 int command24();
int command25();
int command26();
int command27();
551 int command32();
int command33();
int command34();
int command35();
552 int command36();
int command37();
int command38();
int command39();
553 int command40();
int command41();
int command42();
int command43();
554 int command44();
int command45();
556 int command90();
int command91();
int command92();
561 int command(
int commandId,
int param)
override;
566 typedef int (
ASound9:: *CommandPtr)();
569 void loadCommand32();
570 void loadCommand33_47();
571 void loadCommand34();
572 void loadCommand35();
573 void loadCommand36();
574 void loadCommand37();
575 void loadCommand38();
576 void loadCommand39();
577 void loadCommand40();
578 void loadCommand41();
579 void loadCommand42();
580 void loadCommand51();
581 void loadCommand52();
582 void command53_loader();
583 void loadCommand54();
584 void loadCommand55();
585 void loadCommand57();
586 void loadCommand58();
587 void loadCommand62();
590 int command0();
int command1();
int command2();
int command3();
591 int command4();
int command5();
int command6();
int command7();
595 int command32();
int command33_47();
int command34();
int command35();
596 int command36();
int command37();
int command38();
int command39();
597 int command40();
int command41();
int command42();
int command43();
598 int command45();
int command46();
599 int command48();
int command49();
int command50();
600 int command51();
int command52();
int command53();
601 int command54();
int command55();
602 int command57();
int command58();
int command59();
603 int command61();
int command62();
int command63();
605 bool callFunction(uint16 offset,
AdlibChannel &channel)
override;
607 static const CommandPtr _commandList[65];
612 int command(
int commandId,
int param)
override;
632 static const CommandPtr _commandList[51];
635 void loadCommand28();
636 void loadCommand29();
637 void loadCommand34();
638 void loadCommand35();
639 void loadCommand36();
640 void loadCommand37();
641 void loadCommand38();
642 void loadCommand39();
643 void loadCommand40();
644 void loadCommand41();
645 void loadCommand42();
647 int command0();
int command1();
int command2();
int command3();
648 int command4();
int command5();
int command6();
int command7();
653 int command25();
int command26();
int command27();
657 int command34();
int command35();
int command36();
int command37();
658 int command38();
int command39();
int command40();
int command41();
659 int command42();
int command43();
int command44();
int command45();
660 int command46();
int command47();
int command48();
int command49();
666 int command(
int commandId,
int param)
override;
int isMusicChannelsActive()
Definition: asound_dragonsphere.h:519
Definition: asound_dragonsphere.h:304
Definition: asound_dragonsphere.h:476
Definition: asound_dragonsphere.h:180
Definition: asound_dragonsphere.h:232
void(ASound::* CallbackFunction)()
Definition: asound.h:195
void scheduleCallback(CallbackFunction fn)
Definition: asound.h:425
Definition: asound_dragonsphere.h:52
void resetCallbackTimer(uint16 period)
Definition: asound.h:431
Definition: asound_dragonsphere.h:415
Definition: asound_dragonsphere.h:564
Definition: asound_dragonsphere.h:629
Definition: anim_timer.h:27
int command(int commandId, int param) override
Definition: asound_dragonsphere.h:363
void resetCallbackTimerEx(uint16 counter, uint16 period)
Definition: asound.h:441