# Tracks not syncronized

**URL:** <https://qa.fmod.com/t/tracks-not-syncronized/13297>\
**Category:** Unreal Engine\
**Created:** [July 17, 2017, 3:02pm UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297 "2017-07-17T15:02:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdzGames](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tdzGames](https://qa.fmod.com/u/tdzGames)\
**Post date:** [July 17, 2017, 3:02pm UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/1 "2017-07-17T15:02:30Z")

</div>

Hi!

I have some soundtracks in the game and they are setup as follows:  
 ![enter image description here](https://lh3.googleusercontent.com/KvM-oRklp_dYFHLH2QSEhWkQN2p4_N6Ek7D8einSnQGLmEBVTy_VEuPjRs7i_uLhuA6CK2b2cvcW9h4=w1600-h832-rw)

I just call the event and play with the parameters in the game.  
However, sometimes the tracks go out of sync. Since it is music, even a little sync problem feels _really_ off.

I came across this post: [http://www.fmod.org/questions/question/layers-going-out-of-sync/](http://www.fmod.org/questions/question/layers-going-out-of-sync/)

And tried the following solutions:  
 ![enter image description here](https://lh6.googleusercontent.com/2Wh0E4bdFsEV4kncncs-03N375jY12P-C3f5ODuAyWaMOQfelmtb2LYciX8S8YpNvMIMAaKxhtvIGTQ=w1600-h832)

And  
 ![enter image description here](https://lh6.googleusercontent.com/sNJSGSC_Q3uIgN9nDcaerlkON7ttKEAEWA2J23OSrQCtx7yrDzd8d5YWhBgKTewCY-rdTClZ8viuJ7Y=w1600-h832-rw)

(I tried calling LoadEventsData at the game instance’s Init Game, at every level start and both)

However nothing fixed the problem.

What can I go to fix this problem?

Thanks,  
Dan Zaidan

---

<div class="post-metadata">

**Author:** ![Andrew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/andrew/32/261_2.png) [@Andrew](https://qa.fmod.com/u/Andrew)\
**Post date:** [July 18, 2017, 1:40am UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/2 "2017-07-18T01:40:04Z")

</div>

What FMOD version and UE4 version are you on? And what platform(s) are you seeing this problem on?

---

<div class="post-metadata">

**Author:** ![tdzGames](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tdzGames](https://qa.fmod.com/u/tdzGames)\
**Post date:** [July 18, 2017, 1:50am UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/3 "2017-07-18T01:50:31Z")

</div>

> [@](#):
>
> What FMOD version and UE4 version are you on? And what platform(s) are you seeing this problem on?

Hi Andrew, thanks for answering.

I’m using UE4.16 (built from source).  
I downloaded the FMOD integration from Git Hub when the 4.16 update was made, so I’m not sure what version is that (how can I check?).  
I can hear this problem in both Windows and PS4 (the two platforms I test my game on).

Thanks.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [July 18, 2017, 4:36am UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/4 "2017-07-18T04:36:54Z")

</div>

You can check the version in Unreal Editor by going to the Help menu then “About FMOD Studio”.

My first suggestion would be to update to the latest integration (1.09.06) which now has an optional download for UE4.15 or UE4.16, as well as a number of other fixes.

---

<div class="post-metadata">

**Author:** ![tdzGames](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tdzGames](https://qa.fmod.com/u/tdzGames)\
**Post date:** [July 18, 2017, 11:48am UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/5 "2017-07-18T11:48:36Z")

</div>

Hi Cameron.

It says build version: 1.09.04 and DLL version 1.09.04

Now that I think of it, I’m not building using the FMOD studio version 1.09.04. Hopefully that is the problem?

I’m going to try and build with a 1.09.04 version and if it doesn’t work, I’ll update the engine integration to 1.09.06.

Thanks!

---

<div class="post-metadata">

**Author:** ![tdzGames](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tdzGames](https://qa.fmod.com/u/tdzGames)\
**Post date:** [July 18, 2017, 12:15pm UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/6 "2017-07-18T12:15:50Z")

</div>

I have some (good?) news.

The event when played inside FMOD Studio 4.09.04 sound exactly like when built in Unreal, with the synchronization problem.

Here is a video of the same event being played inside FMOD 4.08.00 and 4.09.04.

What could possibly be the reason for this problem?

---

<div class="post-metadata">

**Author:** ![tdzGames](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tdzGames](https://qa.fmod.com/u/tdzGames)\
**Post date:** [July 18, 2017, 12:42pm UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/7 "2017-07-18T12:42:24Z")

</div>

Okay, so based on this page: [http://www.fmod.org/questions/question/fmod-layers-loop-perfectly-in-fmod-but-are-slightly-out-of-sync-once-the-file-is-played-in-unity/](http://www.fmod.org/questions/question/fmod-layers-loop-perfectly-in-fmod-but-are-slightly-out-of-sync-once-the-file-is-played-in-unity/)

I managed to do a hack and disable the stream option for all the music modules.

I would still like to know what might actually be the problem that the music can’t stream properly because having a 3-minute multi-track music not stream is not a good idea to have in the final game!

---

<div class="post-metadata">

**Author:** ![tdzGames](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tdzGames](https://qa.fmod.com/u/tdzGames)\
**Post date:** [July 18, 2017, 5:30pm UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/8 "2017-07-18T17:30:48Z")

</div>

Well, now my game is randomly crashing on the PS4.  
I guess it can’t handle the extra memory…

---

<div class="post-metadata">

**Author:** ![tdzGames](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tdzGames](https://qa.fmod.com/u/tdzGames)\
**Post date:** [July 18, 2017, 7:09pm UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/9 "2017-07-18T19:09:44Z")

</div>

Based on this thread’s third solution: [http://www.fmod.org/questions/question/fmod-layers-loop-perfectly-in-fmod-but-are-slightly-out-of-sync-once-the-file-is-played-in-unity/](http://www.fmod.org/questions/question/fmod-layers-loop-perfectly-in-fmod-but-are-slightly-out-of-sync-once-the-file-is-played-in-unity/)

What should I set the Schedule delay to? In what units does it operate?

Edit: Setting it to 100 didn’t solve the problem.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [July 19, 2017, 1:18am UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/10 "2017-07-19T01:18:08Z")

</div>

This probably needs some better documentation as it isn’t very clear.  
The units the schedule delay uses is dsp clocks, still not very helpful.

The default streaming schedule delay is 8192, so to increase the delay you would need to start at 8192 + X. Values for X around 2048 have been found to help.

---

<div class="post-metadata">

**Author:** ![tdzGames](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tdzGames](https://qa.fmod.com/u/tdzGames)\
**Post date:** [July 20, 2017, 2:36pm UTC](https://qa.fmod.com/t/tracks-not-syncronized/13297/11 "2017-07-20T14:36:33Z")

</div>

Hi Cameron.

Thanks for clearing that up!  
It solved the problem! (Though I had to set it to 20480 and not 10240 like you suggested).

Anyways, thanks for the help. o/
