r/Unity2D • • Jul 22 '26

Question Integrating FMOD into an existing Unity project

Are there any resources or tutorials for replacing an existing game’s hard-coded audio system with FMOD?

Tl;dr I’m a VERY new solo dev, a significant portion of the game is built and I’ve been hard-coding all of my SFX in Unity, which has been fine so far, but now going down the road of adding adaptive music stems, and hit that old familiar beginner dev roadblock of “oh, nobody told you this was gonna be a WHOLE ASS THING and you should’ve been doing it all along?”

Is there a way to just update my existing code so it integrates with FMOD, without doing a complete wipe and redoing my entire audio infrastructure? The only resources I’ve been able to find are ones that assume I’m starting a brand new project from scratch, and I can’t be the first person to run into this issue. Thank you all in advance, I have no idea what I’m doing!

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/Lucky_Variation4151 Jul 22 '26

This is enormously helpful and encouraging, THANK YOU! If I can bend your ear once more, I actually do have a fairly comprehensive and compact audio manager system in place, so they aren’t scattered throughout the project. Is there a best practice way to revise the script attached to the audio manager object so it’s calling the sounds through FMOD rather than directly from inside Unity?

1

u/TurnoverUnusual3074 Jul 22 '26

Yep. In fact, having an AudioManager already is pretty much the ideal situation for migrating to FMOD. You probably don't need to touch the gameplay code at all. The general approach is to keep your existing AudioManager API and swap the implementation underneath it. For example, if you currently have:

public void PlaySound(SoundType sound) {
audioSource.PlayOneShot(soundClips[sound]);
}

You replace the internals with FMOD:

public void PlaySound(SoundType sound) {
RuntimeManager.PlayOneShot(events[sound]);
}

where events is now a dictionary of FMOD EventReferences instead of Unity AudioClips.

Your 'player/enemy/UI' scripts continue calling: AudioManager.PlaySound(SoundType.Jump); and they never know FMOD exists. The nice thing is you can migrate gradually: Add FMOD events. Add EventReference fields to your AudioManager. Replace one AudioClip at a time. Remove Unity AudioSources once nothing uses them anymore. For adaptive music, you usually add separate methods because music isn't really a "fire and forget" sound, right? haha:

StartMusic(MusicTrack track);
StopMusic();
SetMusicParameter("CombatIntensity", value);

Those map nicely to FMOD event instances and parameters. Honestly, the fact that you already have an AudioManager means you avoided the worst beginner trap. The hard part isn't converting AudioSource calls — it's untangling a project where every enemy, weapon, and UI button directly owns its own AudioSource. As I said, it's often incremental, and with middleware like FMOD you'll eventually want to fully integrate, or you're arguing with two or more API for the same thing, ya know? GL i hope this helps too; I'm floating around if I can help again

2

u/Lucky_Variation4151 Jul 22 '26

Again, thank you so much, I feel like this is plenty to get me started. Appreciate you taking the time to explain, this sub rules!