hobbit monitor
+ Reply to Thread
Results 1 to 6 of 6

Thread: Sound Maker

  1. #1
    Join Date
    Nov 2007
    Posts
    17

    Sound Maker

    My friend wants to know if there is anyway to make it when a program ends for his computer to play a sound? He asked me and I googled it and couldnt find much.

    All help would be appriciated...

  2. #2
    Join Date
    Sep 2006
    Posts
    1,649
    In C++ you can use \a like so.
    [PHP]#include <iostream>
    using namespace std;

    int main()
    {
    cout << "Hello!\a";
    return 0;
    }[/PHP]

    This brings up two questions. What language is your friend coding his program in? Does he want a simple 'bell' noise like the example above, or does he want some sort of music to be played?
    "Workers of the world unite; you have nothing to lose but your chains." -Karl Marx

  3. #3
    Join Date
    Nov 2007
    Posts
    17

    Wink

    Well hes not coding it...

    His point is he plays an online game called Silk Road and he bots, well his game crashes alot so he just wants a program that when the program crashes to make a noise(wether its musik or w/e)Hes not the sharpest knife in the stump
    People shouldnt be afraid of there goverment, Goverment should be afraid of there people!

    The Pro Gamers Web******

  4. #4
    Join Date
    Sep 2006
    Posts
    1,649
    Ok, I get it. But I never play games alot, so I'm not sure how to go about this.

    <2 minutes later>

    Yep, I'm not sure how to tackle this problem, I'm not a good coder. Maybe DANIEL2488, SyntaX****** or another member can help you.

    Just curious, why does your friend want this? It's not going to help him in any way.
    "Workers of the world unite; you have nothing to lose but your chains." -Karl Marx

  5. #5
    Join Date
    Nov 2007
    Posts
    17

    Exclamation

    Alright Thanks mucho


    Lets leave this open and see if any of the other people on here know how to do this...
    People shouldnt be afraid of there goverment, Goverment should be afraid of there people!

    The Pro Gamers Web******

  6. #6
    Join Date
    Sep 2005
    Posts
    2,050
    Use the Windows beep() function. It's awesome -- I made my annoying 'hacking' program with it.
    Who needs drugs when you have electrons?

+ Reply to Thread

Similar Threads

  1. Problem with sound system
    By dragon39990 in forum General discussion
    Replies: 3
    Last Post: 05-15-2008, 07:53 AM
  2. Maker virus
    By F-M in forum Viruses and Trojans
    Replies: 0
    Last Post: 02-17-2008, 11:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts