r2821 - in trunk/src/target/OM-2007.2/applications/openmoko-dialer2: . src
njp at sita.openmoko.org
njp at sita.openmoko.org
Thu Aug 23 18:42:06 CEST 2007
Author: njp
Date: 2007-08-23 18:42:05 +0200 (Thu, 23 Aug 2007)
New Revision: 2821
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-notify.c
Log:
2007-08-23 Neil J. Patel <njp at o-hand.com>
* src/moko-notify.c: (play), (play_timeout),
(moko_notify_start_ringtone), (moko_notify_stop_ringtone):
Add some debugging stuff.
Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog 2007-08-23 16:30:55 UTC (rev 2820)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog 2007-08-23 16:42:05 UTC (rev 2821)
@@ -2,6 +2,12 @@
* src/moko-notify.c: (play), (play_timeout),
(moko_notify_start_ringtone), (moko_notify_stop_ringtone):
+ Add some debugging stuff.
+
+2007-08-23 Neil J. Patel <njp at o-hand.com>
+
+ * src/moko-notify.c: (play), (play_timeout),
+ (moko_notify_start_ringtone), (moko_notify_stop_ringtone):
Some ringtone fixes, so there is a gap between playback.
2007-08-23 Neil J. Patel <njp at o-hand.com>
Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-notify.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-notify.c 2007-08-23 16:30:55 UTC (rev 2820)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-notify.c 2007-08-23 16:42:05 UTC (rev 2821)
@@ -107,6 +107,7 @@
play (MokoNotify *notify)
{
moko_notify_start_ringtone (notify);
+ g_print ("1500 timeout\n");
return FALSE;
}
@@ -122,14 +123,23 @@
return FALSE;
if (!priv->operation)
+ {
+ g_print ("No operation\n");
return FALSE;
-
+ }
+ if (!priv->started)
+ {
+ pa_operation_cancel (priv->operation);
+ g_print ("Cancelling early\n");
+ return FALSE;
+ }
if (pa_operation_get_state (priv->operation) == PA_OPERATION_DONE)
{
g_timeout_add (1500, (GSourceFunc)play, (gpointer)notify);
+ g_print ("Playing done\n");
return FALSE;
}
-
+ g_print ("Not finsihed yet\n");
return TRUE;
}
@@ -151,6 +161,7 @@
NULL,
NULL);
g_timeout_add (500, (GSourceFunc)play_timeout, (gpointer)notify);
+ g_print ("Playing\n");
}
static void
@@ -162,7 +173,10 @@
priv = notify->priv;
if (priv->operation)
+ {
pa_operation_cancel (priv->operation);
+ g_print ("Cancelling\n");
+ }
priv->operation = NULL;
}
More information about the commitlog
mailing list