RSS Forums RSS
Please support our C++ advertiser: Programming Forums
Views: 772 | Replies: 4
Reply
Join Date: Mar 2006
Posts: 147
Reputation: grunge man is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 2
grunge man grunge man is offline Offline
Junior Poster

sound triggering

  #1  
Apr 2nd, 2006
um how do you make it so if you give an input, wether from an integer value or from pressing a cirtian key like the space bar,then a sound file will make a sound? in c++
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2004
Location: H4x0rville
Posts: 2,105
Reputation: server_crash is on a distinguished road 
Rep Power: 9
Solved Threads: 18
server_crash's Avatar
server_crash server_crash is offline Offline
Postaholic

Re: sound triggering

  #2  
Apr 2nd, 2006
#include <windows.h>

Beep(int, int);
Reply With Quote  
Join Date: Mar 2006
Posts: 38
Reputation: prof.thakur is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
prof.thakur prof.thakur is offline Offline
Light Poster

Re: sound triggering

  #3  
Apr 2nd, 2006
which compiler u r using
dos based or windows based >>>?

then know the reply
Reply With Quote  
Join Date: Mar 2006
Posts: 147
Reputation: grunge man is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 2
grunge man grunge man is offline Offline
Junior Poster

Re: sound triggering

  #4  
Apr 2nd, 2006
neither its linux based actually maby not but im using dev c++
Reply With Quote  
Join Date: Mar 2006
Posts: 147
Reputation: grunge man is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 2
grunge man grunge man is offline Offline
Junior Poster

Re: sound triggering

  #5  
Apr 2nd, 2006
also where do you identify the sound file you want to use
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:36 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC