Hello guys,
This question also extends to other functions that load media, are they all handled asynchronously?
Take this piece of code for example:
musicID=LoadMusicOGG("music.ogg")
DeleteFile("music.ogg")
I assumed that the music file would be fully loaded before the
DeleteFile command is executed but instead I get strange results. For example, in this instance the file won't be deleted, I'm assuming it's because the music file is still being loaded in the background.
Now rather than Delete the file, if you overwrite it instead, for example like so:
musicID=LoadMusicOGG("music.ogg")
CreateFileFromMemblock("music.ogg")
In this instance, the music referenced by musicID exists (
GetMusicExistsOGG returns 1) but refuses to play. I'm assuming that's because the loading was cut short by the overwriting of the source file.
So is the
LoadMusicOGG() an ASync process? I just need confirmation so I can handle my code a bit differently keeping that in mind. Thanks!