I’m having a very odd problem with playback of sounds in designer.
I have two events A and B. They are simple events that just playback the sounds. For testing I am only triggering event A.
If A and B are mono there are no problems.
If A is stereo and B is mono than A plays back correctly.
If A is mono and B is stereo A plays back incorrectly.
If A and B are both stereo A plays back incorrectly.
Incorrectly means a very messed up sound that seems to be related to sound A but slower and with other things added to it.
Settings for all options in designer I have checked to be the same (i could have overlooked one of course). The files are the same sample rate and bit depth (24k, 16bit)
Simply by changing one sound from stereo to mono and rebuilding i can make or break the playing of another. I have tried changing other factors such as length to no avail.
What is going on?
The code for reference:
check(“set media path”,s_event_system->setMediaPath(“data/fmod_loop_bug”));
check(“load event file interface”, s_event_system->load(“test.fev”, 0));
check(“get group”,s_event_system->getGroup(“test”, true, &group));
check(“get event 1”,group->getEvent(“A”, &event));
using FMOD 40302
- stephenmccaul asked 13 years ago
A crash bug during event->start() that I have been trying to isolate also goes away when I recompile my bank with PCM. I’m not sure of the exact conditions that cause the crash. I was trying to narrow this down before posting my problem. I am going to wait until next version to work on this any further.
I seem to be getting these problems with IMAADPCM and mixed samples in the same bank too i.e. playback at an odd frequency and occasional crashes on playback for no apparent reason. Also fixed when I switch to PCM.
If it helps, I was generally getting the crash that Stephen suggested when swapping between 2 different banks (playing one sample from one then another sample from another after that) one of which had mixed samples in (the other didn’t but they were a different format again) i.e. it would work fine playing samples from one bank if you played that first but would crash if you tried to play it after you’d played from the other bank first.
- crouton answered 12 years ago
Please login first to submit.