comparison AudioPlayer.h @ 466:91e1ba340f39

Слияние
author Ritor1
date Mon, 25 Feb 2013 09:09:08 +0600
parents 94546824edad
children 90bcfb56c8f9
comparison
equal deleted inserted replaced
465:e65d75206263 466:91e1ba340f39
54 /* 27 */ 54 /* 27 */
55 #pragma pack(push, 1) 55 #pragma pack(push, 1)
56 struct MixerChannel 56 struct MixerChannel
57 { 57 {
58 inline MixerChannel(): 58 inline MixerChannel():
59 hSample(nullptr), dword_000004(0), uSourceTrackIdx(0), uSourceTrackID(0) 59 hSample(nullptr), source_pid(0), uSourceTrackIdx(0), uSourceTrackID(0)
60 {} 60 {}
61 61
62 _SAMPLE *hSample; 62 _SAMPLE *hSample;
63 int dword_000004; 63 int source_pid;
64 unsigned int uSourceTrackIdx; 64 unsigned int uSourceTrackIdx;
65 unsigned int uSourceTrackID; 65 unsigned int uSourceTrackID;
66 }; 66 };
67 #pragma pack(pop) 67 #pragma pack(pop)
68 68
71 71
72 72
73 /* 308 */ 73 /* 308 */
74 enum SoundID 74 enum SoundID
75 { 75 {
76 SOUND_0 = 0, 76 SOUND_Invalid = 0,
77 SOUND_EnteringAHouse = 0x6, 77 SOUND_EnteringAHouse = 0x6,
78 SOUND_8 = 0x8, 78 SOUND_8 = 0x8,
79 SOUND_27 = 0x1B, 79 SOUND_27 = 0x1B,
80 SOUND_Button = 66, 80 SOUND_Button = 66,
81 SOUND_67 = 67, 81 SOUND_67 = 67,
82 SOUND_71 = 71, 82 SOUND_71 = 71,
83 SOUND_Button2 = 75,
83 SOUND_78 = 78, 84 SOUND_78 = 78,
84 SOUND_80 = 80, 85 SOUND_80 = 80,
85 SOUND_81 = 81, 86 SOUND_81 = 81,
86 SOUND_83 = 83, 87 SOUND_83 = 83,
87 SOUND_84 = 84, 88 SOUND_84 = 84,
95 SOUND_Arcomage_127 = 0x7F, 96 SOUND_Arcomage_127 = 0x7F,
96 SOUND_Arcomage_128 = 0x80, 97 SOUND_Arcomage_128 = 0x80,
97 SOUND_Arcomage_TowerUpgrade = 0x81, 98 SOUND_Arcomage_TowerUpgrade = 0x81,
98 SOUND_Arcomage_WallUpgrade = 0x84, 99 SOUND_Arcomage_WallUpgrade = 0x84,
99 SOUND_GoldReceived = 0xC8, 100 SOUND_GoldReceived = 0xC8,
101 SOUND_OpenChest = 208,
100 SOUND_PlayerCantCastSpell = 0xD1, 102 SOUND_PlayerCantCastSpell = 0xD1,
101 SOUND_Bell = 0xD9, 103 SOUND_Bell = 0xD9,
102 SOUND_20001 = 0x4E21, 104 SOUND_20001 = 0x4E21,
103 }; 105 };
104 106
142 144
143 void SetMusicVolume(int vol); 145 void SetMusicVolume(int vol);
144 void SetMasterVolume(float fVolume); 146 void SetMasterVolume(float fVolume);
145 void _4AA258(int a2); 147 void _4AA258(int a2);
146 void PlaySound(SoundID eSoundID, signed int a3, unsigned int uNumRepeats, signed int a5, signed int a6, int a7, unsigned int uVolume, int sPlaybackRate); 148 void PlaySound(SoundID eSoundID, signed int a3, unsigned int uNumRepeats, signed int a5, signed int a6, int a7, unsigned int uVolume, int sPlaybackRate);
147 void _4AAFCF(); 149 void UpdateSounds();
148 void StopChannels(int uStartChannel, int uEndChannel); 150 void StopChannels(int uStartChannel, int uEndChannel);
149 void LoadAudioSnd(); 151 void LoadAudioSnd();
150 void Initialize(HWND hWnd); 152 void Initialize(HWND hWnd);
151 LSTATUS CheckA3DSupport(char a2); 153 LSTATUS CheckA3DSupport(char a2);
152 void Release(); 154 void Release();
234 char pData[1]; 236 char pData[1];
235 }; 237 };
236 238
237 struct SoundDesc 239 struct SoundDesc
238 { 240 {
241 inline bool Is3D() {return uFlags & SOUND_DESC_3D;}
242
239 char pSoundName[32]; 243 char pSoundName[32];
240 unsigned int uSoundID; 244 unsigned int uSoundID;
241 SOUND_DESC_TYPE eType; 245 SOUND_DESC_TYPE eType;
242 int uFlags; 246 int uFlags;
243 SoundData *pSoundData[17]; 247 SoundData *pSoundData[17];