frametable_stub/src/frametable_stub.cpp
changeset 34 31d6e1ae5283
equal deleted inserted replaced
33:0267baa9dea9 34:31d6e1ae5283
       
     1 /*
       
     2 
       
     3 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     4 
       
     5 * All rights reserved.
       
     6 
       
     7 * This component and the accompanying materials are made available
       
     8 
       
     9 * under the terms of "Eclipse Public License v1.0"
       
    10 
       
    11 * which accompanies this distribution, and is available
       
    12 
       
    13 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    14 
       
    15 *
       
    16 
       
    17 * Initial Contributors:
       
    18 
       
    19 * Nokia Corporation - initial contribution.
       
    20 
       
    21 *
       
    22 
       
    23 * Contributors:
       
    24 
       
    25 *
       
    26 
       
    27 * Description:  Class definition for the frame table functions.
       
    28 
       
    29  *
       
    30 
       
    31 */
       
    32 
       
    33 
       
    34 
       
    35 
       
    36 
       
    37 
       
    38 #include <frametable.h>
       
    39 #include <e32debug.h>
       
    40 
       
    41 
       
    42 CFrameTable::CFrameTable()
       
    43 
       
    44     {
       
    45 
       
    46     }
       
    47 
       
    48 void CFrameTable::ConstructL()
       
    49 
       
    50     {
       
    51 
       
    52     }
       
    53 
       
    54 EXPORT_C CFrameTable* CFrameTable::NewL()
       
    55 
       
    56     {
       
    57 
       
    58     CFrameTable* self = new(ELeave) CFrameTable;
       
    59 
       
    60     return self;
       
    61 
       
    62     }
       
    63 
       
    64 EXPORT_C CFrameTable::~CFrameTable()
       
    65 
       
    66     {
       
    67 
       
    68     }
       
    69 
       
    70 EXPORT_C TInt CFrameTable::InitFrameTable(TInt aSampleRate, TInt aSamplesPerFrame)
       
    71 
       
    72     {
       
    73     	 RDebug::Print(_L("CFrameTable::InitFrameTable aSampleRate[%d], aSamplesPerFrame[%d]"), aSampleRate, aSamplesPerFrame);
       
    74     	return KErrNone;
       
    75     }
       
    76 
       
    77 EXPORT_C TInt CFrameTable::SubmitTableEntry(TUint aPos)
       
    78 
       
    79     {
       
    80     	RDebug::Print(_L("CFrameTable::InitFrameTable aPos[%d]"), aPos);
       
    81     	return KErrNone;
       
    82    }
       
    83 
       
    84 TInt CFrameTable::SubmitLowResTableEntry(TBufRefPosEntry& aEntry)
       
    85 
       
    86     {
       
    87     	RDebug::Print(_L("CFrameTable::InitFrameTable aEntry[%d]"), aEntry);
       
    88 			return KErrNone;
       
    89     }
       
    90 
       
    91 EXPORT_C TInt CFrameTable::FindFramePosFromTime(TUint& aTimeMs, TUint& aPos)
       
    92 
       
    93     {
       
    94     	RDebug::Print(_L("CFrameTable::InitFrameTable aTimeMs[%d], aPos[%d]"), aTimeMs, aPos);
       
    95     	return KErrNone;
       
    96     }
       
    97 
       
    98 
       
    99 
       
   100 EXPORT_C TInt CFrameTable::FindFrameTimeFromPos(TUint& aTimeMs, TUint& aPos)
       
   101 
       
   102     {
       
   103     	RDebug::Print(_L("CFrameTable::InitFrameTable aTimeMs[%d], aPos[%d]"), aTimeMs, aPos);
       
   104     	return KErrNone;
       
   105     }
       
   106 
       
   107 EXPORT_C TInt CFrameTable::LastFramePos(TUint& aPos)
       
   108 
       
   109     {
       
   110     	RDebug::Print(_L("CFrameTable::InitFrameTable aPos[%d]"), aPos);
       
   111     	return KErrNone;
       
   112     }
       
   113 
       
   114 EXPORT_C TInt CFrameTable::LastFrameTime(TUint& aTimeMs)
       
   115 
       
   116    {
       
   117    	RDebug::Print(_L("CFrameTable::InitFrameTable aTimeMs[%d]"), aTimeMs);
       
   118     	return KErrNone;
       
   119     }
       
   120 
       
   121 EXPORT_C void CFrameTable::ResetTable()
       
   122 
       
   123     {
       
   124     	
       
   125     }
       
   126 
       
   127 EXPORT_C void CFrameTable::ShrinkTable()
       
   128 
       
   129     { 
       
   130     	
       
   131     }
       
   132 
       
   133 
       
   134 
       
   135 EXPORT_C TInt CFrameTable::SetSourceReference(TUint aTimeMs, TUint aPos)
       
   136 
       
   137     { 
       
   138     	RDebug::Print(_L("CFrameTable::InitFrameTable aTimeMs[%d], aPos[%d]"), aTimeMs, aPos);
       
   139     	return KErrNone;
       
   140     }
       
   141 
       
   142 
       
   143 
       
   144 EXPORT_C TInt CFrameTable::RegisterForEvent(TFrameTableEvent aEvent, MFrameTableEventObserver* aObserver, TUint aParam)
       
   145 
       
   146     {
       
   147     	RDebug::Print(_L("CFrameTable::InitFrameTable aEvent[%d], aObserver[%d], aParam[%d]"), aEvent, aObserver, aParam);
       
   148 			return KErrNone;
       
   149     }
       
   150 
       
   151 
       
   152 EXPORT_C TInt CFrameTable::UnRegisterForEvent(TFrameTableEvent aEvent, MFrameTableEventObserver* /*aObserver*/)
       
   153 
       
   154     {
       
   155     	RDebug::Print(_L("CFrameTable::InitFrameTable aEvent[%d]"), aEvent);
       
   156     	return KErrNone;
       
   157     }
       
   158 
       
   159 EXPORT_C TInt CFrameTable::Bitrate()
       
   160 
       
   161     {
       
   162 			return KErrNone;
       
   163     }
       
   164 
       
   165 
       
   166 TUint CFrameTable::CalcFrameFromTimeMs(TUint aTimeMs)
       
   167 
       
   168     {
       
   169     	RDebug::Print(_L("CFrameTable::InitFrameTable aTimeMs[%d]"), aTimeMs);
       
   170     	return KErrNone; 
       
   171     }
       
   172 
       
   173 
       
   174 
       
   175 EXPORT_C TInt CFrameTable::IsSeeking(TBool& aIsSeeking)
       
   176 
       
   177     {
       
   178     	RDebug::Print(_L("CFrameTable::InitFrameTable aIsSeeking[%d]"), aIsSeeking);
       
   179 			return KErrNone;
       
   180     }
       
   181 
       
   182 
       
   183 
       
   184 EXPORT_C TInt CFrameTable::GetLastPosEvent(TUint& aPos)
       
   185 
       
   186     {
       
   187     	RDebug::Print(_L("CFrameTable::InitFrameTable aPos[%d]"), aPos);
       
   188 			return KErrNone;
       
   189     }
       
   190 
       
   191 
       
   192