Thread: Maemo beeper
View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#5
I'll be shot for this one day.

Code:
#include <unistd.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <hildon/hildon.h>

int main (int argc, char *argv[])
{
	int i;

        if (!g_thread_supported ())
                g_thread_init (NULL);

	gtk_init(&argc, &argv);

	for (i = 1; i<=30; i++)
	{
		hildon_play_system_sound("/usr/share/sounds/camera-video-record.wav");
		sleep(60);
	}
	return 0;
}
Attached Files
File Type: gz beep.gz (1.9 KB, 79 views)
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post: