0
0

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)

  • You must to post comments
0
0

You would need to ensure both files start during the same mix block, you can do this either by wrapping the playSound calls in a System::lockDSP or using Channel::setDelay with the same start delay for both sounds.

  • You must to post comments
0
0

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:

[list:1avt4kxb]
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.
[/list:u:1avt4kxb]

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!

-Pete Aura

  • You must to post comments
0
0

It seems we are trying to achieve similar thing with Pete.

Also in my case it is not an option to start the modules at the same time as the player might take a different direction within the game.

Ideas anyone?

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.