Better audio format for sound effects
Moderator: Moderators
Better audio format for sound effects
WAV format is ridulous in this day and age. nuff said. Since you don't want to use proprietary formats, how about OGG? That's cross-platform from what I know.
- SwiftSpear
- Classic Community Lead
- Posts: 7287
- Joined: 12 Aug 2005, 09:29
- Tim Blokdijk
- Posts: 1242
- Joined: 29 May 2005, 11:18
Re: Better audio format for sound effects
Well, what is there to say, I agree.Caydr wrote:WAV format is ridulous in this day and age. nuff said. Since you don't want to use proprietary formats, how about OGG? That's cross-platform from what I know.
Audacity is a fine GNU GPL cross-platform sound editor.
Supports OGG, MP3 and WAV.
I think if we're to support a new sound format, it should be ogg + mp3, with WAV for backwards. Those 3 are the most used of all the formats I am aware of anywhere be ti in games, general programs etc....
That and it gives us the necessary ability to implement the sound switcher implementation Warlord proposed for dynamic music. I wouldnt wanna convert all my mp3's to ogg to play them in spring, nor would my stepdad be happy about having 2 copies of every song in a different format on his hardrive, or ym sisters having to deal with a new format and demanding I put them all back to mp3 format etc....
That and it gives us the necessary ability to implement the sound switcher implementation Warlord proposed for dynamic music. I wouldnt wanna convert all my mp3's to ogg to play them in spring, nor would my stepdad be happy about having 2 copies of every song in a different format on his hardrive, or ym sisters having to deal with a new format and demanding I put them all back to mp3 format etc....
- GrOuNd_ZeRo
- Posts: 1370
- Joined: 30 Apr 2005, 01:10
Wav is the sound format easiest to edit. All sound fiddling prgm can handle .wav. And the way it's written inside the file make it the most easier to write program from. It probably also ease Spring loading time that wav are so simple.
Also, Spring sounds are usually very short, less than 1 sec. I'm not fully certain we can really take advantage of the new compression algorithm on such short sounds clips.
Lastly, since mods come packed in zip of 7-zip, the larger size of wav isn't an issue. Althought 7-zip and zip aren't optimised for sounds files, they still reduce alot the filesize of sounds.
Overall, I'm not opposed to new sound format being used, but I'd like to hear some informed fact about what benifit it'll have (I can only see reduced filesize now), and what drawback it'll have (besides Spring dev time, I imagine there'll some performance loss due to the sound decompression algorithm, but have no idea if it'll really be noticeable). And obviously wav should still be suported, but that goes without saying.
Also, Spring sounds are usually very short, less than 1 sec. I'm not fully certain we can really take advantage of the new compression algorithm on such short sounds clips.
Lastly, since mods come packed in zip of 7-zip, the larger size of wav isn't an issue. Althought 7-zip and zip aren't optimised for sounds files, they still reduce alot the filesize of sounds.
Overall, I'm not opposed to new sound format being used, but I'd like to hear some informed fact about what benifit it'll have (I can only see reduced filesize now), and what drawback it'll have (besides Spring dev time, I imagine there'll some performance loss due to the sound decompression algorithm, but have no idea if it'll really be noticeable). And obviously wav should still be suported, but that goes without saying.
Well, I was thinking mainly about explosion, guns firing, vehicle humming, which have to be short, because so many can be heard at once.
For music, the problem is clearly different, and I agree that wav should not be used for music. It's just the last time I checked there was no music in Spring and no plan (besides forum talk) to add some.
For music, the problem is clearly different, and I agree that wav should not be used for music. It's just the last time I checked there was no music in Spring and no plan (besides forum talk) to add some.
.wav files are used because they require zero processing to decompress them into a usable state(that is it is trivial to code and thus easy), and since they are normlal ultra short for most in-game sounds this is perfectly fine.
The only reasonable sound library to use is fmod, it is free for freeware and more importantly is a bloody good sound library. It can also handle most types of audio files too.
The only reasonable sound library to use is fmod, it is free for freeware and more importantly is a bloody good sound library. It can also handle most types of audio files too.
From what I read so far
- - for the short sounds there is still no argument why anything different than the wav would be better (besides size and the gain in size would be a loss of speed so it is not a clear gain)
- - for the music I do not think anybody suggested wav anyway, but I would say that there are many other important things. Usually I turn off the game music anyway and use my own.