Sound in Opengl
Moderator: PC Supremacists
Sound in Opengl
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
sdl I do believe.... It can do sound and input stuff I think that's what most people do....
- M_D_K
- Chaos Rift Demigod
- Posts: 1087
- Joined: Tue Oct 28, 2008 10:33 am
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C/++
- Location: UK
Re: Sound in Opengl
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
EDIT: beat me to it
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote: <sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
Re: Sound in Opengl
Yes, you should learn SDL before OpenGL, if you ask me.
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
Re: Sound in Opengl
I agree with everyone else, and SDL is great for sound (so I've heard).
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
Re: Sound in Opengl
So does anyone know a good book to start learning sdl
- RyanPridgeon
- Chaos Rift Maniac
- Posts: 447
- Joined: Sun Sep 21, 2008 1:34 pm
- Current Project: "Triangle"
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C/C++
- Location: UK
- Contact:
Re: Sound in Opengl
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
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
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.
Simple DirectMedia Layer
Ernest Pazera is the author of Focus on SDL, and he has two articles at the bottom of the page.