Code cleanup
[gregoa/zavai.git] / src / audio.vala
index b8cd35d74aa9d791113ed56872e9914ff0199f5a..e1c32cadbf8ad91883c3789fbdb2d3a980daec40 100644 (file)
@@ -30,7 +30,7 @@ public class Audio: zavai.Service
 
        public Audio()
        {
-               name = "audio";
+               Object(name: "audio");
                audiodev = zavai.registry.sbus.get_object(
                        "org.freesmartphone.odeviced",
                        "/org/freesmartphone/Device/Audio",
@@ -43,11 +43,15 @@ public class Audio: zavai.Service
 
     public void notify_alarm(zavai.clock.Alarm a)
     {
+        // Wiggle screen to turn on backlight
+        zavai.ui.power.backlight.wiggle();
         try {
-            vibdev.BlinkSeconds(2, 500, 200);
+            // Method does not exist in this frameworkd
+            vibdev.BlinkSeconds(5, 500, 200);
         } catch (Error e) {
             zavai.log.error("Cannot blink vibrator: " + e.message);
         }
+        // TODO: play music?
     }
 }