Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAl problem #1376

Closed
IkkarionCross opened this issue Feb 14, 2013 · 14 comments
Closed

OpenAl problem #1376

IkkarionCross opened this issue Feb 14, 2013 · 14 comments

Comments

@IkkarionCross
Copy link

I'm having a issue with OpenAl. When i run my project in the output appears:
Could not open AL device - OpenAL Error: InvalidDevice

This is the stack trace:
System.NullReferenceException: Object reference not set to an instance of an object. ---> System.Exception:
--- End of inner exception stack trace ---
at Microsoft.Xna.Framework.Audio.OpenALSoundController.Update()
at Microsoft.Xna.Framework.OpenTKGamePlatform.BeforeUpdate(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.OpenTKGameWindow.OnUpdateFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.OnUpdateFrame(FrameEventArgs e)
at OpenTK.GameWindow.OnUpdateFrameInternal(FrameEventArgs e)
at OpenTK.GameWindow.RaiseUpdateFrame(Stopwatch update_watch, Double& next_update, FrameEventArgs update_args)
at OpenTK.GameWindow.DispatchUpdateAndRenderFrame(Object sender, EventArgs e)
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at OpenTK.GameWindow.Run(Double updateRate)
at Microsoft.Xna.Framework.OpenTKGamePlatform.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Microsoft.Xna.Framework.Game.Run()
at escaladeWin.Program.Main() in Program.cs:line 21

What i did to try solve the problem?
1 - Uninstall OpenAl
2 - Uninstall MonoGame
3 - Check the references for the project
4 - Search in google. I found this issue #823, but i think this is not my problem.
5 - I searched, here, in git and on codeplex. Again, only the issue 823 on git.

*My project does not contains any kind of music.

Any idea how to solve this?

@totallyeviljake
Copy link
Contributor

what kind of audio hardware do you have?

@IkkarionCross
Copy link
Author

Can you be more specific about the informations that you want?
My audio is on board.

@totallyeviljake
Copy link
Contributor

what device are you using?

@IkkarionCross
Copy link
Author

I am making a game for windows. I am working on a windows 7

@dellis1972
Copy link
Contributor

I think we need to know what sound card your machine has, so we can figure
out if OpenAL supports it

On 14 February 2013 19:37, IkkarionCross notifications@github.com wrote:

I am making a game for windows. I am working on a windows 7


Reply to this email directly or view it on GitHubhttps://github.com//issues/1376#issuecomment-13574066.

@IkkarionCross
Copy link
Author

My audio card is a chipset from a computer from Dell. I tried to get the name with everest, but it can not get the name.
The project was working fine, but yesterday when i ran it just stopped working

@totallyeviljake
Copy link
Contributor

This sounds like a driver failure. Make sure you have the correct drivers for your motherboard. You probably have a RealTek chipset, and openAL likely supports it. The driver probably has some issues.

I recommend that you go to Dell, get the bios and driver updates for your computer, then after you reboot and have installed the updates, try to run your game again. Let's hope that works!

@IkkarionCross
Copy link
Author

Guys, a friend solve the issue. I am not sure why but when the computer does not have an audio output the project crashes.
Why does this happen? Is a missing try ... catch?

@totallyeviljake
Copy link
Contributor

i will fix this. when AL fails to setup the context, we don't handle the nulled-out management lists. we also don't stop sound support either, but that's for another lengthly discussion.

@totallyeviljake
Copy link
Contributor

You should have seen ""Could not open AL device"" written to your debug console.

@IkkarionCross
Copy link
Author

Its the driver. When it is deactivated the openAl crashes and my computer does not have an audio output. I now connect an audio output (headset) to my computer and the error disappear.
I see that message I write it in my first message.
Thanks fot the help and quick answers.

@totallyeviljake
Copy link
Contributor

Please pull my changes into your build and see if it fixes your problems. You won't get sound, but also won't get the NRE during the game loop.

@totallyeviljake
Copy link
Contributor

@IkkarionCross did you have a chance to pull my change set to your build and test it out?

tomspilman added a commit that referenced this issue Feb 18, 2013
#1376 Adding some defensiveness to the OpenAl sound setup
@danzel
Copy link
Contributor

danzel commented Apr 20, 2014

Bug author hasn't commented or been on github in a year. Probably safe to close. @tomspilman

alxwest pushed a commit to alxwest/MonoGame that referenced this issue May 3, 2024
* types

* inline window.ClientBounds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants