Code cleanup
[gregoa/zavai.git] / src / audio.vala
index 4cc37f444373b25e1a02e28fd810ab7543eed578..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",
@@ -46,10 +46,12 @@ public class Audio: zavai.Service
         // 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?
     }
 }