khronosfws/openmax_al/src/mmf_adaptation/sfmrlocaltimer.cpp
changeset 25 6f7ceef7b1d1
parent 12 5a06f39ad45b
--- a/khronosfws/openmax_al/src/mmf_adaptation/sfmrlocaltimer.cpp	Fri May 28 19:26:28 2010 -0500
+++ b/khronosfws/openmax_al/src/mmf_adaptation/sfmrlocaltimer.cpp	Fri Jun 11 19:59:23 2010 -0500
@@ -1,33 +1,31 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: 
-*
-*/
-// sfmrlocaltimer.cpp
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description: Local timer to update position for recording 
+ *
+ */
 
 #include "sfmrlocaltimer.h"
 
-extern "C" {
+extern "C"
+    {
 #include "xarecorditfadaptationmmf.h"
-}
+    }
 
 #include "cmmfbackendengine.h"
 
-
-LocalTimer::LocalTimer(CMMFBackendEngine* parent, void* adaptContext)
-:CActive(CActive::EPriorityStandard),
-iTime(0)
+LocalTimer::LocalTimer(CMMFBackendEngine* parent, void* adaptContext) :
+    CActive(CActive::EPriorityStandard), iTime(0)
     {
     CActiveScheduler::Add(this);
     iParent = parent;
@@ -77,11 +75,11 @@
     {
     if (iStatus == KErrNone)
         {
-        iTime+= iDelay;
+        iTime += iDelay;
         XAuint64 position;
         iParent->GetRecordPosition(&position);
-        
-        XARecordItfAdaptMMF_PositionUpdate(iAdaptContext,position);
+
+        XARecordItfAdaptMMF_PositionUpdate(iAdaptContext, position);
         Start(iDelay);
         }
     }