mmlibs/mmfw/tsrc/mmfintegrationtest/ACLNT/truepauseconstants.h
changeset 0 b8ed18f6c07b
equal deleted inserted replaced
-1:000000000000 0:b8ed18f6c07b
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef TRUEPAUSECONSTANTS_H
       
    17 #define TRUEPAUSECONSTANTS_H
       
    18 
       
    19 #include <testframework.h>
       
    20 
       
    21 /*
       
    22  *========================================================================================================
       
    23  * State/Event enumerations
       
    24  *========================================================================================================
       
    25  */
       
    26 
       
    27 // MdaAudioUtility events
       
    28 enum TMdaAudioUtilityEvent
       
    29 	{
       
    30 	EEventInitialize = 0,
       
    31 	EEventPrepareComplete,
       
    32 	EEventInitComplete,
       
    33 	EEventPlayComplete,
       
    34 	EEventTimerComplete
       
    35 	};
       
    36 
       
    37 // MdaAudioUtility states
       
    38 enum TMdaAudioUtilityState
       
    39 	{
       
    40 	EStateInitial = 0,
       
    41 	EStateCreated,
       
    42 	EStateInitializing,
       
    43 	EStatePlaying,
       
    44 	EStateRecording,
       
    45 	EStatePause,
       
    46 	EStateStopped
       
    47 	};
       
    48 
       
    49 // MdaAudioOutputStream events	
       
    50 enum TMdaAOSEvent
       
    51 	{
       
    52 	EEventAOSInitialize = 0,
       
    53 	EEventAOSOpenComplete,
       
    54 	EEventAOSPlayComplete,
       
    55 	EEventAOSBufferCopied,
       
    56 	EEventAOSTimerComplete
       
    57 	};
       
    58 
       
    59 // MdaAudioOutputStream states
       
    60 enum TMdaAOSState
       
    61 	{
       
    62 	EStateAOSInitial = 0,
       
    63 	EStateAOSCreated,
       
    64 	EStateAOSInitializing,
       
    65 	EStateAOSPlaying,
       
    66 	EStateAOSRecording,
       
    67 	EStateAOSPause,
       
    68 	EStateAOSStopped
       
    69 	};
       
    70 	
       
    71 enum TPanicCodes
       
    72 	{
       
    73 	EFsmIncorrectErrorPassed = 0,
       
    74 	EInvalidCallbackCall
       
    75 	};
       
    76 	
       
    77 // User defined "MdaAudioUtility client" error codes
       
    78 enum TMdaAudioUtilityClientErrorCodes
       
    79 	{
       
    80 	EInvalidClientFSMEvent = 1,
       
    81 	EInvalidClientFSMState,
       
    82 	EReadFileErrorInClient,
       
    83 	EWriteFileErrorInClient
       
    84 	};
       
    85 
       
    86 enum TMdaAudioUtilityTestFormat
       
    87 	{
       
    88 	EPCM8Format = 0,
       
    89 	EPCMU16Format,
       
    90 	EPCMU16BEFormat,
       
    91 	EALAWFormat,
       
    92 	EMULAWFormat,
       
    93 	EGSM610Format,
       
    94 	EIMADFormat,
       
    95 	EPCMU8Format,
       
    96 	EOGGFormat
       
    97 	};
       
    98 
       
    99 
       
   100 /*
       
   101  *========================================================================================================
       
   102  * Constant declarations
       
   103  *========================================================================================================
       
   104  */
       
   105 
       
   106 const TInt KSizeBuff = 256;
       
   107 const TInt K25Percent = 4;
       
   108 const TInt KPanicLength = 16;
       
   109 const TInt KMicroSecInOneSec = 1000000;
       
   110 const TInt KMiliSecInOneSec = 1000;
       
   111 const TInt KMicroSecInHalfOneSec = 500000;
       
   112 const TInt KBalanceTolerance = 2;
       
   113 const TInt KFileFormatSize = 20;
       
   114 const TInt KVariation = KOneSecond/2; //Allow a half second variation
       
   115 const TInt KRepeatThrice = 3;
       
   116 const TInt KTimeout = 10;
       
   117 const TInt KFileDivision = 4;
       
   118 
       
   119 _LIT(KMsgErrorGetParameter,"Error in getting parameter %S from INI file");
       
   120 
       
   121 // Section name keys
       
   122 _LIT(KFilenameWAV, "FilenameWAV");
       
   123 _LIT(KFilenameSQN, "FilenameSQN");
       
   124 _LIT(KFilenamePCMU8, "FilenamePCMU8");
       
   125 _LIT(KFilenamePCM8, "FilenamePCM8");
       
   126 _LIT(KFilenameAlaw, "FilenameAlaw");
       
   127 _LIT(KFilenameMulaw, "FilenameMulaw");
       
   128 _LIT(KFilenamePCMU16BE, "FilenamePCMU16BE");
       
   129 _LIT(KFilenamePCMU16, "FilenamePCMU16");
       
   130 _LIT(KFilenamePCM16, "FilenamePCM16");
       
   131 _LIT(KFilenameGSM610, "FilenameGSM610");
       
   132 _LIT(KFilenameIMAD, "FilenameIMAD");
       
   133 _LIT(KFilenameOGG, "FilenameOGG");
       
   134 _LIT(KMsgDelete, "---- Deleting AudioPlayerUtility object ----");
       
   135 _LIT(KBalance, "Balance");
       
   136 _LIT(KVolume, "Volume");
       
   137 _LIT(KDuration1, "Duration1");
       
   138 _LIT(KDurationMiliSec, "DurationMiliSec");
       
   139 _LIT(KSequence, "Sequence");
       
   140 _LIT(KDuration, "Duration");
       
   141 _LIT(KPause, "Pause");
       
   142 _LIT(KRawFile, "RawFile");
       
   143 _LIT(KOggFile, "OggFile");
       
   144 
       
   145 #endif// __TRUEPAUSECONSTANTS_H__