how I can add sound in open gl

HI every body

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

use OpenAL for example(i like it because of it’s name

SOORY BUT I MISUNDERSTAND

CAN YOU EXPLINE

best regards
Moon_Girl

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.

or you can use direct sound… although many have an unexplained aversion to Direct X

thank you every body