Jump to content

Recommended Posts

Use the WAV file format

 

Finding that sounds for your mod are silent in game but work in FMOD? Well it might be due to the file format of those sounds. Just spent at least 2 hours trying to figure out why my custom audio wasn't working with my current mod. It seems the game engine for DS does not like playing MP3 files, but WAV files are fine (I used Audacity to convert). I probably should've known better since WAV is universally supported, but lesson learned.

 

The path to your sound is the internal path in the FMOD project

 

The tutorials confused me a little bit about paths, remapping, etc... it turns out the path you need to use is the internal path FMOD has for that particular event which can be gotten using "Copy Path" by right clicking the event.

 

Example Path: tunnel/common/close

Example Code: inst.SoundEmitter:PlaySound("tunnel/common/close")

 

List .fev and .fsb files as assets

 

This can be done at the top of prefabs or other files, in the case of this example I put this at the top of my prefab for a module called 'tunnel.lua' and actually played the sounds in a stategraph file, but you can play the sound from the prefab or whatever as well as well.

 

Example Code

Assets = {    Asset("ATLAS", "images/inventoryimages/tunnel.xml"), --Ignore this bit     Asset("SOUNDPACKAGE", "sound/tunnel.fev"), --These get 'built' by FMOD    Asset("SOUND", "sound/tunnel.fsb"), --These get 'built' by FMOD}
Edited by nossr50

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...