Comments on: We Have FMOD Documentation https:/2017/05/we-have-fmod-documentation/ Developer resources for the X-Plane flight simulator Sat, 13 May 2017 14:24:06 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Daniela Rodriguez Careri https:/2017/05/we-have-fmod-documentation/#comment-20011 Sat, 13 May 2017 14:24:06 +0000 http://developer.x-plane.com/?p=7684#comment-20011 In reply to Ben Supnik.

Totally makes sense, thanks!

]]>
By: Ben Supnik https:/2017/05/we-have-fmod-documentation/#comment-20010 Sat, 13 May 2017 13:56:36 +0000 http://developer.x-plane.com/?p=7684#comment-20010 In reply to Daniela Rodriguez Careri.

Hi Daniela,
1. When the aircraft is a _user_ aircraft, yes, by design. With the Cessna this didn’t require inside-ratio attenuation; the combination of the fall-off ratio on the sounds and the engine noise was enough. Technically if your’e outside your aircraft with the door open and the engine off, I’d expect you might here a sound in the cockpit if it’s loud enough.

2. You cannot use more than one start/end condition. The dataref logic is limited – if you really need something complex you can use a script-driven dataref. Most of our newer aircraft have XLua embedded so we can get simple derived logic easily.

PS I think Tyler may have finished and Chris is testing it now.

]]>
By: Daniela Rodriguez Careri https:/2017/05/we-have-fmod-documentation/#comment-20009 Sat, 13 May 2017 13:41:42 +0000 http://developer.x-plane.com/?p=7684#comment-20009 Ben, two quick questions:

1. Is it possible that sounds that are routed into the `Interior` bus are nevertheless heard from the outside of the aircraft? Is that an intended behavior? That would mean that in order to hear those exclusively on the interior, we’ll have to add a snapshot to isolate them using `inside_ratio`.

2. The docs don’t specify if you can use more than one EVENT_START_COND or EVENT_END_COND. If that’s legal, what’s the logic? (and/or).

PS: Insert here obligatory nag about the starter project 🙂

]]>
By: Todd https:/2017/05/we-have-fmod-documentation/#comment-20002 Fri, 12 May 2017 23:25:06 +0000 http://developer.x-plane.com/?p=7684#comment-20002 In reply to Ben Supnik.

Okay, I get it now. I was thinking that you had to name it with the dataref followed by the range (all in the name). It makes sense that it uses the range from the properties.

Thanks!

]]>
By: Ben Supnik https:/2017/05/we-have-fmod-documentation/#comment-20001 Fri, 12 May 2017 22:57:28 +0000 http://developer.x-plane.com/?p=7684#comment-20001 In reply to Todd.

It’s not syntax. When you edit a parameter in FMOD, the numeric range are fields you fill in in the properties dialog box for the parameter. The only “text” you have to type in is the dataref name itself, similar to what you might have in an OBJ file or in some of the lighting fields in Plane-Maker.

]]>
By: Todd https:/2017/05/we-have-fmod-documentation/#comment-19998 Fri, 12 May 2017 21:27:21 +0000 http://developer.x-plane.com/?p=7684#comment-19998 “To use a dataref as a sound, simply add a custom parameter to your FMOD event and set its name to the dataref you’d like to use. Make sure to set the minimum and maximum to correlate the dataref’s range to FMOD.”

This may sound stupid, but better to ask than to guess. What exactly is the syntax for this as far as adding the range?

]]>
By: Ben Supnik https:/2017/05/we-have-fmod-documentation/#comment-19929 Tue, 09 May 2017 13:02:35 +0000 http://developer.x-plane.com/?p=7684#comment-19929 In reply to Michael P.

Loading two Cessnas is not a problem. The sim recognizes the _same_ plane twice and avoids the double-load. It’s when you _copy_ that bank file that you get hosed.

]]>
By: Michael P https:/2017/05/we-have-fmod-documentation/#comment-19925 Tue, 09 May 2017 11:02:03 +0000 http://developer.x-plane.com/?p=7684#comment-19925 In reply to Ben Supnik.

Ben,
I’m not a developer but just curious about something from your post.
Does this mean that FMOD will stop me loading 2 copies of the C172 as AI planes? This seems it would duplicate those master buses.

]]>
By: Steve.Wilson https:/2017/05/we-have-fmod-documentation/#comment-19921 Tue, 09 May 2017 00:15:49 +0000 http://developer.x-plane.com/?p=7684#comment-19921 In reply to Mario Donick.

Appreciate the lecture material, Mario, RE pro development.

However, for the FMOD aspect of X-Plane for *hobbyists,* payware sounds or recording same can be a burden too far.

Glad to hear at least the stock aircraft will eventually be updated to FMOD specs. I do hope that will be the case relatively early in the XP11 run.

Stock sounds can always be tweaked with the likes of Goldwave or Audacity to suit the tastes of a hobbyist or freeware developer, which is where my posts in this regard come from. Then again, how would I record XB-70 sounds if I ever wanted to release a payware XB-70?

]]>
By: Ben Supnik https:/2017/05/we-have-fmod-documentation/#comment-19920 Mon, 08 May 2017 23:24:57 +0000 http://developer.x-plane.com/?p=7684#comment-19920 In reply to Ulrich.

FMOD Studio uses GUIDs to refer to all of its internal objects, including banks and all sound objects (events, buses, etc.). The GUIDs allow you to put a sound in two banks and not have it be loaded twice.

The uniqueness has to be handled differently in two cases:
– The buses in your master bank MUST match ours, so that they are not loaded a second time; if the master bus were to be loaded a second time, FMOD would fail internally because it can support only one master bus per program. If the various sub-buses were loaded a second time, your sounds wouldn’t be piped into our buses and the sound volume sliders wouldn’t work.

So the buses have to all match GUIDs. Buuuuuuuut…

– The master bank must be unique – otherwise when we load two planes, we get a failure to load the bank due to a duplicate GUID! This is why people cloning the C172 sound into other aircraft get a hard crash if the C172 becomes an AI for their aircraft.

Since some GUIDs must match and some must be different, we’re automating the edit process of producing correct banks..this should prevent user error, some of which can be hard to detect until it’s too late.

]]>