sounds in opengl

is it possible to add sounds (music) in an opengl application? what file format will it be? (.midi, .wave) how can sounds be implemented in an opengl program?

thanks in advance!

cristine

Comments

  • SephirothSephiroth Fayetteville, NC, USA
    : is it possible to add sounds (music) in an opengl application? what file format will it be? (.midi, .wave) how can sounds be implemented in an opengl program?
    :
    : thanks in advance!
    :
    : cristine
    :
    The easiest way is to use PlaySound() to play virtually any format supported by Windows. This includes MIDI, wav, mp3, au, and a host of others. I can post more details on the function if you want.

    -[italic][b][red]S[/red][purple]e[/purple][blue]p[/blue][green]h[/green][red]i[/red][purple]r[/purple][blue]o[/blue][green]t[/green][red]h[/red][/b][/italic]

  • Hi! I'm using GLUT and not MFC or any window API so that my program will also run in other OS. If I use PlaySound(), will my opengl program still be portable in different platforms (aside from the windows OS)?

    thanks!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories