index ceb0c0fc5f4b3d3c9caacbae0dd5028517315c9e..123db2c84975599d4e71bd124b1cee77371b1fb4 100644 (file)
res: FMOD_RESULT;
begin
+ Result := False;
+ if FID = NO_SOUND_ID then Exit;
+
if e_SoundsArray[FID].nRefs >= gMaxSimSounds then
begin
Result := True;
Exit;
end;
- Result := False;
-
- if FID = NO_SOUND_ID then
- Exit;
-
res := FMOD_System_PlaySound(F_System, FMOD_CHANNEL_FREE,
e_SoundsArray[FID].Sound, False, FChannel);
if res <> FMOD_OK then