Page 1 of 1

Sound in Opengl

Posted: Thu Feb 12, 2009 6:12 pm
by herby490
I am looking to start learning opengl soon and I know that there is no sound in that library. I have been told that in order to get sound you need to use a separate program like openal. When I looked at openal i found out that you need to have the redistributable pack on a computer that you want to install a game on. Are there any other libraries that would be able to run sound with opengl or is their an easy way to get the redistributable on someones computer with the program besides having them download it themselves. Oh and should i learn SDL before opengl.

Re: Sound in Opengl

Posted: Thu Feb 12, 2009 7:23 pm
by eatcomics
sdl I do believe.... It can do sound and input stuff I think that's what most people do.... ;)

Re: Sound in Opengl

Posted: Thu Feb 12, 2009 7:25 pm
by M_D_K
OpenAL is a seperate library that mirrors OpenGL's design, and its pretty complicated. Since your starting out I'd recommend SDL_mixer.

EDIT: beat me to it ;)

Re: Sound in Opengl

Posted: Thu Feb 12, 2009 10:00 pm
by Falco Girgis
Yes, you should learn SDL before OpenGL, if you ask me.

Re: Sound in Opengl

Posted: Fri Feb 13, 2009 2:15 pm
by dandymcgee
I agree with everyone else, and SDL is great for sound (so I've heard).

Re: Sound in Opengl

Posted: Fri Feb 13, 2009 6:43 pm
by herby490
So does anyone know a good book to start learning sdl

Re: Sound in Opengl

Posted: Fri Feb 13, 2009 8:22 pm
by PixelP
focus on sdl is a good book.

Re: Sound in Opengl

Posted: Sat Feb 14, 2009 12:56 pm
by RyanPridgeon
I think you'd be better off using SDL for everything; SDL actually has an openGL wrapper, which means you can use openGL from inside SDL.

To get started, I highly recommend reading from http://lazyfoo.net/

When you start to get to grips with it, just use the SDL documentation and play around.

Have fun ;D

Re: Sound in Opengl

Posted: Sat Feb 14, 2009 9:35 pm
by andrew
Have a look at the links on this page from gamedev.net:

Simple DirectMedia Layer

Ernest Pazera is the author of Focus on SDL, and he has two articles at the bottom of the page.