Ludeon Forums

RimWorld => Mods => Help => Topic started by: tangerinemusiclabs on July 29, 2016, 01:34:55 AM

Title: What sound file codecs/formats does Rimworld support?
Post by: tangerinemusiclabs on July 29, 2016, 01:34:55 AM
Hi all, I've recently made a mod called Ambient Jams that adds extra music to the game's soundtrack.  Unfortunately I've been having issues with the songs not playing all the time which I think is related to the codec I'm using.

Is there a documentation somewhere that lists the recommended/supported sound formats on there?  There's .OGG, .MP3, and .WAV I know, but more specifically, I need the bit-rate, if it's CBR/VBR, and sample rate, etc.  I'm trying to keep the file size of the mod itself as low as possible, as well.
Title: Re: What sound file codecs/formats does Rimworld support?
Post by: RawCode on July 29, 2016, 02:25:53 AM
Rimworld supports nothing.

It's all about unity version 5, you can find unity 5 documentation on it's web site.
Title: Re: What sound file codecs/formats does Rimworld support?
Post by: tangerinemusiclabs on July 29, 2016, 05:45:22 PM
Yes, this thing, right?  Unfortunately it's still not enough info -- it doesn't say anything about bit-rate and constant vs. variable encoding, etc.

https://docs.unity3d.com/Manual/AudioFiles.html

Looking at how the engine works, though, it seems that it keeps these audio files into memory so the problem might be that it's conflicting with other processes as part of the game.  (The files are relatively large.)  I suppose I'll have to experiment with using lower quality audio.
Title: Re: What sound file codecs/formats does Rimworld support?
Post by: 1000101 on July 29, 2016, 07:37:21 PM
Actually, RimWorld uses NAudio (https://naudio.codeplex.com/) and NVorbis (https://nvorbis.codeplex.com/) for audio.  So it's what that set of libraries supports.
Title: Re: What sound file codecs/formats does Rimworld support?
Post by: tangerinemusiclabs on July 31, 2016, 03:25:02 PM
Quote from: 1000101 on July 29, 2016, 07:37:21 PM
Actually, RimWorld uses NAudio (https://naudio.codeplex.com/) and NVorbis (https://nvorbis.codeplex.com/) for audio.  So it's what that set of libraries supports.

Awesome!  That's the info I was looking for.  This'll make conversion much easier. :)  Thanks for the help!