Changeset 189 for trunk/Packages/CevoComponents/Sound.pas
- Timestamp:
- May 7, 2020, 12:46:55 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/Sound.pas
r174 r189 290 290 Result := (WavFileName <> '') and (WavFileName[1] <> '[') and (WavFileName <> '*'); 291 291 if Result then 292 // SndPlaySound(pchar( HomeDir+'Sounds' +DirectorySeparator+WavFileName+'.wav'),SND_ASYNC)293 PlaySound( HomeDir + 'Sounds'+ DirectorySeparator + WavFileName);292 // SndPlaySound(pchar(GetSoundsDir + DirectorySeparator + WavFileName + '.wav'), SND_ASYNC) 293 PlaySound(GetSoundsDir + DirectorySeparator + WavFileName); 294 294 {$ENDIF} 295 295 end; … … 307 307 Assert(WavFileName[1] <> '['); 308 308 if (WavFileName <> '') and (WavFileName[1] <> '[') and (WavFileName <> '*') then 309 PrepareSound( HomeDir + 'Sounds'+ DirectorySeparator + WavFileName);309 PrepareSound(GetSoundsDir + DirectorySeparator + WavFileName); 310 310 {$ENDIF} 311 311 end;
Note:
See TracChangeset
for help on using the changeset viewer.