beep

This is a discussion on beep within the Linux Programming forums, part of the Platform Specific Boards category; Is there a system call to make linux beep in c. I tried printf("\a"); but it crashed because it is ...

  1. #1
    Registered User ivandn's Avatar
    Join Date
    Oct 2001
    Posts
    49

    beep

    Is there a system call to make linux beep in c. I tried printf("\a"); but it crashed because it is a XWindows program.

  2. #2
    Registered User alex's Avatar
    Join Date
    Sep 2001
    Posts
    132
    Quick hack:
    system("xkbbell");

    Look up the Xwindows functions:
    XkbBell
    XkbForceBell
    XkbDeviceBell
    XkbForceDeviceBell
    XkbBellEvent
    XkbDeviceBellEvent

    Good luck

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linux beep function
    By Calef13 in forum C++ Programming
    Replies: 7
    Last Post: 07-14-2007, 01:39 AM
  2. I need to play a pre recorded vox file using C
    By m.sudhakar in forum C Programming
    Replies: 4
    Last Post: 11-17-2006, 05:59 PM
  3. alert beep sound
    By bazzano in forum C Programming
    Replies: 3
    Last Post: 02-14-2006, 01:24 PM
  4. Beep();
    By SirCrono6 in forum C++ Programming
    Replies: 7
    Last Post: 02-22-2004, 03:47 PM
  5. Something Like beep()
    By Trauts in forum C++ Programming
    Replies: 3
    Last Post: 02-02-2003, 01:51 PM

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