File tree Expand file tree Collapse file tree 1 file changed +7
-25
lines changed Expand file tree Collapse file tree 1 file changed +7
-25
lines changed Original file line number Diff line number Diff line change @@ -149,41 +149,23 @@ VOID CAudioEngineSA::StartRadio(unsigned int station)
149149// 43 = race one
150150// 32 = help
151151// 13 = camera take picture
152- VOID CAudioEngineSA::PlayFrontEndSound (DWORD dwSound )
152+ VOID CAudioEngineSA::PlayFrontEndSound (DWORD dwEventID )
153153{
154- if (*(DWORD*)VAR_AudioEventVolumes != 0 && dwSound <= 101 ) // may prevent a crash
154+ if (*(DWORD*)VAR_AudioEventVolumes != 0 && dwEventID <= 101 ) // may prevent a crash
155155 {
156156 DEBUG_TRACE (" VOID CAudioEngineSA::PlayFrontEndSound(DWORD dwSound)" );
157157 DWORD dwFunc = FUNC_ReportFrontendAudioEvent;
158- FLOAT fUnknown = 1 .0f ;
158+ FLOAT fSpeed = 1 .0f ;
159+ FLOAT fVolumeChange = 0 .0f ;
159160 _asm
160161 {
161- push fUnknown
162- push 0
163- push dwSound
162+ push fSpeed
163+ push fVolumeChange
164+ push dwEventID
164165 mov ecx, CLASS_CAudioEngine
165166 call dwFunc
166167 }
167168 }
168-
169- /* DWORD dwAudioEntity = 0xB6BC90;
170-
171- DWORD dwFunc = 0x507290;
172- _asm
173- {
174- push 1
175- push dwSound
176- call dwFunc
177- }
178-
179-
180- dwFunc = 0x5072B0;
181- _asm
182- {
183- push dwSound
184- mov ecx,dwAudioEntity
185- call dwFunc
186- }*/
187169}
188170
189171VOID CAudioEngineSA::SetEffectsMasterVolume (BYTE bVolume)
You can’t perform that action at this time.
0 commit comments