View Full Version : how I can add sound in open gl
12-15-2002, 06: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, 07: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, 11: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, 12:17 PM
thank you every body http://www.opengl.org/discussion_boards/ubb/smile.gif
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.