Thread: Playing sounds in Turbo C++

  1. #16
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    I don't know if this is the correct one for you, but:
    http://msdn.microsoft.com/library/de.../base/beep.asp

    It's Beep (capital B)
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  2. #17
    Registered User
    Join Date
    May 2003
    Posts
    15
    I'm sorry but I'm but a high school sophomore newb, would you be kind enough to show me a very simple implementation of this code?

  3. #18
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Code:
    #include<windows.h>
    #include<conio.h>
    
    int main ()
    {
      Beep(1000, 1000);
      getch();
      return 0;
    }
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #19
    Registered User
    Join Date
    May 2003
    Posts
    15
    OMG, thank you!!! Now my ingenius battleship plans will be revealed. Is there any way to play a .wav file or is that too complicated. TY SO MUCH!
    Last edited by Fifasoccer21234; 05-08-2003 at 07:31 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How do I keep the sounds playing?
    By Queatrix in forum Windows Programming
    Replies: 0
    Last Post: 07-21-2007, 10:19 AM
  2. Playing sounds...
    By yaya in forum C++ Programming
    Replies: 4
    Last Post: 05-13-2007, 06:57 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. playing sounds in a DOS program
    By Geo-Fry in forum C++ Programming
    Replies: 1
    Last Post: 03-18-2003, 07:29 PM
  5. playing sounds in a console window
    By elfjuice in forum C++ Programming
    Replies: 1
    Last Post: 06-05-2002, 09:30 PM