# Playing random tracks in event instead of all

**URL:** <https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052>\
**Category:** Unreal Engine\
**Tags:** android, ue4\
**Created:** [April 3, 2023, 5:03am UTC](https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052 "2023-04-03T05:03:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fortyfourtech](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fortyfourtech](https://qa.fmod.com/u/fortyfourtech)\
**Post date:** [April 3, 2023, 5:03am UTC](https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052/1 "2023-04-03T05:03:45Z")

</div>

I have event for music and it has 7 tracks. Only 3 of them has probability to play so the rest is must always play. But in some conditions the event launches only one random track. On the next loop it can launch another random track. And after some time it can become normal.  
So the conditions are not trivial. I’m using level streaming in the project, don’t know yet if it’s important. But if I go straight to the level that contains that music it will play normally. If I load some another level first and then that level it can play music with one track. Or can play normally.  
Other levels contains other music with similar structure but none of them is faulty.  
Also when project is built for other platforms this behaviour is not appears. Only on android and only on that level.  
What can it be caused by?

UE4.27(Oculus fork)  
FMOD plugin 2.02.05

---

<div class="post-metadata">

**Author:** ![fortyfourtech](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fortyfourtech](https://qa.fmod.com/u/fortyfourtech)\
**Post date:** [April 3, 2023, 5:04am UTC](https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052/2 "2023-04-03T05:04:54Z")

</div>

There is logs but i understand nothing from it.

> **[adblog\_fmod(filtered).txt](https://drive.google.com/file/d/114uCgZZEibgppy8MjLFrcbXFXDdp9Daa/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 4, 2023, 1:03am UTC](https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052/3 "2023-04-04T01:03:28Z")

</div>

Hi,

Could I get a screenshot of how the event is set up in your FMOD Studio Project? Do you experience this behavior in Studio or is it just in PIE? Would it also be possible to get a packed project with the banks included uploaded to your profile to test on my side?  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/f/f7dd9c01cedb509c230f52b03c172babdfda5fd4.png)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/a/a79d36b41a05e4123c7af8f074794dd2acd410d8.png)  
To upload the package you will have to register a [project](https://fmod.com/profile#projects) with us.

---

<div class="post-metadata">

**Author:** ![fortyfourtech](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fortyfourtech](https://qa.fmod.com/u/fortyfourtech)\
**Post date:** [April 6, 2023, 4:13am UTC](https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052/4 "2023-04-06T04:13:58Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/e/ec0c10c77bfb84366d84745ca463b6b992286272.png)  
Here is problematic event. Only tracks 1, 6, 7 has probability to play, the rest plays always.  
This behavior not replicating in studio nor in PIE. Only in android build of the game.  
And I uploaded the package to my profile

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 11, 2023, 1:36am UTC](https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052/5 "2023-04-11T01:36:18Z")

</div>

Hi,

Unfortunately, the package you uploaded does not include your built banks. Could you reupload the package and make sure the `Banks` option is selected when packaging the project.

---

<div class="post-metadata">

**Author:** ![fortyfourtech](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fortyfourtech](https://qa.fmod.com/u/fortyfourtech)\
**Post date:** [April 14, 2023, 10:13am UTC](https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052/6 "2023-04-14T10:13:16Z")

</div>

I’m swear to god that Banks was selected

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/7bdf418c2586154bbeb61b7198053966e99e1961.png)

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 17, 2023, 6:35am UTC](https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052/7 "2023-04-17T06:35:25Z")

</div>

Hi,

Would it be possible to check your preferences and the output location of the built banks:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/9/9e5c66d68106d02dc47dbd86fe69efd391cc7f00.png)  
as if they are outside the studio project with will not be included in the package.  
Once that is cleared, rebuild all the banks with `Ctrl-F7` and upload the package again.

---

<div class="post-metadata">

**Author:** ![fortyfourtech](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fortyfourtech](https://qa.fmod.com/u/fortyfourtech)\
**Post date:** [April 17, 2023, 9:31am UTC](https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052/8 "2023-04-17T09:31:24Z")

</div>

You’re right. After rebuild the package file is much bigger. Still I didn’t include assets.  
Reuploaded the package.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 21, 2023, 5:04am UTC](https://qa.fmod.com/t/playing-random-tracks-in-event-instead-of-all/20052/9 "2023-04-21T05:04:44Z")

</div>

Hi,

Unfortunately, I was not able to reproduce the issue.  
Here you can see every time I trigger the event I get 4 voices for each of the audio tracks:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/82d025d0fd72c4451749cb4c7d17d7178e8e190b.png)

Could you set the priority ([FMOD Studio | Event Macros Drawer Reference - Priority](https://fmod.com/docs/2.02/studio/event-macro-controls-reference.html#priority)) of the event to `Highest` it may be the events are being `Virtualized` unwantedly. Alternatives you could also `Connect Live Update` and run a profiler session ([FMOD Studio | Profiling](https://fmod.com/docs/2.02/studio/profiling.html#recording-a-new-session)) like I have to make sure that all 4 voices are being created each time the event is triggered. [Unreal Integration | Editing During Live Update - Unreal](https://fmod.com/docs/2.02/studio/editing-during-live-update.html#initializing-live-update-in-the-fmod-for-unreal-engine-integration).

Hope this helps!
