Howdy, Stranger!

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

Categories

sounds in opengl

cristinecristine Member Posts: 13
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, USAMember Posts: 1,035
    : 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]

  • cristinecristine Member Posts: 13
    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!
  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    ___ / http://forcoder.org / free ebooks and video tutorials about < Objective-C Visual Basic .NET C# PL/SQL Delphi MATLAB Python Perl Ruby C JavaScript Scratch C++ Assembly Go Swift R Visual Basic PHP Java Logo Hack Lua Lisp SAS Scheme COBOL Crystal Alice VBScript Bash D Kotlin F# Julia Rust ABAP FoxPro Erlang Ada Apex Fortran Awk Clojure Transact-SQL Scala Dart ML LabVIEW Prolog /> ________

Sign In or Register to comment.