if (!is3D)
instance.setProperty(FMOD.Studio.EVENT_PROPERTY.CHANNELPRIORITY, this.loop ? 256 : 100);
I am using FMOD to play sound effects and background music.
Currently, all sounds are being played from a single management system.
However, when multiple sound effects repeatedly play and stop, the background music sometimes stops as well.
I tried setting priorities, but the background music still gets interrupted.
Is FMOD not suitable for playing background music?
I have attached the full console log from the moment the scene starts, where the background music begins playing, followed by several sound effects, until the background music stops.
====================================
I thought you might need the fmod_editor.log as well, so I replayed the scene and attached the log, including the point where the background music unexpectedly stops.
Thank you for sharing the Log, it’s been very helpful!
I noticed that for looping 2D sounds, the priority is set to 256. If your intention is to assign the highest priority to these sounds, please note that priority system operates on a scale where 0 represents the highest priority and 256 the lowest.
To minimize the chances of a channel being stolen, you should assign it a lower priority value (0 for highest priority). Conversely, assigning a higher priority value (256) increases the likelihood of that channel being stolen when the system needs to free up resources.
I will also raise a task internally to update our documentation to make this less confusing. Thank you for bringing this to our attention.
Hope this helps, let me know if the issue persists.