Hello so I have been working on my own Game and I have a question so right now I am calling my audio files directly for example
AudioMaster.loadSound(OsManager.getDirectory() + "theme.WAV");
So I was wondering if first have anyone got any recommendations on how I could call the music using an ID like
AudioMaster.loadSound(1);
put have all of the music packed into one file so I could have 6 music pieces in one file like music.dat or something like that with an extension
You could make loadSound function like:
loadSound(int soundId){
switch(soundId){
case 1:
//load what sound you want
break;
case 2:
//load what sound you want
break;
}
}
Is it what you want?