Author Topic: Enhanced in-mission sound (128 audio channels) (Committed)  (Read 1822 times)

0 Members and 1 Guest are viewing this topic.

Offline jg18

  • A very happy zod
  • 210
  • can do more than spellcheck
Enhanced in-mission sound (128 audio channels) (Committed)
Here are experimental, very alpha builds with enhanced in-mission sound, using up to 128 audio channels.

Feedback is much appreciated. :) This project is part of my rehabilitation after having gone legally blind several months ago, so please be patient with me.

Missions with dense soundscapes, like the Mantis 2266 test mission that's attached to that issue, are where you will hear the biggest difference.

Windows

IMPORTANT: OpenAL Soft is required. Download this OpenAL32.dll file (version 1.16.0) and put it in your FS2 folder (and also wxLauncher/\bin folder if you use wxLauncher). If you'd like to get the .dll from its original source, see the notes at the end of this post.

Download FSO builds for Windows.

Linux

Linux users should be good to go for OpenAL Soft, although getting the latest version of OpenAL Soft available from your distro's repository  (or even getting the latest version from source from the OpenAL Soft website) wouldn't be a bad idea.

Patch for Linux and others interested is attached to this post.

OS X

See this thread for OS X builds with OpenAL Soft.


Special thanks to niffiwan for doing some preliminary testing.



Optional notes:

To get the OpenAL Soft Windows .dll yourself, go to the OpenAL Soft website, get the latest -bin.zip file (current as of writing is openal-soft-1.16.0-bin.zip), unzip the archive, rename the file bin\Wind32\soft_oal.dll to OpenAL32.dll, then copy the .dll to your FS2 folder (and wxLauncher\bin\ folder if you use wxL)

EDIT: Forgot to attach the patch.

EDIT 2: I used trunk revision 11162.

EDIT 3: Updated title to indicate work has been merged.

« Last Edit: June 17, 2015, 06:27:01 pm by jg18 »
wxLauncher 0.10.1 beta now available! Toggle FRED launching with F3! | wxLauncher 2.0 Request for Comments
Hey mod authors! Did you know you can customize wxL's recommended lighting preset through your mod.ini? Check it out!

 

Offline jg18

  • A very happy zod
  • 210
  • can do more than spellcheck
Re: Enhanced in-mission sound (128 audio channels) (Committed)
:bump:

A revised version of this work was merged into master on June 1, 2015 as of commit d7f54dd. I've updated the wiki with a description, including instructions on how modders can take advantage of enhanced sound.

http://www.hard-light.net/wiki/index.php/Enhanced_sound

Enhanced sound is enabled by default if you are using OpenAL Soft. The wiki article describes how to get OpenAL Soft for anyone interested.

I am still working on OpenAL Soft support for OS X.

EDIT: Fixed title.
« Last Edit: June 09, 2015, 02:48:27 am by jg18 »
wxLauncher 0.10.1 beta now available! Toggle FRED launching with F3! | wxLauncher 2.0 Request for Comments
Hey mod authors! Did you know you can customize wxL's recommended lighting preset through your mod.ini? Check it out!

 
Re: Enhanced in-mission sound (128 audio channels) (Committed)
Awesome news  :yes:

 

Offline jg18

  • A very happy zod
  • 210
  • can do more than spellcheck
Re: Enhanced in-mission sound (128 audio channels) (Committed)
Thanks!

Updated OP with link to thread with OpenAL Soft test builds for OS X.
wxLauncher 0.10.1 beta now available! Toggle FRED launching with F3! | wxLauncher 2.0 Request for Comments
Hey mod authors! Did you know you can customize wxL's recommended lighting preset through your mod.ini? Check it out!

 

Offline Yarn

  • 210
Re: Enhanced in-mission sound (128 audio channels) (Committed)
Does the OpenAL Soft requirement exist solely to ensure that 128 channels are available, or does the enhanced sound code utilize OpenAL Soft features that not even hardware renderers (such as some Sound Blaster cards) can provide?
"Your fighter is running out of oil.  Please check under the hood and add more if necessary"
--strings.tbl, entry 177

"Freespace is very tired.  It is shutting down to get some rest."
--strings.tbl, entry 178

 

Offline jg18

  • A very happy zod
  • 210
  • can do more than spellcheck
Re: Enhanced in-mission sound (128 audio channels) (Committed)
It's primarily to ensure that 128 channels are available, although in theory, enhanced sound could make use of OpenAL soft's other features.
wxLauncher 0.10.1 beta now available! Toggle FRED launching with F3! | wxLauncher 2.0 Request for Comments
Hey mod authors! Did you know you can customize wxL's recommended lighting preset through your mod.ini? Check it out!

 

Offline Yarn

  • 210
Re: Enhanced in-mission sound (128 audio channels) (Committed)
I did a quick Google search to see whether it's possible get the number of channels supported by an OpenAL renderer, and it appears that there isn't a good way of doing so--a big oversight in the design of OpenAL if you ask me. Oh well, at least OpenAL Soft works quite well.
"Your fighter is running out of oil.  Please check under the hood and add more if necessary"
--strings.tbl, entry 177

"Freespace is very tired.  It is shutting down to get some rest."
--strings.tbl, entry 178

 

Offline jg18

  • A very happy zod
  • 210
  • can do more than spellcheck
Re: Enhanced in-mission sound (128 audio channels) (Committed)
Yeah, it really is unfortunate and I have no idea why they did things that way. Ah well, as you said, OpenAL Soft works pretty well at least.
wxLauncher 0.10.1 beta now available! Toggle FRED launching with F3! | wxLauncher 2.0 Request for Comments
Hey mod authors! Did you know you can customize wxL's recommended lighting preset through your mod.ini? Check it out!