35 kDMSoundModeDoNotPlaySound = -1,
36 kDMSoundModePlayImmediately = 0,
37 kDMSoundModePlayIfPrioritized = 1,
38 kDMSoundModePlayOneTickLater = 2
42 kDMSoundIndexMetallicThud = 0,
43 kDMSoundIndexSwitch = 1,
44 kDMSoundIndexDoorRattle = 2,
45 kDMSoundIndexAttackPainRatHellHoundRedDragon = 3,
46 kDMSoundIndexWoodenThudAttackTrolinAntmanStoneGolem = 4,
47 kDMSoundIndexStrongExplosion = 5,
48 kDMSoundIndexScream = 6,
49 kDMSoundIndexAttackMummyGhostRive = 7,
50 kDMSoundIndexSwallow = 8,
51 kDMSoundIndexChampion0Damaged = 9,
52 kDMSoundIndexChampion1Damaged = 10,
53 kDMSoundIndexChampion2Damaged = 11,
54 kDMSoundIndexChampion3Damaged = 12,
55 kDMSoundIndexSpell = 13,
56 kDMSoundIndexAttackScreamerOitu = 14,
57 kDMSoundIndexAttackGiantScorpion = 15,
58 kDMSoundIndexAttackSkelettonAnimatedArmorDethKnight = 16,
59 kDMSoundIndexBuzz = 17,
60 kDMSoundIndexPartyDamaged = 18,
61 kDMSoundIndexAttackMagentaWorm = 19,
62 kDMSoundIndexWeakExplosion = 20,
63 kDMSoundIndexAttackGiggler = 21,
64 kDMSoundIndexMoveAnimatedArmorDethKnight = 22,
65 kDMSoundIndexMoveCouatlGiantWaspMuncher = 23,
66 kDMSoundIndexMoveMummyTrolinAntmanStoneGolemGiggleVexirkDemon = 24,
67 kDMSoundIndexBlowHorn = 25,
68 kDMSoundIndexMoveScreamerRocksWormPainRatHellHoundRusterScorpionsOitu = 26,
69 kDMSoundIndexMoveSlimesDevilWaterElemental = 27,
70 kDMSoundIndexWarCry = 28,
71 kDMSoundIndexAttackRocks = 29,
72 kDMSoundIndexAttackWaterElemental = 30,
73 kDMSoundIndexAttackCouatl = 31,
74 kDMSoundIndexMoveRedDragon = 32,
75 kDMSoundIndexMoveSkeletton = 33
78 #define kDMSoundCount 34 // @ D13_SOUND_COUNT 85 SoundData() : _byteCount(0), _firstSample(
nullptr), _sampleCount(0) {}
95 Sound(int16 index, byte period, byte priority, byte loudDist, byte softDist) :
96 _graphicIndex(index), _period(period), _priority(priority), _loudDistance(loudDist), _softDistance(softDist) {}
97 Sound() : _graphicIndex(0), _period(0), _priority(0), _loudDistance(0), _softDistance(0) {}
105 PendingSound(uint8 leftVolume, uint8 rightVolume, int16 soundIndex) :
106 _leftVolume(leftVolume), _rightVolume(rightVolume), _soundIndex(soundIndex) {}
122 virtual void loadSounds();
123 virtual void requestPlay(uint16 soundIndex, int16 mapX, int16 mapY, SoundMode soundMode);
124 virtual void play(uint16 soundIndex, uint16 period, uint8 leftVolume, uint8 rightVolume);
125 void playPendingSound();
126 bool soundGetVolume(int16 mapX, int16 mapY, uint8 *leftVolume, uint8 *rightVolume);
128 Sound _sounds[kDMSoundCount];
129 void initConstants();
137 void loadSounds()
override {}
138 void requestPlay(uint16 soundIndex, int16 mapX, int16 mapY, SoundMode soundMode)
override {}
139 void play(uint16 soundIndex, uint16 period, uint8 leftVolume, uint8 rightVolume)
override {}
Definition: detection.h:70
Definition: champion.h:35