Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
fmodaudio [2019/08/13 09:15] – [Remarks] admin | fmodaudio [2020/01/09 14:20] – [Remarks] admin | ||
---|---|---|---|
Line 211: | Line 211: | ||
===== Remarks ===== | ===== Remarks ===== | ||
It is not allowed to release FMOD interfaces when the TGorillaFMODAudioManager component, especially the IGorillaFMODSystem interface inside of it, is already destroyed. | It is not allowed to release FMOD interfaces when the TGorillaFMODAudioManager component, especially the IGorillaFMODSystem interface inside of it, is already destroyed. | ||
- | In this case you will receive an AccessViolation, | + | In this case you will receive an AccessViolation, |
**WRONG:** | **WRONG:** | ||
Line 225: | Line 225: | ||
finally | finally | ||
FreeAndNil(LFMOD); | FreeAndNil(LFMOD); | ||
- | LSound := nil; | + | LSound := nil; // <<< |
end; | end; | ||
</ | </ | ||
Line 240: | Line 240: | ||
LSound := LFMOD.LoadSoundFromFile(Common_MediaPathRaw(' | LSound := LFMOD.LoadSoundFromFile(Common_MediaPathRaw(' | ||
finally | finally | ||
- | LSound := nil; // !!! | + | LSound := nil; // !!! CORRECT! |
FreeAndNil(LFMOD); | FreeAndNil(LFMOD); | ||
end; | end; | ||
</ | </ | ||
+ | |||
+ | Next step: [[assetsmanager|Assets Manager]] |