Hello, I'm trying to use this to facilitate the loading of external audio files. I didn't quite get it to play any sounds, however-
What I ended up doing was getting my game setup object to call all of the necessary functions in my MasterGameSet() (just something I use to set up the entire game), and then using a BGMSet to go and allocate pathnames to an array of variables global.bgm[x].
global.bgm[1] leads to the main menu music,
global.bgm[2] is the filepath to the Level 1 music.
The plan was to use my sound controlling object (yes, FMODUpdate(); is in the Step event) to swap out whatever sound was currently playing in one instance/object/container/what-have-you.
I'm using global.music to identify what song is currently playing, and global.player as the returned instance by FMODSoundLoop().
I tried setting the group, sound volume, LoopCount, etc etc etc etc but I can't get sound to play.
I can post the code verbatim if need be, but it's more or less the same as the provided example.
edit;
ALL RIGHT NEVER MIND
The problem rooted from using the index of 1 in the array. Why, I'll never know. But I'll just shift down the tracklist.
double edit;
DOUBLE NEVER MIND
the actual problem was that i mispelled the file
/hirakiri
Edited by gamefreek2, 07 March 2012 - 07:42 PM.