-
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!!
-
Re: C++ sounds
use the API function Beep(), and pass in a frequency and a duration:
BOOL bResult;
bResult = Beep(100, 100);
-
Re: C++ sounds
Forgot...the function wont work properly on 95, but will work on NT. Not sure if it works on 98.