The playlist in a multi sound object appears to play in a shuffled order when shuffle is enabled but it seems to always play the SAME shuffled order every time I restart my application.
This is obviously not desired behaviour - why does the shuffle function not have a random seed set each time the bank is loaded?
Is there any way to actually randomize the play list of a multi sound object properly?
EDIT: Just want to note that this behaviour is not evident INSIDE Studio as it plays randomly all the time, it only happens when I’m using the events from within my app.
EDIT 2: Using the following code - still no change in behaviour. Tried setAdvancedSettings both before and after system->initialize, with no change. Not seeing any errors. cbSize is 108, and random seed (as expected) is always different and greater than 2. Any idea what I’m doing wrong?
system = NULL; ERRCHECK(FMOD::Studio::System::create(&system)); lowLevelSystem = NULL; ERRCHECK(system->getLowLevelSystem(&lowLevelSystem)); ERRCHECK(lowLevelSystem->setSoftwareFormat(0, FMOD_SPEAKERMODE_STEREO, 0)); FMOD_ADVANCEDSETTINGS settings; settings.randomSeed = util.randInt(2, 10000); settings.cbSize = sizeof(FMOD_ADVANCEDSETTINGS); std::cout << " settings.cbSize= " << settings.cbSize << " settings.randomSeed =" << settings.randomSeed << "\n"; ERRCHECK(lowLevelSystem->setAdvancedSettings(&settings)); ERRCHECK(system->initialize(1024, FMOD_STUDIO_INIT_NORMAL, FMOD_INIT_NORMAL, extraDriverData));