I'm trying to just make it something like this .. .
Press 5 to play a sound....
5...
(sound plays)
How could I do this?
I'm trying to just make it something like this .. .
Press 5 to play a sound....
5...
(sound plays)
How could I do this?
-Compiler
--Dev-C++
-Projects
--Adventures of Lakod(0%)
-----------------------------------------
Site - www.cplusprogsm.cjb.net
Forums - http://pub92.ezboard.com/faeiforumsfrm1
i answered this question on another topic just yesterday. anyways, if youre in windows and dont care much for portability, there are some win32 api functions that play wavs. alternatively, you can use an api or inline asm.
repost what you posted.. I searched for it but didn't find anything .
-Compiler
--Dev-C++
-Projects
--Adventures of Lakod(0%)
-----------------------------------------
Site - www.cplusprogsm.cjb.net
Forums - http://pub92.ezboard.com/faeiforumsfrm1
Originally posted by Flikm
i answered this question on another topic just yesterday. anyways, if youre in windows and dont care much for portability, there are some win32 api functions that play wavs. alternatively, you can use an api or inline asm.
i meant the one you talked about
-Compiler
--Dev-C++
-Projects
--Adventures of Lakod(0%)
-----------------------------------------
Site - www.cplusprogsm.cjb.net
Forums - http://pub92.ezboard.com/faeiforumsfrm1
LMAO! That's the funniest thing I've heard today...
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
That was funny. Good one, Flikm.
And, smokeybear, you must be grossly mispelling words when you search or you're trying to search for too many words simultaneously.
I went to the boards search page told it to look for "sound" and username "Flikm" and got this from a few months back.
In that post I answered the question in detail including what header file to include and what library file to link. That should be all you need if you're not worried about porting to *nix systems etc.