mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioStreamTestModule/inc/AudioStreamConstants.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Audio stream test component
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 
       
    20   Author: Binh Vu
       
    21   Version: 1.0
       
    22 
       
    23 */
       
    24 
       
    25 #ifndef AUDIO_STREAM_CONSTANTS_H
       
    26 #define AUDIO_STREAM_CONSTANTS_H
       
    27 
       
    28 
       
    29 
       
    30 const TInt KErrConfigInvalid = KErrNone;	//-1100;
       
    31 const TInt KErrExpectedValueDifferent = -1502;	//-1101
       
    32 const TInt KErrSkippedEvents = -1102;
       
    33 const TInt KErrNotExecuted = -1003;
       
    34 const TInt KErrExecuted = KErrNone;
       
    35 const TInt KErrLeft = -1503;
       
    36 const TInt KErrTestTimeout = -1404;
       
    37 
       
    38 const TInt KDefaultStreamBufferSize = 1024;
       
    39 const TInt KDefaultRelVolume = 100;
       
    40 const TInt KDefaultStopDelay = 1000000;
       
    41 const TInt KDefaultRelGain = 100;
       
    42 const TInt KDefaultBalance = KMMFBalanceCenter;
       
    43 const TInt KDefaultTimeoutDelay = 16000000;
       
    44 const TInt KDefaultRecordDelay = 2000000;
       
    45 const TInt KDefaultPriority = 90;
       
    46 const TInt KDefaultPriorityPreference = 3;
       
    47 const TInt KDefaultSampleRate = 8000;
       
    48 const TInt KDefaultChannels = 1;
       
    49 const TInt KDefaultDataType = KMMFFourCCCodeNULL;
       
    50 const TInt KDefaultSampleSize = 16;
       
    51 
       
    52 const TInt KRelVolumeMin=0;
       
    53 const TInt KRelVolumeMax=100;
       
    54 const TInt KRelGainMin=0;
       
    55 const TInt KRelGainMax=100;
       
    56 const TInt KBufferSize=4096;
       
    57 
       
    58 
       
    59 _LIT(KSectionStart, "[general]");
       
    60 _LIT(KSectionEnd, "[general_end]");
       
    61 
       
    62 _LIT(KTestCaseConfigStart, "[TestCase]");
       
    63 _LIT(KTestCaseConfigEnd, "[End_TestCase]");
       
    64 
       
    65 // Tags
       
    66 _LIT(KTagId, "id");
       
    67 _LIT(KTagTitle, "Title");
       
    68 _LIT(KTagSoundDes, "SoundDes");
       
    69 _LIT(KTagBufferSize, "BufferSize");
       
    70 _LIT(KTagVolume, "Volume");
       
    71 _LIT(KTagSampleRate, "SampleRate");
       
    72 _LIT(KTagChannelCount, "Channels");
       
    73 _LIT(KTagDelay, "Delay");
       
    74 _LIT(KTagBalance, "Balance");
       
    75 _LIT(KTagPriority, "Priority");
       
    76 _LIT(KTagPriorityPreference, "PriorityPreference");
       
    77 _LIT(KTagGain, "Gain");
       
    78 _LIT(KTagDataType, "DataType");
       
    79 _LIT(KTagStopDelay, "StopDelay");
       
    80 _LIT(KTagSampleSize, "SampleSize");
       
    81 
       
    82 
       
    83 _LIT(KLogFileTag, "logFileName");
       
    84 _LIT(KLogPathTag, "logPath");
       
    85 
       
    86 _LIT(KDefLogFile, "audioInputStream.log");
       
    87 _LIT(KDefLogPath, "");
       
    88 
       
    89 //Log literals
       
    90 //_LIT(KTestCaseTitleFormat, "MMFTS.PLAY.%d-%S");
       
    91 _LIT(KTestCaseTitleFormat, "%$2$S - %$1$d");
       
    92 //_LIT(KDefaultLogger, "Using Default Logger");
       
    93 _LIT(KLoggerStarted, "Started logger for INI file [%S]");
       
    94 _LIT(KOpeningConfig, "Opening configuration file [%S]");
       
    95 _LIT(KOpeningLogFilepath, "Opening logfile path [%S]");
       
    96 _LIT(KConfigRequired, "TestCases need to be configured in file");
       
    97 _LIT(KConfigInvalid, "TestCases need to be configured properly (file might have change between GetTestCases and RunTestCase)");
       
    98 
       
    99 //Results
       
   100 _LIT(KTestCaseResultFinished, "TestCase finished, result: %S");
       
   101 _LIT(KTestCaseResultSuccess, "Successful");
       
   102 _LIT(KTestCaseResultNotImplemented, "TestCase not implemented");
       
   103 _LIT(KTestCaseResultNotSupported, "TestCase Not Supported");
       
   104 _LIT(KTestCaseResultFail, "Failed");
       
   105 _LIT(KTestCaseResultLeft, "A LEAVE occurred");
       
   106 _LIT(KTestCaseResultFailExpectedValueDifferent, "Expected result is different from actual result");
       
   107 _LIT(KTestCaseResultFailSkippedEvents, "Not enough events took place to complete test");
       
   108 _LIT(KTestCaseResultFailTimeOut, "The test timedout");
       
   109 
       
   110 _LIT(KTestCaseNotFound, "The TestCase id is invalid");
       
   111 
       
   112 
       
   113 #endif  //AUDIO_STREAM_CONSTANTS_H
       
   114 
       
   115 // End of File