|
-
March 31st, 1999, 02:09 PM
#1
C++ sounds
Does anyone know how I can create sound using the internal speaker in a computer using MSVC 5.0? I've seen how to use .wav files, but I want to use the internal speaker. Like those annoying beeps from old Atari games. I need more of a variety than what MessageBeep will provide. Thanks!!
-
March 31st, 1999, 02:33 PM
#2
Re: C++ sounds
use the API function Beep(), and pass in a frequency and a duration:
BOOL bResult;
bResult = Beep(100, 100);
-
March 31st, 1999, 02:34 PM
#3
Re: C++ sounds
Forgot...the function wont work properly on 95, but will work on NT. Not sure if it works on 98.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|