Hi,
I am developing a GTK+ and Cairo application over DirectFB and it is running
over Slackware.
I've tried many maaaany ways of make the machine beep through the
piezoelectric buzzer and the only succesfull way I got is:

   int console = open("/dev/tty10", O_WRONLY);
   if (console == -1)
   {
       theLog->error ("Could not open device for beep.");
       return;
   }
   ioctl(console, KDMKTONE, (250<<16)+400);
   usleep(250000);

My problem is that it only sounds (many times as it had to beep during the
application) after closing the DFB application.
How can I make the system beep during the application? I think there is
something related to the /dev/tty10 and the DirectFB, but no /dev/ else
beeps...I have no more clues to make this happen.

Already tried:

printf ("\a"); //and all variants of this one. Also with std::cout.

gdk_beep();

and tried many /dev/* in the previous function.


Thank you very much.

-- 
alexsavio
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to