Hi SFSW, this is on windows. I'm extracting images and WAV files no problem, this is the first I've started to put music into zip files with intention of adding password protection before deploying. The ZIP files are just created with windows and I'm dragging the media into them.
So I am unzipping to an "extract" folder, but like I say its the exact same for all the other media. I've tried locating the ZIP in the root media folder but no change. AppGameKit issues no messages or errors. What _IS_ happening is I am playing an OGG while the level loads (my level loading music) after which once the level is done loading the level music starts playing. This all works fine if the OGG file is sitting on its own, but hangs when the OGG is extracted from a ZIP like below:
ExtractZip("levelData\mus_common.zip", "extract", "")
audio_levelMusic = LoadMusicOGG("extract\Digital_Sunset.ogg") //By setting audio_levelMusic to the sound file (> -1), the sound_functions file will handle playing
SetMusicVolumeOGG(audio_levelMusic, audio_vol_master * audio_vol_music * audio_vol_machine)
clearExtractDir() //This function deletes the contents of the extract folder
And this is a part of the sound handler that deals with it:
if (audio_levelMusic > -1) and (audio_vol_masterMute = 0) and (audio_vol_machineMute = 0)
if GetMusicPlayingOGG(audio_music_levelLoad) then StopMusicOGG(audio_music_levelLoad)
if (GetMusicPlayingOGG(audio_levelMusic) = 0) then PlayMusicOGG(audio_levelMusic, 1)
endif //End Machine Ambient Music (OGG files, runs regardless of switch status)
So as of now looking like I'm not going to be able to ZIP protect my OGG assets...