PDA

View Full Version : how I can add sound in open gl



MOON-GIRL
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++

best regards
Moon_Girl

gvm
12-15-2002, 06:58 AM
use OpenAL for example(i like it because of it's name http://www.opengl.org/discussion_boards/ubb/wink.gif

MOON-GIRL
12-15-2002, 07:57 AM
SOORY BUT I MISUNDERSTAND http://www.opengl.org/discussion_boards/ubb/biggrin.gif

CAN YOU EXPLINE

best regards
Moon_Girl

jmg
12-15-2002, 10:58 AM
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.

adityagaddam
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

MOON-GIRL
12-15-2002, 12:17 PM
thank you every body http://www.opengl.org/discussion_boards/ubb/smile.gif