What would be the best way to play two xm/oxm modules in sync, so that one module starts first and plays for random amount of time, until second module is faded in? The second module would have to start playing so that it would sync to the certain rows of the first module (for example every 16th or 32nd row). This would result in a beat matching effect, after which the module underneath would be faded out. Any tips?
Thanks in advance!
-Aki Latvamäki (http://latvamaki.bandcamp.com)
- alatvama asked 6 years ago
Hi, sorry for hijacking this thread, but I have a similar problem. I’m a total amateur when using FMOD.
In my case, I cannot start the two songs at the same time, since I might not know the next song (this foils the lockDSP option?).
An example situation is like this:
Sound 1 is created and is played.
Random amount of time goes by (think, playing through a level).
Sound 2 is created (new level, new bgm).
Need to wait for a defined row in Sound 1 (i.e. 16th or 32th row) before Sound 2 can be played, so the beat is matched.
I have been looking into sync points and callbacks, but I didn’t get the sync to work with TIMEUNIT_MODROWs. Though the same code worked fine with TIMEUNIT_MS (naturally with different values), so is it even possible to use TIMEUNIT_MODROW with sync points? Though this might not even be a good solution, since there might be latency issues in question.
Also looked into setDelay for setting a delay in starting the second sound, but I’m not quite sure on what to use as the delay… I know the start location of the second sound in MODROWs, but for the delay, I’d need it in ms. Is it possible to get the actual BPM and speed informations from the xm-file itself with FMOD? Since hardcoding the BPM&Speeds for all the xm-files would be rather odd.
So the question is, can a beat matching be done in this situation?
Any advice or tips is really appreciated!
- swoot answered 6 years ago
Please login first to submit.