![]() |
C++ problem
how do i make sound with C++? Please, I need to know, it's for a big project for my school~
|
That would depend upon what kind of sound and under what operating environment. Did you try looking in the index of your reference books for beep or sound?
|
are u wondering how to change/make sound in the internal speakers?
|
actually wetwitre, you are right, I just want to make some pc beep~ I did it long time ago, it's like you have to give the computer some frequency of the sound! Do you know what else I can do?
|
I don't know how to do a PC speaker beep. It's been a while...like I said, best bet is to look it up in whatever reference book you are using for the class. If you are writing Windows programs, I should be able to find how to play a wave file...
|
There are so many ways to call the beep.
Escape characters, like \a and \007 cause your program to beep. If you have "#include <beep.h> /* got beep? */" you can define it as beep(x, y) (frequency and length) Or..you can code it with echo. Code:
#include <iostream.h> |
I am sure this will work on c++, if you print out.. (char)7
|
All times are GMT -6. The time now is 05:40 AM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.