Sign in to follow this  
deepsender

Lighting and sound conflict

Recommended Posts

When I turn on lighting with glEnable(GL_LIGHTING), my sound turns off. I'm using OpenAL sound. Disabling the lighting turns the sound back on. Where might the conflict be? Thanks.

Share this post


Link to post
Share on other sites
That sounds very odd, something as if you had a buffer overflow of some sort. Create a simple project with just your open Al sound and test to se if lighting still affects it.

Share this post


Link to post
Share on other sites
wow that is very odd, im interested in what could be causing that behavior. could you post what the problem was when you figure it out?

Share this post


Link to post
Share on other sites
Well, I just added the OpenAL sounds to a very simple OpenGL program and I cannot get the sound to change with a change in lighting. So, it must be somewhere in my code and skow is probably right about a buffer overflow. I've started to break down the code and can't find it yet, but I will.

If it's more significant than a simple coding error on my part, I'll post the cause.

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this