What header is used for sound and how do you make a multi threaded program?
What header is used for sound and how do you make a multi threaded program?
You need an API to do this, as it's highly platform dependant.
You can use the Win32 API for threading and playing sounds if you're using a windows machine... #include <windows.h>
Look up the functions "PlaySound()" and "CreateThread()" on msdn.microsoft.com
Ok thanks for the info.... Ill hafta go check thos functions out....
In C++ you are better off using beginthread (or beginthreadex) instead of CreateThread......these functions are pretty dependant on the compiler to support...but most do...
See here for a recent discussion
>>> instead of CreateThread
Yeah, avoid CreateThread(), it can, in some cases, cause small memory leaks if you use the standard library functions.
Also, beginthreadex() may be called beginthreadNT() if you are using some versions of Borland compilers.
If you are using Linux or any *NIX, the threading model is a little different, search google for "pThreads".
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Im running 2000 pro with microsoft vis C++ 6 if that help yea decide which to use ill probably go from one to another till one works tho thanks... .