Author Topic: What file formats can be used with extraSounds:  (Read 1365 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
What file formats can be used with extraSounds:
« on: August 14, 2023, 06:20:59 pm »
Do I need to use .wav or can other formats like FLAC also be used to add new sounds?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: What file formats can be used with extraSounds:
« Reply #1 on: August 14, 2023, 09:10:21 pm »
Do I need to use .wav or can other formats like FLAC also be used to add new sounds?

.ogg works fine. .mp3 doesn't. I don't know about .flac.

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: What file formats can be used with extraSounds:
« Reply #2 on: August 17, 2023, 01:16:24 am »
It appears that .flac sound files seem to work as well.

Is it a good idea to mix audio formats or should all sound files be the same type?

Example (Mixed):
Code: [Select]
extraSounds:
  - type: BATTLE.CAT
    files:
      68: Resources/Sound/OBJECT_ONE_Activate.flac
      69: Resources/Sound/OBJECT_TWO_Activate.wav
      70: Resources/Sound/OBJECT_TWO_Deactivate.wav
      71: Resources/Sound/OBJECT_THREE_Activated.flac

Example (Same):
Code: [Select]
extraSounds:
  - type: BATTLE.CAT
    files:
      68: Resources/Sound/OBJECT_ONE_Activate.wav
      69: Resources/Sound/OBJECT_TWO_Activate.wav
      70: Resources/Sound/OBJECT_TWO_Deactivate.wav
      71: Resources/Sound/OBJECT_THREE_Activated.wav
« Last Edit: August 17, 2023, 04:51:19 am by The Martian »

Offline Chuckebaby

  • Colonel
  • ****
  • Posts: 408
  • Chrysalis are people too
    • View Profile
Re: What file formats can be used with extraSounds:
« Reply #3 on: October 31, 2023, 02:00:22 am »
I can't help you on the compatibility issue but one thing I do know is audio.
FLAC is indeed higher quality than a compressed format such as Ogg/vorbis. However FLAC is 3 times the size as compressed formats such as Ogg.
To give you an example, a 3 minutes song for FLAC is approx 15MB where as a 3 minute song in Ogg is around 4MB.

I'm sure your not going to be racking up gigs of data in 3 second samples but it's just something to keep in mind when your mod size goes up.