Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
Post C++ problem
Reply
Posted 2002-11-24, 06:25 PM
how do i make sound with C++? Please, I need to know, it's for a big project for my school~
::::::::::::::::::::::::::::::::::::::::::::::::::
First Step: Find your cousin.
Second Step: Get your cousin in the cannon.
Third Step: Find another cousin.
::::::::::::::::::::::::::::::::::::::::::::::::::
Old
Profile PM WWW Search
VComegasin is neither ape nor machine; has so far settled for the in-betweenVComegasin is neither ape nor machine; has so far settled for the in-between
 
VComegasin
 



 
Reply
Posted 2002-11-25, 06:45 AM in reply to VComegasin's post "C++ problem"
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?
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2002-11-25, 08:15 AM in reply to VComegasin's post "C++ problem"
are u wondering how to change/make sound in the internal speakers?
.....Broke the rubba, busted another all up in ya motha, so how u feel like havin another baby brotha? Wha? dont studda, ya pants hangin so low ya new baby brotha can be ya new lova!......
My Personal Website!
www.dimensionforums.com
ÖWÑëÐ
Old
Profile PM WWW Search
"CRØNîC-KîLLå" is neither ape nor machine; has so far settled for the in-between"CRØNîC-KîLLå" is neither ape nor machine; has so far settled for the in-between
 
 
"CRØNîC-KîLLå"
 



 
Reply
Posted 2002-11-25, 03:28 PM in reply to VComegasin's post "C++ problem"
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?
::::::::::::::::::::::::::::::::::::::::::::::::::
First Step: Find your cousin.
Second Step: Get your cousin in the cannon.
Third Step: Find another cousin.
::::::::::::::::::::::::::::::::::::::::::::::::::
Old
Profile PM WWW Search
VComegasin is neither ape nor machine; has so far settled for the in-betweenVComegasin is neither ape nor machine; has so far settled for the in-between
 
VComegasin
 



 
Reply
Posted 2002-11-26, 07:07 AM in reply to VComegasin's post "C++ problem"
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...
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2002-11-26, 10:15 AM in reply to VComegasin's post "C++ problem"
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>

void main()
{
   cout << "beep beep!\a\n";
}

// eof
Old
Profile PM WWW Search
Dalton is neither ape nor machine; has so far settled for the in-betweenDalton is neither ape nor machine; has so far settled for the in-between
 
 
Dalton
 



 
Reply
Posted 2002-12-20, 08:12 PM in reply to VComegasin's post "C++ problem"
I am sure this will work on c++, if you print out.. (char)7
Old
Profile PM WWW Search
Acer enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzAcer enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Acer
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:13 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.