View Full Version : how I can add sound in open gl
12-15-2002, 05:05 AM
HI every body http://www.opengl.org/discussion_boards/ubb/smile.gif
I design program
its contine button
when user choose this button the color change i want add also sound when the user press this button
how can i do that IN OPEN GL by USING C++
use OpenAL for example(i like it because of it's name http://www.opengl.org/discussion_boards/ubb/wink.gif
12-15-2002, 06:57 AM
SOORY BUT I MISUNDERSTAND http://www.opengl.org/discussion_boards/ubb/biggrin.gif
CAN YOU EXPLINE
OpenGL doesn't have any support for sound. You need to use some other API for that. OpenAL provides an API like OpenGL but for sound instead of graphics (though I've never used it).
SDL also has support for sound.
12-15-2002, 10:13 AM
or you can use direct sound.. although many have an unexplained aversion to Direct X http://www.opengl.org/discussion_boards/ubb/biggrin.gif
12-15-2002, 11:17 AM
thank you every body http://www.opengl.org/discussion_boards/ubb/smile.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.