!how do i use the PC speaker

This is a discussion on !how do i use the PC speaker within the C++ Programming forums, part of the General Programming Boards category; How do i use the PC speaker to play tones sounds... what have you......

  1. #1
    Registered User unknownUser's Avatar
    Join Date
    Apr 2002
    Posts
    14

    Smile !how do i use the PC speaker

    How do i use the PC speaker to play tones sounds... what have you...

  2. #2
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    I'm pretty sure couting '\b' or '\a' will beep the system speaker... I'm not sure which one though
    Example:

    cout << '\b';
    cout << '\a';

  3. #3
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    \a

  4. #4
    Registered User unknownUser's Avatar
    Join Date
    Apr 2002
    Posts
    14

    MIDI

    How would i play midi files and things like that????

  5. #5
    Registered User Liam Battle's Avatar
    Join Date
    Jan 2002
    Posts
    114
    here is a recent post on the subject that you just asked ...
    he has an example of *.wav playback...

    http://www.cprogramming.com/cboard/s...threadid=18180

    or a website here:

    http://www.programmersheaven.com/zone12/index.htm
    LB0: * Life once school is done
    LB1: N <- WakeUp;
    LB2: N <- C++_Code;
    LB3: N >= Tired : N <- Sleep;
    LB4: JMP*-3;

  6. #6
    Registered User unknownUser's Avatar
    Join Date
    Apr 2002
    Posts
    14

    c001

    k001 thank you I'm rea..y on my way now... err... mMmmm

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Outputting many beeps through the pc speaker
    By rllovera in forum C Programming
    Replies: 18
    Last Post: 11-21-2006, 12:24 AM
  2. Replies: 1
    Last Post: 10-27-2006, 02:21 PM
  3. Using PC Speaker and NOT the sound card in a console...
    By Trauts in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 04-09-2003, 09:52 PM
  4. PC Speaker...
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 04-03-2002, 08:19 AM
  5. PC Speaker Beeps
    By Brian in forum C Programming
    Replies: 7
    Last Post: 01-16-2002, 03:25 PM

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