sounds in C

This is a discussion on sounds in C within the C Programming forums, part of the General Programming Boards category; how to create a sound do re mi...

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    19

    sounds in C

    how to create a sound do re mi

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Code:
    /* Emits a 440-Hz tone (A above middle C) for 1 second. */
    
    #include <dos.h>
    
    int main(void)
    {
       sound(440);
       delay(1000);
       nosound();
       return 0;
    }
    Or put on The Sound of Music DVD

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    system("run \"do-re-mi.mp3\"");

    ...Sarcasm at its finest.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sounds in game
    By Gordon in forum Windows Programming
    Replies: 7
    Last Post: 10-07-2008, 10:14 AM
  2. DirectSound - multiple sounds
    By Magos in forum Game Programming
    Replies: 9
    Last Post: 03-03-2004, 03:33 PM
  3. Replies: 7
    Last Post: 06-20-2003, 12:05 PM
  4. Sounds
    By incognito in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 04-17-2003, 06:27 AM
  5. Sounds, or no sounds?
    By face_master in forum C++ Programming
    Replies: 3
    Last Post: 09-03-2001, 05:29 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21