Jump to content

Help with audio in part configs...


Recommended Posts

I'm working on my first KSP mod, and I thought it might be cool to include some custom engine sounds. I got them to play, but now I'm stuck on working out how they're controlled by the config (for the record, I started with a Squad config for the turbojet and have modified it to fit my part). Here's what the section for the running thrust looks like right now...


AUDIO
{
channel = Ship
clip = FlightPathDev/sounds/large_thrust
volume = 0.0 0.0
volume = 0.5 0.5
volume = 1.5 1.5
pitch = .7 .7
pitch = 1.2 1.2
loop = true
}

The problem is, since the config file isn't commented, I haven't been able to work out exactly what these numbers control.

Link to comment
Share on other sites

The first number is an arbitrary value that the part module controlling the sound sends the sound module. The second is the actual pitch or volume of the sound for that value that's sent. It interpolates the rest. So to make UT quieter at full volume, you'd change to:

volume = 1.5 1.1

Similarly for the pitch, and all values in between are interpolated. Hope that makes sense?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...