cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Beep() ?
Beep() ?
May 4, 2014 at 2:17pm UTC
closed account (
13bSLyTq
)
Hi,
I was testing something and for some reason beep() is failing on WIndows 7. I used it millions of times before but this is first time its doing this:
1
2
3
4
5
6
7
8
#include<Windows.h>
#include<iostream>
int
main() { Beep(10000,1000);
return
0; }
any clue!!!
May 4, 2014 at 5:57pm UTC
Peter87
(11178)
In what way is it failing? Does it crash or do you just not hear anything? have you turned on the speakers and is the sound volume high enough?
May 4, 2014 at 7:44pm UTC
modoran
(2077)
It works fine for me. Windows 7 SP1 32 bit. However the sound is played on default sound card, not on the motherboard speaker (this behaviour is changed starting with windows 7).
Topic archived. No new replies allowed.