Apologies for the earlier confusion, I shared the incorrect link. I intended to reference Channel::setPriority to illustrate the priority scale:
Your approach of setting the priority on the
EventInstance
is appropriate.
If the code is not working as expected, have you considered adjusting the Event’s Priority directly within FMOD Studio? You can find this setting on the master track of the event:
Additionally, based on the log you provided, I have noticed some ERR_CHANNEL_STOLEN
errors related to the Spider_Level
sound, which could be causing the background music to stop.
Have you considered increasing both the Virtual Channel Count
and Real Channel Count
, or setting the Max Instances
property for the background music event?
A similar discussion can be found here: Err_channel_stolen - #2 by jeff_fmod