Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Kernal on August 23, 2006, 04:29:21 pm

Title: OpenAL
Post by: Kernal on August 23, 2006, 04:29:21 pm
What versian of it do you guys use? I accendently screwed my original so I redownloaded it again and I got the newest version. Now for some reason the sound doesn`t sound right.

I`m useing R6.
Title: Re: OpenAL
Post by: karajorma on August 23, 2006, 04:44:17 pm
http://developer.creative.com/articles/article.asp?cat=1&sbcat=31&top=38&aid=46

That's the link I generally give out. It comes straight from the OpenAL downloads page so it's likely to be the newest one unless they've updated in the last few weeks.
Title: Re: OpenAL
Post by: Trivial Psychic on August 23, 2006, 08:06:04 pm
Was most recently updated Jul. 14th 2006.
Title: Re: OpenAL
Post by: karajorma on August 24, 2006, 04:18:50 am
In that case go to www.openal.org and grab the latest version from the downloads section. You want the installer not the SDK.
Title: Re: OpenAL
Post by: CP5670 on August 24, 2006, 06:15:53 am
They just link to the Creative site over there. The 7/14 version is the latest one as far as I know.
Title: Re: OpenAL
Post by: Freespace Freak on August 24, 2006, 08:48:29 am
What is OpenAL and more importantly, why do I need it?  I downloaded the 3.6.9 candidate and it came up with an error saying I needed OpenAL 1.1 or higher to operate it.  So I downloaded it, and it still came up with that error.  Then when I actually launched the game, there was no audio. 

And what about OpenGL, too.  What does it do and is it necessary?
Title: Re: OpenAL
Post by: Wobble73 on August 24, 2006, 08:52:30 am
I believe, and please Kara, Goober, anyone correct me if I'm wrong, but OpenAL is a library of Audio Codecs and OpenGL is a library of Graphical codecs?? You should always use OpenGL for FS Open as DirectX is now unsupported by the community, (Partially because no-one here no longer knows how to code for it)
Title: Re: OpenAL
Post by: karajorma on August 24, 2006, 09:50:35 am
Codec isn't the right word but as far as a layman needs be concerned you're in the right area with the rest of it.

Basically OpenAL and OpenGL are a way for coders to program for FS2_Open without having to worry about what hardware the computer is running on. OpenAL handles sound and OpenGL handles graphics. Coders program in a way that one of the two understand and then it's their job to make sure that the hardware understands what we want to do.

Direct X and Direct Sound are the MS equivalent of GL and AL but they only work on Windows. GL and Al are crossplatform.
Title: Re: OpenAL
Post by: Freespace Freak on August 24, 2006, 09:59:41 am
Codec isn't the right word but as far as a layman needs be concerned you're in the right area with the rest of it.

Basically OpenAL and OpenGL are a way for coders to program for FS2_Open without having to worry about what hardware the computer is running on. OpenAL handles sound and OpenGL handles graphics. Coders program in a way that one of the two understand and then it's their job to make sure that the hardware understands what we want to do.

Direct X and Direct Sound are the MS equivalent of GL and AL but they only work on Windows. GL and Al are crossplatform.

So, if I have Windows XP, then I don't need to use it.  When I istalled 3.6.9 it told me I needed Open AL version 1.1 or higher.  I installed it, but it still gave me that message.  I took away 3.6.9, changed my launcher to 5.3 (instead of 5.4) installed 3.6.7 and the problem dissappeared.  Any thoughts, Kara?
Title: Re: OpenAL
Post by: karajorma on August 24, 2006, 11:23:07 am
You need to use it on any operating system which runs FS2_Open. It's basic requirement for anything after 3.6.7. You can get away with using Direct 3D instead of OpenGL on Windows (if you're lucky) but the game ignores DirectSound in favour of OpenAL.

The reason why it didn't work for you is because you probably have old OpenAL drivers installed by your soundcard or motherboard. This post (http://www.hard-light.net/forums/index.php/topic,37811.msg771231.html#msg771231) explains what you should be looking out for (although it's a little old now)
Title: Re: OpenAL
Post by: Freespace Freak on August 24, 2006, 08:49:30 pm
Disaster!  I went to that site, I downloaded the OpenAL1.1 Installer for Windows and the SDK for good measure.  I upgraded the driver on my soundcard (witch is the Realtek AC'97) to the latest version (released 7/7/06) and the launcher still tells me that I need OpenAL 1.1 or higher!   :mad:


Title: Re: OpenAL
Post by: taylor on August 24, 2006, 10:05:33 pm
Disaster!  I went to that site, I downloaded the OpenAL1.1 Installer for Windows and the SDK for good measure.  I upgraded the driver on my soundcard (witch is the Realtek AC'97) to the latest version (released 7/7/06) and the launcher still tells me that I need OpenAL 1.1 or higher!   :mad:
Make sure that youre AC'97 drivers are up to date, and also make sure that you don't have either of these two files in your windows\system32\ directory: ct_oal.dll or nvopenal.dll.
Title: Re: OpenAL
Post by: Freespace Freak on August 25, 2006, 07:45:16 am
I was looking through my system folder, not my system32 folder, that's why I couldn't find it.  Yeah I found nvopenal.dll, but I haven't had time to test it in 3.6.9 yet.  I'll do that tonight when I get home.  Thanks.  :yes:  Hopefully I'll be able to see the new 3.6.8 zeta vps now.
Title: Re: OpenAL
Post by: Wobble73 on August 25, 2006, 07:51:42 am
Please note FS Freak, that taylor said if have nvopenal.dll, to remove it. It's not needed and interferes with the operation of OpenAL. Alright m8! :D
Title: Re: OpenAL
Post by: Freespace Freak on August 25, 2006, 09:30:20 am
Please note FS Freak, that taylor said if have nvopenal.dll, to remove it. It's not needed and interferes with the operation of OpenAL. Alright m8! :D

Oh, I forgot to mention that I removed it.  Yeah, I was looking for those two files in the System folder, not system32.  I'm one of those people who needs to have thing spelled out in detail, otherwise I'm not going to get a thing.

Also, for OpenGL, I didn't see anything for antialiasing.  If I run OpenGL, would it degrade graphical perfomance as compared to Direct3D with antialiasing?
Title: Re: OpenAL
Post by: taylor on August 25, 2006, 11:32:27 am
Also, for OpenGL, I didn't see anything for antialiasing.  If I run OpenGL, would it degrade graphical perfomance as compared to Direct3D with antialiasing?
There isn't a game setting for AA yet, but it's coming with newer OpenGL code, when I get the chance to finish it.  For now you'll just have to force AA with your video card drivers.  And it shouldn't hurt performance any more than it would in D3D.

Also, if you have a problem with music or voices disappearing when you get back to testing, know that it's a bug that's been fixed but a build with the fix hasn't been released yet.  There will probably be a RC7 build released this weekend though, after I commit my last set of fixes.
Title: Re: OpenAL
Post by: Freespace Freak on August 25, 2006, 03:02:50 pm
Okay, I deleted nvopenal.dll, and I did a search to make sure I didn't have ct_oal.dll, and I don't.  I made sure I installed OpenAL 1.1 for windows from the website, and it is.  Yet, still it says "OpenAL 1.1 or new is required for proper operation."  And then it tells me to go to the SAME website I downloaded the thing from and try it again.  WTF?!!  When I start, there's no sound whatsoever.  I tried it with DirectSound, EAX, Aureal 3D, and even no sound.  (I figured why not.)

I also noticed that many of the fighters that had transparent cockpits have been replaced with ones that aren't transparent.  Why is that?
Title: Re: OpenAL
Post by: Freespace Freak on August 26, 2006, 10:15:59 pm
Do you guys think the problem is being caused by the fact that I have a Realtek 7.1 channel Karajan module attatched to my motherboard instead of a standard soundcard?  Do you think this problem will go away if I remove the Karajan module and install a regular old sound card instead?  Or possibly since I'm using something other than what most of you guys use, there's probably a .dll that's causing problems that I don't know about?
Title: Re: OpenAL
Post by: Freespace Freak on August 26, 2006, 11:20:36 pm
I deleted my last post because I didn't want to say something stupid and regret it, but after many web searches the verdict seams to be that if you do not have an Creative sound card or an Nvidia integrated audio board, OpenAL will not work.   :eek2:  There are some mentions of wrap arounds that should make it work, but it's not 3d accelerated.  Unfortunately, my particular audio card seems to be incompatible with even the wraparound.  So, my only option at this point is to buy an SB Audigy, because that's what you need to use the 3d accelleration.  I have an nforce 4 chip, but the designers of my board opted out of the integrated nforce audio in favor of the realtek karajan audio board.  A wise decision, because it is superior than the integrated nforce audio, it's just completely incompatible with OpenAL at this time, and likely for the foreseeable future.
Title: Re: OpenAL
Post by: taylor on August 26, 2006, 11:49:13 pm
the verdict seams to be that if you do not have an Creative sound card or an Nvidia integrated audio board, OpenAL will not work
Not sure where you found that, but it's complete BS.  OpenAL wraps around the windows sound devices, meaning that under windows it will just translate everything to DirectSound.  If you have DirectSound drivers installed for your sound card then you're set on that end.  There is the possibility of drivers which provide direct hardware acceleration for OpenAL, and that's where you would want a particular Creative sound card.  Nvidia sound is pretty much crap at this point since I still don't think that they support OpenAL 1.1 though hardware.

Something is just wrong with your system setup, and it's finding files which are incorrect.  OpenAL does have various wrappers and if there is any old 1.0 ones installed on your system then that can be causing your troubles.  Just do a full search of your system for any of these files: openal32.dll, wrap_oal.dll, ct_oal.dll, nvopenal.dll.  Let me know what ones you find and where they are.  I should be able to help you out a bit easier with that info provided.
Title: Re: OpenAL
Post by: CP5670 on August 27, 2006, 12:03:58 am
If you're referring to the thing that comes with the DFI boards, I used it very briefly a month ago and it worked fine. As Taylor said, it looks like a software problem on your end.
Title: Re: OpenAL
Post by: Freespace Freak on August 27, 2006, 09:35:22 am
I deleted nvopenal.dll and ct_oal.dll as stated in that other thread, but I didn't know anything about the other two. They are both in my System32 folder.  Should I remove them as well?
Title: Re: OpenAL
Post by: taylor on August 27, 2006, 10:42:51 am
I deleted nvopenal.dll and ct_oal.dll as stated in that other thread, but I didn't know anything about the other two. They are both in my System32 folder.  Should I remove them as well?
No, those are the only two which are supposed to be there with OpenAL 1.1.  The point of looking for those was to make sure that there weren't any extras, hiding in other directories.  With nvopenal.dll and ct_oal.dll gone try reinstalling OpenAL 1.1 and see if that helps any (strangely, it can).
Title: Re: OpenAL
Post by: Freespace Freak on August 27, 2006, 11:48:10 am
Tried that already.  I'll try it again just in case.  *sigh*  Looks like I'll just have to buy a new Audigy card.
Title: Re: OpenAL
Post by: taylor on August 27, 2006, 12:04:49 pm
*sigh*  Looks like I'll just have to buy a new Audigy card.
The OpenAL drivers will be the same though.  So if it's either not finding OpenAL, or finding OpenAL 1.0, it's still going to do that with a new sound card.

Just try installing 1.1 one more time and immediately copy openal32.dll and wrap_oal.dll from your system32 directory to the directory for the game.  Run the game without using the launcher.  Then see if it makes a difference.
Title: Can't download OpenAL
Post by: Grandel on August 27, 2006, 01:13:02 pm
I try to download the latest OpenAL drivers from Creative's website but it always fails to connect. Is there a mirror or someplace else I can get it? I just found out about FS2 being open source and all, but I get no sound when I play. Its not much fun to see nice visuals with no sound to go with it.
Title: Re: Can't download OpenAL
Post by: Freespace Freak on August 27, 2006, 06:54:42 pm
I try to download the latest OpenAL drivers from Creative's website but it always fails to connect. Is there a mirror or someplace else I can get it? I just found out about FS2 being open source and all, but I get no sound when I play. Its not much fun to see nice visuals with no sound to go with it.

Welcome aboard!!   :D  I don't have any welcoming beam cannons, but if I did I'd make sure to his you with some!   :p  I downloaded the latest version of OpenAL from here (http://www.openal.org/downloads.html).

Anyway, you might want to listen Grandel because how I just solved my problem may be useful.  Reinstalling these didn't correct the problem, but I'll tell you what did.  I completely removed the files OpenAL32.dll and wrap_oal.dll from Windows\system32.  Then I reinstalled OpenAL 1.1.  This still didn't correct the problem, but when I found the two files again after reinstalling them in System32, I copied and pasted them into Games\Freespace2.  That fixed the problem!  Thanks!   :yes:
Title: Re: OpenAL
Post by: pecenipicek on August 28, 2006, 10:22:40 am
:welcome:



yes. shoot me.
Title: Re: OpenAL
Post by: aRaven on September 11, 2006, 06:54:20 pm
Hi there!

I tried the download link posted earlier, but it doesn't work for me. Does anybody have an idea where else to get OpenAL? I searched my ass off google and it came up with nothing.
Title: Re: OpenAL
Post by: Freespace Freak on September 11, 2006, 07:30:34 pm
:welcome:

Just do as I stated in the post above.  That website is the only place to download OpenAL 1.1 as far as I know.  In fact, it's the very source.  What's probably happening is what was happening to me.  When you click on the "OpenAL installer for Windows," a new icon should appear on your desktop.  But before you click on it, follow the steps I outlined.  Find all of those files in your system32 directory, delete them, then install OpenAL 1.1, find those two files, and copy them in your main FS2 directory.
Title: Re: OpenAL
Post by: aRaven on September 12, 2006, 12:41:52 pm
Thanks for your help! That link didn't work with firefox, but with IE. I dunno why...
Title: Re: OpenAL
Post by: Mars on September 12, 2006, 10:18:24 pm
Worked just fine on this Firefox.