Sound format

If you have suggestions on how to make the game better, post here. Preferred is to discuss the ideas until they mature into something worth implementing.

Sound format

Postby Derryck on Fri, 14th Aug 2009, 21:36

Hello everyone,

I just got an idea - what about a different sound format? I mean - .wav is not bad or anything, but it costs a lot of space, right? I have seen many games that are using .ogg instead. Could this happen in openBVE? It would save lots of space and maybe even downloading time...

Thanks for an eventual answer, regards
Derryck
Derryck
 
Posts: 22
Joined: Sat, 8th Aug 2009, 07:35

Re: Sound format

Postby sladen on Fri, 14th Aug 2009, 21:56

Derryck wrote:... using .ogg instead. Could this happen in openBVE?
You already can!

As it happens, the sound fies in the packaged .deb XCS and Class 323 versions included in Ubuntu are in Vorbis. They're recompressed from the "source" wave files at package build time, in order to cut the subsequent download by about 10MB; Note that you may need to play with the noise cutoff threshold during encoding, to ensure that the character of the intentional noise in the engine hum and thunder rumbles is not lost.

And just as with lossy JPEG images, remember to keep the lossless master versions around for editing, and only compress them at the last step (as above in the package build process).
sladen
 
Posts: 103
Joined: Wed, 15th Apr 2009, 23:56

Re: Sound format

Postby michelle on Fri, 14th Aug 2009, 22:39

Only WAV sounds are officially supported with openBVE 1. The reason is simple. Users would be required to have additional codecs to process other formats, which is not an official requirement at the moment.

See http://openbve.trainsimcentral.co.uk/develop/information_soundformats.html

I would therefore suggest against using potentially unsupported formats - although if you still want to do, you will need to inform users of the additional requirements and where to download them.

I would like to point out here that while currently ALUT is being used to load sounds - the fact that ALUT is deprecated and not supported on Mac OS X, it will likely be abandoned in the future in favor of custom sound loading plugins. Only a WAV loader is expected to ship with openBVE 2, while it is not impossible that OGG Vorbis support might follow some day.
User avatar
michelle
Site Admin
 
Posts: 1147
Joined: Mon, 14th Apr 2008, 20:36

Re: Sound format

Postby sladen on Fri, 14th Aug 2009, 23:20

michelle wrote:I would therefore suggest against using potentially unsupported formats
...and this is the key difference between something that is merely unsupported (and which might disappear at any time) but which people might like to use whilst it's available and working and something that is actively prevented by the presence of extra code checks.
sladen
 
Posts: 103
Joined: Wed, 15th Apr 2009, 23:56

Re: Sound format

Postby Openkwijiboenator on Tue, 8th Sep 2009, 13:32

It would be good to have a list of supported formats - that way there is potential to work on making other formats compatible with openBVE in the future.

.AAC anyone?
Openkwijiboenator
 
Posts: 16
Joined: Sun, 17th May 2009, 21:15

Re: Sound format

Postby Derryck on Wed, 23rd Sep 2009, 21:39

Greetings everyone,

as you have probably noticed, there are some sound issues that classes 163 and 362 have to deal with. Although motor sounds have been fixed today (they will be heard in the correct position and not at the end of train in the new release), I still can't find out why there are no rail sounds when riding. could anyone give me some advice? Please note that these sounds are in the following format: 22050 HZ, 16 bits, stereo, which according to
http://openbve.trainsimcentral.co.uk/de ... rmats.html
a supported format... any ideas?

Thank you,
Derryck
Derryck
 
Posts: 22
Joined: Sat, 8th Aug 2009, 07:35

Re: Sound format

Postby Derryck on Wed, 23rd Sep 2009, 22:43

sladen wrote:You already can!

As it happens, the sound fies in the packaged .deb XCS and Class 323 versions included in Ubuntu are in Vorbis. They're recompressed from the "source" wave files at package build time, in order to cut the subsequent download by about 10MB; Note that you may need to play with the noise cutoff threshold during encoding, to ensure that the character of the intentional noise in the engine hum and thunder rumbles is not lost.

And just as with lossy JPEG images, remember to keep the lossless master versions around for editing, and only compress them at the last step (as above in the package build process).


Okay, i have compressed the train audio files into ogg - but it still won't be played. Any suggestions? Please note that my WMP is able to play an ogg format...:shock:

Regards,
Derryck
Derryck
 
Posts: 22
Joined: Sat, 8th Aug 2009, 07:35


Return to Suggestion Corner

Who is online

Users browsing this forum: No registered users and 1 guest