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?
: 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.
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)?
Comments
:
: 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]
thanks!