Jump to content


PlaySound() in opengl


1 reply to this topic

#1 PlumBerry

    New Member

  • Members
  • Pip
  • 3 posts

Posted 18 April 2006 - 05:05 AM

as the title above, i wish to know that, by using PlaySound() in opengl, can we play two .wav file in the same time, and how to make it works??

Is there any other simple method to play two sound file at the same time in opengl????:huh:

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 4979 posts
  • LocationBellevue, WA

Posted 18 April 2006 - 05:21 AM

OpenGL has nothing to do with playing sounds, it is a graphics API only. PlaySound is, I'm presuming, the function from the Windows API - in which case, you can find the documentation for it here. Basically, you need to use the SND_ASYNC flag, read the page for the details.
reedbeta.com - developer blog, OpenGL demos, and other projects





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users