DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-17-2006, 11:05 PM   #1
PlumBerry
New Member
 
Join Date: Apr 2006
Posts: 3
Default PlaySound() in opengl

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????
PlumBerry is offline   Reply With Quote
Old 04-17-2006, 11:21 PM   #2
Reedbeta
DevMaster Staff
 
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,707
Default Re: PlaySound() in opengl

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.
___________________________________________
Currently working at Sucker Punch
reedbeta.com - OpenGL demos and other projects
Luabridge - a lightweight, dependency-free C++/Lua binding library.
CD Lite - an unobtrusive, minimal CD player application for Windows.
Reedbeta is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 07:11 AM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.