I have been dealing with playing OGG music and wanting to delete the file after extracting it from a protected zip, the music stops playing because it needs to constantly read from the file on disk.
There is a new command from the February update that will take a raw memblock file and convert it to music. This loads the compressed file into memory and seems to be able to play music directly from it. Exactly what I needed to protect my music assets.
ExtractZip("yourProtectedFile.zip", "extract", "password")
snd_musicMB = CreateMemblockFromFile("extract\music_file.ogg")
//Music file can be created at anytime from the memory block, you can delete the extract folder here
game_music = CreateMusicFromOGGMemblock(snd_musicMB )
PlayMusicOGG(game_music , 1)
Thank you to TGC for this adding feature and updating the online documentation!
https://www.appgamekit.com/documentation/Reference/Memblock/CreateMusicFromOGGMemblock.htm
https://www.thegamecreators.com/post/appgamekit-classic-20210210-latest-version-released