1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/ACLNT/truepauseconstants.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,145 @@
1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef TRUEPAUSECONSTANTS_H
1.20 +#define TRUEPAUSECONSTANTS_H
1.21 +
1.22 +#include <testframework.h>
1.23 +
1.24 +/*
1.25 + *========================================================================================================
1.26 + * State/Event enumerations
1.27 + *========================================================================================================
1.28 + */
1.29 +
1.30 +// MdaAudioUtility events
1.31 +enum TMdaAudioUtilityEvent
1.32 + {
1.33 + EEventInitialize = 0,
1.34 + EEventPrepareComplete,
1.35 + EEventInitComplete,
1.36 + EEventPlayComplete,
1.37 + EEventTimerComplete
1.38 + };
1.39 +
1.40 +// MdaAudioUtility states
1.41 +enum TMdaAudioUtilityState
1.42 + {
1.43 + EStateInitial = 0,
1.44 + EStateCreated,
1.45 + EStateInitializing,
1.46 + EStatePlaying,
1.47 + EStateRecording,
1.48 + EStatePause,
1.49 + EStateStopped
1.50 + };
1.51 +
1.52 +// MdaAudioOutputStream events
1.53 +enum TMdaAOSEvent
1.54 + {
1.55 + EEventAOSInitialize = 0,
1.56 + EEventAOSOpenComplete,
1.57 + EEventAOSPlayComplete,
1.58 + EEventAOSBufferCopied,
1.59 + EEventAOSTimerComplete
1.60 + };
1.61 +
1.62 +// MdaAudioOutputStream states
1.63 +enum TMdaAOSState
1.64 + {
1.65 + EStateAOSInitial = 0,
1.66 + EStateAOSCreated,
1.67 + EStateAOSInitializing,
1.68 + EStateAOSPlaying,
1.69 + EStateAOSRecording,
1.70 + EStateAOSPause,
1.71 + EStateAOSStopped
1.72 + };
1.73 +
1.74 +enum TPanicCodes
1.75 + {
1.76 + EFsmIncorrectErrorPassed = 0,
1.77 + EInvalidCallbackCall
1.78 + };
1.79 +
1.80 +// User defined "MdaAudioUtility client" error codes
1.81 +enum TMdaAudioUtilityClientErrorCodes
1.82 + {
1.83 + EInvalidClientFSMEvent = 1,
1.84 + EInvalidClientFSMState,
1.85 + EReadFileErrorInClient,
1.86 + EWriteFileErrorInClient
1.87 + };
1.88 +
1.89 +enum TMdaAudioUtilityTestFormat
1.90 + {
1.91 + EPCM8Format = 0,
1.92 + EPCMU16Format,
1.93 + EPCMU16BEFormat,
1.94 + EALAWFormat,
1.95 + EMULAWFormat,
1.96 + EGSM610Format,
1.97 + EIMADFormat,
1.98 + EPCMU8Format,
1.99 + EOGGFormat
1.100 + };
1.101 +
1.102 +
1.103 +/*
1.104 + *========================================================================================================
1.105 + * Constant declarations
1.106 + *========================================================================================================
1.107 + */
1.108 +
1.109 +const TInt KSizeBuff = 256;
1.110 +const TInt K25Percent = 4;
1.111 +const TInt KPanicLength = 16;
1.112 +const TInt KMicroSecInOneSec = 1000000;
1.113 +const TInt KMiliSecInOneSec = 1000;
1.114 +const TInt KMicroSecInHalfOneSec = 500000;
1.115 +const TInt KBalanceTolerance = 2;
1.116 +const TInt KFileFormatSize = 20;
1.117 +const TInt KVariation = KOneSecond/2; //Allow a half second variation
1.118 +const TInt KRepeatThrice = 3;
1.119 +const TInt KTimeout = 10;
1.120 +const TInt KFileDivision = 4;
1.121 +
1.122 +_LIT(KMsgErrorGetParameter,"Error in getting parameter %S from INI file");
1.123 +
1.124 +// Section name keys
1.125 +_LIT(KFilenameWAV, "FilenameWAV");
1.126 +_LIT(KFilenameSQN, "FilenameSQN");
1.127 +_LIT(KFilenamePCMU8, "FilenamePCMU8");
1.128 +_LIT(KFilenamePCM8, "FilenamePCM8");
1.129 +_LIT(KFilenameAlaw, "FilenameAlaw");
1.130 +_LIT(KFilenameMulaw, "FilenameMulaw");
1.131 +_LIT(KFilenamePCMU16BE, "FilenamePCMU16BE");
1.132 +_LIT(KFilenamePCMU16, "FilenamePCMU16");
1.133 +_LIT(KFilenamePCM16, "FilenamePCM16");
1.134 +_LIT(KFilenameGSM610, "FilenameGSM610");
1.135 +_LIT(KFilenameIMAD, "FilenameIMAD");
1.136 +_LIT(KFilenameOGG, "FilenameOGG");
1.137 +_LIT(KMsgDelete, "---- Deleting AudioPlayerUtility object ----");
1.138 +_LIT(KBalance, "Balance");
1.139 +_LIT(KVolume, "Volume");
1.140 +_LIT(KDuration1, "Duration1");
1.141 +_LIT(KDurationMiliSec, "DurationMiliSec");
1.142 +_LIT(KSequence, "Sequence");
1.143 +_LIT(KDuration, "Duration");
1.144 +_LIT(KPause, "Pause");
1.145 +_LIT(KRawFile, "RawFile");
1.146 +_LIT(KOggFile, "OggFile");
1.147 +
1.148 +#endif// __TRUEPAUSECONSTANTS_H__