cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
beep without pausing
beep without pausing
Jan 5, 2012 at 8:13pm UTC
ihato
(57)
I was using
beep(freq,len)
that is inside
<windows.h>
to beep from internal speaker.
But this pauses the program.
How to make it so it beeps with also running the program?
Thanks.
Jan 5, 2012 at 8:21pm UTC
Lynx876
(742)
You might want to look in to threading:
http://en.wikibooks.org/wiki/C%2B%2B_Programming/Threading
Jan 5, 2012 at 10:24pm UTC
nickoolsayz
(83)
\a it will beep.
example:
cout <<
"\aJackpot"
<< endl;
//makes 1 beep sound.
Last edited on
Jan 5, 2012 at 10:25pm UTC
Jan 5, 2012 at 10:48pm UTC
Lynx876
(742)
But he want's a constant beep while other code is running.
Jan 5, 2012 at 10:59pm UTC
nickoolsayz
(83)
wouldnt make sense to have an annoying beep while code is running, but the \a will beep as many times as you wish so long as you program it to do so.
Topic archived. No new replies allowed.