OpenAL init problem.
by Chris "Dark" Evans · in Torque Game Engine · 10/15/2001 (3:57 pm) · 15 replies
In the game, it says it can't initialize the OpenAL driver, and I get no sound :(
What do I need to do to get sound working? Am I supposed to have the driver already? Do I need to install/compile something?
I'm lost. I checked the libraries, specifically the OpenAL ones. There are files in there, but I assumed that I don't need to compile them seperately from the engine, since they are already included in the engine's "External Dependencies."
Any help would be appreciated.
Dark
What do I need to do to get sound working? Am I supposed to have the driver already? Do I need to install/compile something?
I'm lost. I checked the libraries, specifically the OpenAL ones. There are files in there, but I assumed that I don't need to compile them seperately from the engine, since they are already included in the engine's "External Dependencies."
Any help would be appreciated.
Dark
#2
10/15/2001 (6:45 pm)
You need to download and install Creative's OpenAL driver kit, which should also work for non-creative cards.
#3
Just wondering, is that supposed to come with creative cards? I have a SB Live, should it have already been installed with my card drivers?
Dark
10/16/2001 (1:21 am)
Ok.Just wondering, is that supposed to come with creative cards? I have a SB Live, should it have already been installed with my card drivers?
Dark
#4
Now I can load the game and get to the lobby, and I can select the driver in the audio options and I have sound in the lobby, but when I try and host a game....I get a crash.
Any ideas?
10/16/2001 (12:47 pm)
I had no sound but the game ran fine but so I then installed the OpenAL Windows Runtime Libraries as you suggested.Now I can load the game and get to the lobby, and I can select the driver in the audio options and I have sound in the lobby, but when I try and host a game....I get a crash.
Any ideas?
#5
Wizard.. we need more info... Is it crashing or are you getting an assert message? (if so, what's the message). If it's a real crash, can you run it in the debugger and find out where it's crashing. Just the fact that it is crashing is not very usefull information ;)
10/16/2001 (12:58 pm)
The latest OpenAL drivers are fairly new and haven't been released with Creative's other drivers (yet). They would not have been installed.Wizard.. we need more info... Is it crashing or are you getting an assert message? (if so, what's the message). If it's a real crash, can you run it in the debugger and find out where it's crashing. Just the fact that it is crashing is not very usefull information ;)
#6
My sound card is a sound blaster live value and I am running win2k. The message that comes up says something about "error reading from memory"
and when I did a debug, the line line had eax in it.
Thats all I can tell you from memory. I will get your exact details when I get home.
EDIT: After uninstalling the OpenAL drivers everything worked fine again (but no sound obviously). I will try installing OpenAL drivers on the work machine here.
10/16/2001 (2:31 pm)
I just arrived at work so I am going on memory here. I will get you details when I get home.My sound card is a sound blaster live value and I am running win2k. The message that comes up says something about "error reading from memory"
and when I did a debug, the line line had eax in it.
Thats all I can tell you from memory. I will get your exact details when I get home.
EDIT: After uninstalling the OpenAL drivers everything worked fine again (but no sound obviously). I will try installing OpenAL drivers on the work machine here.
#7
10/16/2001 (2:40 pm)
i had to raise the sound volume useing the sliders in the options/audio menu befor i could hear the sounds (you might try that)
#8
TORQUEDEMO caused a divide error in module OPENAL32.DLL at 017f:100043f2.
Registers:
EAX=00001858 CS=017f EIP=100043f2 EFLGS=00010246
EBX=00001858 SS=0187 ESP=0304fecc EBP=02e30150
ECX=00000000 DS=0187 ESI=00001858 FS=476f
EDX=00000000 ES=0187 EDI=02e40c10 GS=0000
Bytes at CS:EIP:
f7 f1 8b f2 8b bd 14 0e 00 00 c7 44 24 1c 00 00
Stack dump:
02e40c10 009dd060 10004330 80808080 00001858 00000000 00000380 000012d8 00000000 bff713e2 0000017f 00001858 00000000 bff88934 000025c0 bfdf6403
10/16/2001 (2:53 pm)
On my work machine, which is a win98 vibra16 card, it crashes and gives me this. I dont have vc6 here sorry so cant debug.TORQUEDEMO caused a divide error in module OPENAL32.DLL at 017f:100043f2.
Registers:
EAX=00001858 CS=017f EIP=100043f2 EFLGS=00010246
EBX=00001858 SS=0187 ESP=0304fecc EBP=02e30150
ECX=00000000 DS=0187 ESI=00001858 FS=476f
EDX=00000000 ES=0187 EDI=02e40c10 GS=0000
Bytes at CS:EIP:
f7 f1 8b f2 8b bd 14 0e 00 00 c7 44 24 1c 00 00
Stack dump:
02e40c10 009dd060 10004330 80808080 00001858 00000000 00000380 000012d8 00000000 bff713e2 0000017f 00001858 00000000 bff88934 000025c0 bfdf6403
#9
Only when you host a game. Does it crash immediately?
During mission load?
Is it one of our missions or a mission you have created?
Are you running fullscreen? or windowed?
OpenGL or DirectX?
Can you e-mail me your pref file?
I am going to be gone Wed-Sat but will look at this when I get back.
--Rick
10/16/2001 (6:11 pm)
So you can get OpenAL to crash on your 2k and 98 machine? Only when you host a game. Does it crash immediately?
During mission load?
Is it one of our missions or a mission you have created?
Are you running fullscreen? or windowed?
OpenGL or DirectX?
Can you e-mail me your pref file?
I am going to be gone Wed-Sat but will look at this when I get back.
--Rick
#10
Dark
10/16/2001 (9:21 pm)
Another thing you might want to look into. Did you change anything before you installed the drivers? It might not be the drivers at all doing the crashing, but something else you did instead.Dark
#11
The win2k machine crashes as soon as I try and host a mission. ie. before it even starts to load the datablocks.
The win98 machine actually gets into the mission but crashes on the first sound.
I was using a mission I created, but it is a very basic mission with no audioemmitters in it. I would doubt there would be any difference with a default mission but I will test this later.
Both machines are running opengl in 800x600 in windowed mode. The win98 machine has a TNT2 and the win2k machine has a GeforceDDR.
I will send the pref files to you
10/16/2001 (9:43 pm)
Both machines crash differently.The win2k machine crashes as soon as I try and host a mission. ie. before it even starts to load the datablocks.
The win98 machine actually gets into the mission but crashes on the first sound.
I was using a mission I created, but it is a very basic mission with no audioemmitters in it. I would doubt there would be any difference with a default mission but I will test this later.
Both machines are running opengl in 800x600 in windowed mode. The win98 machine has a TNT2 and the win2k machine has a GeforceDDR.
I will send the pref files to you
#12
I am using the latest Dev_Stable version and I am still getting the same crashes as above (only tested on the win2k machien though).
10/28/2001 (3:53 pm)
Any information relating to this?I am using the latest Dev_Stable version and I am still getting the same crashes as above (only tested on the win2k machien though).
#13
They seem to work fine on my home-built Athlon, which has an SB Live, but not on my Dell (which has something "SB-compatible").
I can select the drivers in the Options screen, but no sound on the Dell... This is a brand-spanking-new computer so I can't see it being obsolete hardware or anything.
Has anyone else had trouble with this on any other comps / sound cards? Or any suggestions on fixing it?
11/18/2001 (2:25 am)
Regarding these drivers...They seem to work fine on my home-built Athlon, which has an SB Live, but not on my Dell (which has something "SB-compatible").
I can select the drivers in the Options screen, but no sound on the Dell... This is a brand-spanking-new computer so I can't see it being obsolete hardware or anything.
Has anyone else had trouble with this on any other comps / sound cards? Or any suggestions on fixing it?
#14
First do you get any sound out of the machine at all? If not there are two things to look at right away.
1. Check to make sure you didn't plug the speakers into the wrong sound card. Many people buy an additional sound card for the Dell and then plug the speakers into the motherboard sound card plugs instead of the sound card. It's easy to do since the sound card is normally the in the first slot and almost invisible when you look at the back of the machine.
2. If you only have sound on the motherboard make sure that the BIOS settings have turned the sound card on. Occasionally at the factory they make a mistake and leave the BIOS settings for the sound card off. The software will install just fine but there will be no sound when you try to make anything play.
If you are getting sound from your machine then I would look into the mute and volume settings that get installed with the sound card. Some versions of the tools mute some types of sounds and allow others to go thru. So you can clearly hear music from your CD but you can't get anything out of your game.
If you can get sound out of another game I would look at the AL driver installation. Uninstall it and reinstall looking for any errors during installation or when you reboot your machine. Also, after the AL install it is a good idea to physically turn your machine completely off and on to make sure all the drivers get loaded properly.
This should be done whenever you install drivers - even if the program offers to reboot your machine. Turning the machine off physically will often "fix" a broken install because the hardware needs to be physically reset to accept the new drivers properly. This is especially true of modems, network cards and to a lesser extent sound cards.
David climbs off his hardware soapbox, bows to the non-existent crowd of admirers and strolls quickly away.
11/18/2001 (9:30 am)
I work with Dell computers daily so there are a couple things for you to check. First do you get any sound out of the machine at all? If not there are two things to look at right away.
1. Check to make sure you didn't plug the speakers into the wrong sound card. Many people buy an additional sound card for the Dell and then plug the speakers into the motherboard sound card plugs instead of the sound card. It's easy to do since the sound card is normally the in the first slot and almost invisible when you look at the back of the machine.
2. If you only have sound on the motherboard make sure that the BIOS settings have turned the sound card on. Occasionally at the factory they make a mistake and leave the BIOS settings for the sound card off. The software will install just fine but there will be no sound when you try to make anything play.
If you are getting sound from your machine then I would look into the mute and volume settings that get installed with the sound card. Some versions of the tools mute some types of sounds and allow others to go thru. So you can clearly hear music from your CD but you can't get anything out of your game.
If you can get sound out of another game I would look at the AL driver installation. Uninstall it and reinstall looking for any errors during installation or when you reboot your machine. Also, after the AL install it is a good idea to physically turn your machine completely off and on to make sure all the drivers get loaded properly.
This should be done whenever you install drivers - even if the program offers to reboot your machine. Turning the machine off physically will often "fix" a broken install because the hardware needs to be physically reset to accept the new drivers properly. This is especially true of modems, network cards and to a lesser extent sound cards.
David climbs off his hardware soapbox, bows to the non-existent crowd of admirers and strolls quickly away.
#15
Might help :)
11/18/2001 (5:43 pm)
Rick Overman fixed the sound bug that I was encountering. Check out the dev_stable verison from the CVS.Might help :)
Torque Owner Chris "Dark" Evans
I think the problem is one-in-the-same though, if I can init the driver this should go away.
Dark