os/mm/mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-recording.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description: 
sl@0
    15
//
sl@0
    16
//
sl@0
    17
//! @file
sl@0
    18
//! @SYMTestSuiteName multimedia-mmf-devsound-validation-automated-recording
sl@0
    19
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
sl@0
    20
//
sl@0
    21
// Tests all public elements of the CMMFDevSound
sl@0
    22
// classes as a means of confidence that the APIs work as expected.
sl@0
    23
// 
sl@0
    24
// The purpose is to provide a regression test suite of PublishedAll
sl@0
    25
// APIs for: CMMFDevSound
sl@0
    26
// The tests are fully automated.
sl@0
    27
//
sl@0
    28
sl@0
    29
sl@0
    30
sl@0
    31
LOAD_SUITE t_devsound
sl@0
    32
sl@0
    33
sl@0
    34
sl@0
    35
sl@0
    36
sl@0
    37
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0001
sl@0
    38
sl@0
    39
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0001
sl@0
    40
//!@SYMAPI
sl@0
    41
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
sl@0
    42
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
sl@0
    43
//!                CMMFDevSound::Capabilities()
sl@0
    44
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
sl@0
    45
//!                CMMFDevSound::PlayInitL()
sl@0
    46
//!                CMMFDevSound::RecordInitL()
sl@0
    47
//!                CMMFDevSound::Stop()
sl@0
    48
//!                CMMFDevSound::Pause()
sl@0
    49
//!@SYMAuthor			etorres
sl@0
    50
//!@SYMCreationDate		7/28/2008 
sl@0
    51
//!@SYMTestCaseDesc		AMR-NB recording with pause
sl@0
    52
//!@SYMTestActions
sl@0
    53
//!                1. Create Devsound instance 
sl@0
    54
//!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
sl@0
    55
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
    56
//!                4. Capabilities
sl@0
    57
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
    58
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecAMR_pause.amr)
sl@0
    59
//!                7. Record 10s 
sl@0
    60
//!                8. Pause 5s(Pause=TRUE)
sl@0
    61
//!                9. Record 10s
sl@0
    62
//!                10. Stop 5s
sl@0
    63
//!                11. CloseFile
sl@0
    64
//!                12. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = AMR)
sl@0
    65
//!                13. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
    66
//!                14. Capabilities
sl@0
    67
//!                15. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
    68
//!                16. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecAMR_pause.amr)
sl@0
    69
//!                17. Start Play EOF 
sl@0
    70
//!                18. CloseFile
sl@0
    71
//!                19. Delete devsound instance
sl@0
    72
//!@SYMTestStatus		Verified
sl@0
    73
//!@SYMTestPriority		High
sl@0
    74
//!@SYMTestExpectedResults
sl@0
    75
//!                AMR-NB recording with pause
sl@0
    76
//!@SYMTestType			CIT
sl@0
    77
sl@0
    78
	START_TEST_BLOCK	60	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
    79
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
    80
		COMMAND		devsound1		NewL
sl@0
    81
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0001-0001-InitializeL_command02
sl@0
    82
		OUTSTANDING
sl@0
    83
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0001-0001-SetPrioritySettings_command03
sl@0
    84
		COMMAND		devsound1		Capabilities
sl@0
    85
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0001-0001-SetConfigL_command05
sl@0
    86
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0001-0001-ReplaceFile_command06
sl@0
    87
		COMMAND		devsound1		RecordInitL
sl@0
    88
		ASYNC_DELAY  10000000 
sl@0
    89
		COMMAND		devsound1		Stop			MULTIMEDIA-MMF-DevSound-Recording-0001-0001-Stop_command08
sl@0
    90
		DELAY  5000000 
sl@0
    91
		COMMAND		devsound1		RecordInitL
sl@0
    92
		ASYNC_DELAY  10000000 
sl@0
    93
		COMMAND		devsound1		Stop
sl@0
    94
		DELAY  5000000 
sl@0
    95
		COMMAND		devsound1		CloseFile
sl@0
    96
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0001-0001-InitializeL_command12
sl@0
    97
		OUTSTANDING
sl@0
    98
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0001-0001-SetPrioritySettings_command13
sl@0
    99
		COMMAND		devsound1		Capabilities
sl@0
   100
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0001-0001-SetConfigL_command15
sl@0
   101
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0001-0001-OpenFile_command16
sl@0
   102
		COMMAND		devsound1		PlayInitL
sl@0
   103
		OUTSTANDING
sl@0
   104
		COMMAND		devsound1		CloseFile
sl@0
   105
		COMMAND		devsound1		~
sl@0
   106
	END_TEST_BLOCK
sl@0
   107
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0001
sl@0
   108
sl@0
   109
sl@0
   110
sl@0
   111
sl@0
   112
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0002
sl@0
   113
sl@0
   114
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0002
sl@0
   115
//!@SYMAPI
sl@0
   116
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
sl@0
   117
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
sl@0
   118
//!                CMMFDevSound::Capabilities()
sl@0
   119
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
sl@0
   120
//!                CMMFDevSound::PlayInitL()
sl@0
   121
//!                CMMFDevSound::RecordInitL()
sl@0
   122
//!                CMMFDevSound::Stop()
sl@0
   123
//!                CMMFDevSound::Pause()
sl@0
   124
//!@SYMAuthor			etorres
sl@0
   125
//!@SYMCreationDate		7/28/2008 
sl@0
   126
//!@SYMTestCaseDesc		AMR-WB recording with pause
sl@0
   127
//!@SYMTestActions
sl@0
   128
//!                1. Create Devsound instance 
sl@0
   129
//!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AWB)
sl@0
   130
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   131
//!                4. Capabilities
sl@0
   132
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
   133
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecAWB_pause.awb)
sl@0
   134
//!                7. Record 10s 
sl@0
   135
//!                8. Pause 5s(Pause=TRUE)
sl@0
   136
//!                9. Record 10s
sl@0
   137
//!                10. Stop 5s
sl@0
   138
//!                11. CloseFile
sl@0
   139
//!                12. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = AWB)
sl@0
   140
//!                13. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   141
//!                14. Capabilities
sl@0
   142
//!                15. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
   143
//!                16. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecAWB_pause.awb)
sl@0
   144
//!                17. Start Play EOF 
sl@0
   145
//!                18. CloseFile
sl@0
   146
//!                19. Delete devsound instance
sl@0
   147
//!@SYMTestStatus		Verified
sl@0
   148
//!@SYMTestPriority		High
sl@0
   149
//!@SYMTestExpectedResults
sl@0
   150
//!                AMR-WB recording with pause
sl@0
   151
//!@SYMTestType			CIT
sl@0
   152
sl@0
   153
	START_TEST_BLOCK	60	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   154
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   155
		COMMAND		devsound1		NewL
sl@0
   156
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0002-0001-InitializeL_command02
sl@0
   157
		OUTSTANDING
sl@0
   158
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0002-0001-SetPrioritySettings_command03
sl@0
   159
		COMMAND		devsound1		Capabilities
sl@0
   160
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0002-0001-SetConfigL_command05
sl@0
   161
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0002-0001-ReplaceFile_command06
sl@0
   162
		COMMAND		devsound1		RecordInitL
sl@0
   163
		ASYNC_DELAY  10000000 
sl@0
   164
		COMMAND		devsound1		Stop			MULTIMEDIA-MMF-DevSound-Recording-0002-0001-Stop_command08
sl@0
   165
		DELAY  5000000 
sl@0
   166
		COMMAND		devsound1		RecordInitL
sl@0
   167
		ASYNC_DELAY  10000000 
sl@0
   168
		COMMAND		devsound1		Stop
sl@0
   169
		DELAY  5000000 
sl@0
   170
		COMMAND		devsound1		CloseFile
sl@0
   171
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0002-0001-InitializeL_command12
sl@0
   172
		OUTSTANDING
sl@0
   173
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0002-0001-SetPrioritySettings_command13
sl@0
   174
		COMMAND		devsound1		Capabilities
sl@0
   175
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0002-0001-SetConfigL_command15
sl@0
   176
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0002-0001-OpenFile_command16
sl@0
   177
		COMMAND		devsound1		PlayInitL
sl@0
   178
		OUTSTANDING
sl@0
   179
		COMMAND		devsound1		CloseFile
sl@0
   180
		COMMAND		devsound1		~
sl@0
   181
	END_TEST_BLOCK
sl@0
   182
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0002
sl@0
   183
sl@0
   184
sl@0
   185
sl@0
   186
sl@0
   187
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0003
sl@0
   188
sl@0
   189
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0003
sl@0
   190
//!@SYMAPI
sl@0
   191
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
sl@0
   192
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
sl@0
   193
//!                CMMFDevSound::Capabilities()
sl@0
   194
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
sl@0
   195
//!                CMMFDevSound::PlayInitL()
sl@0
   196
//!                CMMFDevSound::RecordInitL()
sl@0
   197
//!                CMMFDevSound::Stop()
sl@0
   198
//!                CMMFDevSound::Pause()
sl@0
   199
//!@SYMAuthor			etorres
sl@0
   200
//!@SYMCreationDate		7/28/2008 
sl@0
   201
//!@SYMTestCaseDesc		G.711 recording with pause
sl@0
   202
//!@SYMTestActions
sl@0
   203
//!                1. Create Devsound instance 
sl@0
   204
//!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = G711)
sl@0
   205
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   206
//!                4. Capabilities
sl@0
   207
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
   208
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecG711_pause.pcm)
sl@0
   209
//!                7. Record 10s 
sl@0
   210
//!                8. Pause 5s(Pause=TRUE)
sl@0
   211
//!                9. Record 10s
sl@0
   212
//!                10. Stop 5s
sl@0
   213
//!                11. CloseFile
sl@0
   214
//!                12. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = G711)
sl@0
   215
//!                13. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   216
//!                14. Capabilities
sl@0
   217
//!                15. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
   218
//!                16. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecG711_pause.pcm)
sl@0
   219
//!                17. Start Play EOF 
sl@0
   220
//!                18. CloseFile
sl@0
   221
//!                19. Delete devsound instance
sl@0
   222
//!@SYMTestStatus		Verified
sl@0
   223
//!@SYMTestPriority		High
sl@0
   224
//!@SYMTestExpectedResults
sl@0
   225
//!                G.711 recording with pause
sl@0
   226
//!@SYMTestType			CIT
sl@0
   227
sl@0
   228
	START_TEST_BLOCK	60	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   229
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   230
		COMMAND		devsound1		NewL
sl@0
   231
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0003-0001-InitializeL_command02
sl@0
   232
		OUTSTANDING
sl@0
   233
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0003-0001-SetPrioritySettings_command03
sl@0
   234
		COMMAND		devsound1		Capabilities
sl@0
   235
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0003-0001-SetConfigL_command05
sl@0
   236
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0003-0001-ReplaceFile_command06
sl@0
   237
		COMMAND		devsound1		RecordInitL
sl@0
   238
		ASYNC_DELAY  10000000 
sl@0
   239
		COMMAND		devsound1		Stop			MULTIMEDIA-MMF-DevSound-Recording-0003-0001-Stop_command08
sl@0
   240
		DELAY  5000000 
sl@0
   241
		COMMAND		devsound1		RecordInitL
sl@0
   242
		ASYNC_DELAY  10000000 
sl@0
   243
		COMMAND		devsound1		Stop
sl@0
   244
		DELAY  5000000 
sl@0
   245
		COMMAND		devsound1		CloseFile
sl@0
   246
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0003-0001-InitializeL_command12
sl@0
   247
		OUTSTANDING
sl@0
   248
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0003-0001-SetPrioritySettings_command13
sl@0
   249
		COMMAND		devsound1		Capabilities
sl@0
   250
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0003-0001-SetConfigL_command15
sl@0
   251
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0003-0001-OpenFile_command16
sl@0
   252
		COMMAND		devsound1		PlayInitL
sl@0
   253
		OUTSTANDING
sl@0
   254
		COMMAND		devsound1		CloseFile
sl@0
   255
		COMMAND		devsound1		~
sl@0
   256
	END_TEST_BLOCK
sl@0
   257
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0003
sl@0
   258
sl@0
   259
sl@0
   260
sl@0
   261
sl@0
   262
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0004
sl@0
   263
sl@0
   264
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0004
sl@0
   265
//!@SYMAPI
sl@0
   266
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
sl@0
   267
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
sl@0
   268
//!                CMMFDevSound::Capabilities()
sl@0
   269
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
sl@0
   270
//!                CMMFDevSound::PlayInitL()
sl@0
   271
//!                CMMFDevSound::RecordInitL()
sl@0
   272
//!                CMMFDevSound::Stop()
sl@0
   273
//!                CMMFDevSound::Pause()
sl@0
   274
//!@SYMAuthor			etorres
sl@0
   275
//!@SYMCreationDate		7/28/2008 
sl@0
   276
//!@SYMTestCaseDesc		G.729AB recording with pause
sl@0
   277
//!@SYMTestActions
sl@0
   278
//!                1. Create Devsound instance 
sl@0
   279
//!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = G729)
sl@0
   280
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   281
//!                4. Capabilities
sl@0
   282
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
   283
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecG729_pause.bin)
sl@0
   284
//!                7. Record 10s 
sl@0
   285
//!                8. Pause 5s(Pause=TRUE)
sl@0
   286
//!                9. Record 10s
sl@0
   287
//!                10. Stop 5s
sl@0
   288
//!                11. CloseFile
sl@0
   289
//!                12. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = G729)
sl@0
   290
//!                13. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   291
//!                14. Capabilities
sl@0
   292
//!                15. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
   293
//!                16. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecG729_pause.bin)
sl@0
   294
//!                17. Start Play EOF 
sl@0
   295
//!                18. CloseFile
sl@0
   296
//!                19. Delete devsound instance
sl@0
   297
//!@SYMTestStatus		Verified
sl@0
   298
//!@SYMTestPriority		High
sl@0
   299
//!@SYMTestExpectedResults
sl@0
   300
//!                G.729AB recording with pause
sl@0
   301
//!@SYMTestType			CIT
sl@0
   302
sl@0
   303
	START_TEST_BLOCK	60	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   304
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   305
		COMMAND		devsound1		NewL
sl@0
   306
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0004-0001-InitializeL_command02
sl@0
   307
		OUTSTANDING
sl@0
   308
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0004-0001-SetPrioritySettings_command03
sl@0
   309
		COMMAND		devsound1		Capabilities
sl@0
   310
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0004-0001-SetConfigL_command05
sl@0
   311
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0004-0001-ReplaceFile_command06
sl@0
   312
		COMMAND		devsound1		RecordInitL
sl@0
   313
		ASYNC_DELAY  10000000 
sl@0
   314
		COMMAND		devsound1		Stop			MULTIMEDIA-MMF-DevSound-Recording-0004-0001-Stop_command08
sl@0
   315
		DELAY  5000000 
sl@0
   316
		COMMAND		devsound1		RecordInitL
sl@0
   317
		ASYNC_DELAY  10000000 
sl@0
   318
		COMMAND		devsound1		Stop
sl@0
   319
		DELAY  5000000 
sl@0
   320
		COMMAND		devsound1		CloseFile
sl@0
   321
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0004-0001-InitializeL_command12
sl@0
   322
		OUTSTANDING
sl@0
   323
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0004-0001-SetPrioritySettings_command13
sl@0
   324
		COMMAND		devsound1		Capabilities
sl@0
   325
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0004-0001-SetConfigL_command15
sl@0
   326
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0004-0001-OpenFile_command16
sl@0
   327
		COMMAND		devsound1		PlayInitL
sl@0
   328
		OUTSTANDING
sl@0
   329
		COMMAND		devsound1		CloseFile
sl@0
   330
		COMMAND		devsound1		~
sl@0
   331
	END_TEST_BLOCK
sl@0
   332
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0004
sl@0
   333
sl@0
   334
sl@0
   335
sl@0
   336
sl@0
   337
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0005
sl@0
   338
sl@0
   339
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0005
sl@0
   340
//!@SYMAPI
sl@0
   341
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
sl@0
   342
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
sl@0
   343
//!                CMMFDevSound::Capabilities()
sl@0
   344
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
sl@0
   345
//!                CMMFDevSound::PlayInitL()
sl@0
   346
//!                CMMFDevSound::RecordInitL()
sl@0
   347
//!                CMMFDevSound::Stop()
sl@0
   348
//!                CMMFDevSound::Pause()
sl@0
   349
//!@SYMAuthor			etorres
sl@0
   350
//!@SYMCreationDate		7/28/2008 
sl@0
   351
//!@SYMTestCaseDesc		iLBC recording with pause
sl@0
   352
//!@SYMTestActions
sl@0
   353
//!                1. Create Devsound instance 
sl@0
   354
//!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = ILBC)
sl@0
   355
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   356
//!                4. Capabilities
sl@0
   357
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
   358
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecILBC_pause.bin)
sl@0
   359
//!                7. Record 10s 
sl@0
   360
//!                8. Pause 5s(Pause=TRUE)
sl@0
   361
//!                9. Record 10s
sl@0
   362
//!                10. Stop 5s
sl@0
   363
//!                11. CloseFile
sl@0
   364
//!                12. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = ILBC)
sl@0
   365
//!                13. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   366
//!                14. Capabilities
sl@0
   367
//!                15. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
   368
//!                16. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecILBC_pause.bin)
sl@0
   369
//!                17. Start Play EOF 
sl@0
   370
//!                18. CloseFile
sl@0
   371
//!                19. Delete devsound instance
sl@0
   372
//!@SYMTestStatus		Verified
sl@0
   373
//!@SYMTestPriority		High
sl@0
   374
//!@SYMTestExpectedResults
sl@0
   375
//!                iLBC recording with pause
sl@0
   376
//!@SYMTestType			CIT
sl@0
   377
sl@0
   378
	START_TEST_BLOCK	60	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   379
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   380
		COMMAND		devsound1		NewL
sl@0
   381
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0005-0001-InitializeL_command02
sl@0
   382
		OUTSTANDING
sl@0
   383
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0005-0001-SetPrioritySettings_command03
sl@0
   384
		COMMAND		devsound1		Capabilities
sl@0
   385
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0005-0001-SetConfigL_command05
sl@0
   386
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0005-0001-ReplaceFile_command06
sl@0
   387
		COMMAND		devsound1		RecordInitL
sl@0
   388
		ASYNC_DELAY  10000000 
sl@0
   389
		COMMAND		devsound1		Stop			MULTIMEDIA-MMF-DevSound-Recording-0005-0001-Stop_command08
sl@0
   390
		DELAY  5000000 
sl@0
   391
		COMMAND		devsound1		RecordInitL
sl@0
   392
		ASYNC_DELAY  10000000 
sl@0
   393
		COMMAND		devsound1		Stop
sl@0
   394
		DELAY  5000000 
sl@0
   395
		COMMAND		devsound1		CloseFile
sl@0
   396
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0005-0001-InitializeL_command12
sl@0
   397
		OUTSTANDING
sl@0
   398
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0005-0001-SetPrioritySettings_command13
sl@0
   399
		COMMAND		devsound1		Capabilities
sl@0
   400
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0005-0001-SetConfigL_command15
sl@0
   401
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0005-0001-OpenFile_command16
sl@0
   402
		COMMAND		devsound1		PlayInitL
sl@0
   403
		OUTSTANDING
sl@0
   404
		COMMAND		devsound1		CloseFile
sl@0
   405
		COMMAND		devsound1		~
sl@0
   406
	END_TEST_BLOCK
sl@0
   407
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0005
sl@0
   408
sl@0
   409
sl@0
   410
sl@0
   411
sl@0
   412
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0006
sl@0
   413
sl@0
   414
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0006
sl@0
   415
//!@SYMAPI
sl@0
   416
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
sl@0
   417
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
sl@0
   418
//!                CMMFDevSound::Capabilities()
sl@0
   419
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
sl@0
   420
//!                CMMFDevSound::PlayInitL()
sl@0
   421
//!                CMMFDevSound::RecordInitL()
sl@0
   422
//!                CMMFDevSound::Stop()
sl@0
   423
//!                CMMFDevSound::Pause()
sl@0
   424
//!@SYMAuthor			etorres
sl@0
   425
//!@SYMCreationDate		7/28/2008 
sl@0
   426
//!@SYMTestCaseDesc		PCM recording with pause
sl@0
   427
//!@SYMTestActions
sl@0
   428
//!                1. Create Devsound instance 
sl@0
   429
//!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
   430
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   431
//!                4. Capabilities
sl@0
   432
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
   433
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecRAW_pause.pcm)
sl@0
   434
//!                7. Record 10s 
sl@0
   435
//!                8. Pause 5s(Pause=TRUE)
sl@0
   436
//!                9. Record 10s
sl@0
   437
//!                10. Stop 5s
sl@0
   438
//!                11. CloseFile
sl@0
   439
//!                12. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
   440
//!                13. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   441
//!                14. Capabilities
sl@0
   442
//!                15. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
   443
//!                16. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecRAW_pause.pcm)
sl@0
   444
//!                17. Start Play EOF 
sl@0
   445
//!                18. CloseFile
sl@0
   446
//!                19. Delete devsound instance
sl@0
   447
//!@SYMTestStatus		Verified
sl@0
   448
//!@SYMTestPriority		High
sl@0
   449
//!@SYMTestExpectedResults
sl@0
   450
//!                PCM recording with pause
sl@0
   451
//!@SYMTestType			CIT
sl@0
   452
sl@0
   453
	START_TEST_BLOCK	60	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   454
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   455
		COMMAND		devsound1		NewL
sl@0
   456
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0006-0001-InitializeL_command02
sl@0
   457
		OUTSTANDING
sl@0
   458
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0006-0001-SetPrioritySettings_command03
sl@0
   459
		COMMAND		devsound1		Capabilities
sl@0
   460
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0006-0001-SetConfigL_command05
sl@0
   461
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0006-0001-ReplaceFile_command06
sl@0
   462
		COMMAND		devsound1		RecordInitL
sl@0
   463
		ASYNC_DELAY  10000000 
sl@0
   464
		COMMAND		devsound1		Stop			MULTIMEDIA-MMF-DevSound-Recording-0006-0001-Stop_command08
sl@0
   465
		DELAY  5000000 
sl@0
   466
		COMMAND		devsound1		RecordInitL
sl@0
   467
		ASYNC_DELAY  10000000 
sl@0
   468
		COMMAND		devsound1		Stop
sl@0
   469
		DELAY  5000000 
sl@0
   470
		COMMAND		devsound1		CloseFile
sl@0
   471
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0006-0001-InitializeL_command12
sl@0
   472
		OUTSTANDING
sl@0
   473
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0006-0001-SetPrioritySettings_command13
sl@0
   474
		COMMAND		devsound1		Capabilities
sl@0
   475
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0006-0001-SetConfigL_command15
sl@0
   476
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0006-0001-OpenFile_command16
sl@0
   477
		COMMAND		devsound1		PlayInitL
sl@0
   478
		OUTSTANDING
sl@0
   479
		COMMAND		devsound1		CloseFile
sl@0
   480
		COMMAND		devsound1		~
sl@0
   481
	END_TEST_BLOCK
sl@0
   482
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0006
sl@0
   483
sl@0
   484
sl@0
   485
sl@0
   486
sl@0
   487
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0007
sl@0
   488
sl@0
   489
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0007
sl@0
   490
//!@SYMAPI
sl@0
   491
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
   492
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
   493
//!                CMMFDevSound::Capabilities()
sl@0
   494
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
   495
//!                CMMFDevSound::PlayInitL()
sl@0
   496
//!                CMMFDevSound::RecordInitL()
sl@0
   497
//!                CMMFDevSound::Stop()
sl@0
   498
//!@SYMAuthor			etorres
sl@0
   499
//!@SYMCreationDate		7/21/2008 
sl@0
   500
//!@SYMTestCaseDesc		PCM - 16 KHz mono recording and playback
sl@0
   501
//!@SYMTestActions
sl@0
   502
//!                1. Create Devsound instance 
sl@0
   503
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
   504
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   505
//!                4. Capabilities
sl@0
   506
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate16000Hz)
sl@0
   507
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_16k_mono_10s.pcm)
sl@0
   508
//!                7. Record 10s 
sl@0
   509
//!                8. Stop 5s
sl@0
   510
//!                9. CloseFile
sl@0
   511
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
   512
//!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   513
//!                12. Capabilities
sl@0
   514
//!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate16000Hz)
sl@0
   515
//!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_16k_mono_10s.pcm)
sl@0
   516
//!                15. Start Play EOF 
sl@0
   517
//!                16. CloseFile
sl@0
   518
//!                17. Delete devsound instance
sl@0
   519
//!@SYMTestStatus		Verified
sl@0
   520
//!@SYMTestPriority		High
sl@0
   521
//!@SYMTestExpectedResults
sl@0
   522
//!                PCM - 16 KHz mono recording and playback
sl@0
   523
//!@SYMTestType			CIT
sl@0
   524
sl@0
   525
	START_TEST_BLOCK	35	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   526
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   527
		COMMAND		devsound1		NewL
sl@0
   528
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0007-0001-InitializeL_command02
sl@0
   529
		OUTSTANDING
sl@0
   530
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0007-0001-SetPrioritySettings_command03
sl@0
   531
		COMMAND		devsound1		Capabilities
sl@0
   532
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0007-0001-SetConfigL_command05
sl@0
   533
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0007-0001-ReplaceFile_command06
sl@0
   534
		COMMAND		devsound1		RecordInitL
sl@0
   535
		ASYNC_DELAY  10000000 
sl@0
   536
		COMMAND		devsound1		Stop
sl@0
   537
		DELAY  5000000 
sl@0
   538
		COMMAND		devsound1		CloseFile
sl@0
   539
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0007-0001-InitializeL_command10
sl@0
   540
		OUTSTANDING
sl@0
   541
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0007-0001-SetPrioritySettings_command11
sl@0
   542
		COMMAND		devsound1		Capabilities
sl@0
   543
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0007-0001-SetConfigL_command13
sl@0
   544
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0007-0001-OpenFile_command14
sl@0
   545
		COMMAND		devsound1		PlayInitL
sl@0
   546
		OUTSTANDING
sl@0
   547
		COMMAND		devsound1		CloseFile
sl@0
   548
		COMMAND		devsound1		~
sl@0
   549
	END_TEST_BLOCK
sl@0
   550
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0007
sl@0
   551
sl@0
   552
sl@0
   553
sl@0
   554
sl@0
   555
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0008
sl@0
   556
sl@0
   557
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0008
sl@0
   558
//!@SYMAPI
sl@0
   559
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
   560
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
   561
//!                CMMFDevSound::Capabilities()
sl@0
   562
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
   563
//!                CMMFDevSound::PlayInitL()
sl@0
   564
//!                CMMFDevSound::RecordInitL()
sl@0
   565
//!                CMMFDevSound::Stop()
sl@0
   566
//!@SYMAuthor			etorres
sl@0
   567
//!@SYMCreationDate		7/21/2008 
sl@0
   568
//!@SYMTestCaseDesc		PCM - 16 KHz stereo recording and playback
sl@0
   569
//!@SYMTestActions
sl@0
   570
//!                1. Create Devsound instance 
sl@0
   571
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
   572
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   573
//!                4. Capabilities
sl@0
   574
//!                5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate16000Hz)
sl@0
   575
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_16k_stereo_10s.pcm)
sl@0
   576
//!                7. Record 10s 
sl@0
   577
//!                8. Stop 5s
sl@0
   578
//!                9. CloseFile
sl@0
   579
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
   580
//!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   581
//!                12. Capabilities
sl@0
   582
//!                13. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate16000Hz)
sl@0
   583
//!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_16k_stereo_10s.pcm)
sl@0
   584
//!                15. Start Play EOF 
sl@0
   585
//!                16. CloseFile
sl@0
   586
//!                17. Delete devsound instance
sl@0
   587
//!@SYMTestStatus		Verified
sl@0
   588
//!@SYMTestPriority		High
sl@0
   589
//!@SYMTestExpectedResults
sl@0
   590
//!                PCM - 16 KHz stereo recording and playback
sl@0
   591
//!@SYMTestType			CIT
sl@0
   592
sl@0
   593
	START_TEST_BLOCK	35	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   594
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   595
		COMMAND		devsound1		NewL
sl@0
   596
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0008-0001-InitializeL_command02
sl@0
   597
		OUTSTANDING
sl@0
   598
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0008-0001-SetPrioritySettings_command03
sl@0
   599
		COMMAND		devsound1		Capabilities
sl@0
   600
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0008-0001-SetConfigL_command05
sl@0
   601
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0008-0001-ReplaceFile_command06
sl@0
   602
		COMMAND		devsound1		RecordInitL
sl@0
   603
		ASYNC_DELAY  10000000 
sl@0
   604
		COMMAND		devsound1		Stop
sl@0
   605
		DELAY  5000000 
sl@0
   606
		COMMAND		devsound1		CloseFile
sl@0
   607
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0008-0001-InitializeL_command10
sl@0
   608
		OUTSTANDING
sl@0
   609
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0008-0001-SetPrioritySettings_command11
sl@0
   610
		COMMAND		devsound1		Capabilities
sl@0
   611
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0008-0001-SetConfigL_command13
sl@0
   612
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0008-0001-OpenFile_command14
sl@0
   613
		COMMAND		devsound1		PlayInitL
sl@0
   614
		OUTSTANDING
sl@0
   615
		COMMAND		devsound1		CloseFile
sl@0
   616
		COMMAND		devsound1		~
sl@0
   617
	END_TEST_BLOCK
sl@0
   618
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0008
sl@0
   619
sl@0
   620
sl@0
   621
sl@0
   622
sl@0
   623
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0009
sl@0
   624
sl@0
   625
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0009
sl@0
   626
//!@SYMAPI
sl@0
   627
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
   628
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
   629
//!                CMMFDevSound::Capabilities()
sl@0
   630
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
   631
//!                CMMFDevSound::PlayInitL()
sl@0
   632
//!                CMMFDevSound::RecordInitL()
sl@0
   633
//!                CMMFDevSound::Stop()
sl@0
   634
//!@SYMAuthor			etorres
sl@0
   635
//!@SYMCreationDate		7/21/2008 
sl@0
   636
//!@SYMTestCaseDesc		PCM - 24 KHz mono recording and playback
sl@0
   637
//!@SYMTestActions
sl@0
   638
//!                1. Create Devsound instance 
sl@0
   639
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
   640
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   641
//!                4. Capabilities
sl@0
   642
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate24000Hz)
sl@0
   643
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_24k_mono_10s.pcm)
sl@0
   644
//!                7. Record 10s 
sl@0
   645
//!                8. Stop 5s
sl@0
   646
//!                9. CloseFile
sl@0
   647
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
   648
//!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   649
//!                12. Capabilities
sl@0
   650
//!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate24000Hz)
sl@0
   651
//!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_24k_mono_10s.pcm)
sl@0
   652
//!                15. Start Play EOF 
sl@0
   653
//!                16. CloseFile
sl@0
   654
//!                17. Delete devsound instance
sl@0
   655
//!@SYMTestStatus		Verified
sl@0
   656
//!@SYMTestPriority		High
sl@0
   657
//!@SYMTestExpectedResults
sl@0
   658
//!                PCM - 24 KHz mono recording and playback
sl@0
   659
//!@SYMTestType			CIT
sl@0
   660
sl@0
   661
	START_TEST_BLOCK	35	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   662
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   663
		COMMAND		devsound1		NewL
sl@0
   664
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0009-0001-InitializeL_command02
sl@0
   665
		OUTSTANDING
sl@0
   666
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0009-0001-SetPrioritySettings_command03
sl@0
   667
		COMMAND		devsound1		Capabilities
sl@0
   668
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0009-0001-SetConfigL_command05
sl@0
   669
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0009-0001-ReplaceFile_command06
sl@0
   670
		COMMAND		devsound1		RecordInitL
sl@0
   671
		ASYNC_DELAY  10000000 
sl@0
   672
		COMMAND		devsound1		Stop
sl@0
   673
		DELAY  5000000 
sl@0
   674
		COMMAND		devsound1		CloseFile
sl@0
   675
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0009-0001-InitializeL_command10
sl@0
   676
		OUTSTANDING
sl@0
   677
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0009-0001-SetPrioritySettings_command11
sl@0
   678
		COMMAND		devsound1		Capabilities
sl@0
   679
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0009-0001-SetConfigL_command13
sl@0
   680
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0009-0001-OpenFile_command14
sl@0
   681
		COMMAND		devsound1		PlayInitL
sl@0
   682
		OUTSTANDING
sl@0
   683
		COMMAND		devsound1		CloseFile
sl@0
   684
		COMMAND		devsound1		~
sl@0
   685
	END_TEST_BLOCK
sl@0
   686
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0009
sl@0
   687
sl@0
   688
sl@0
   689
sl@0
   690
sl@0
   691
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0010
sl@0
   692
sl@0
   693
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0010
sl@0
   694
//!@SYMAPI
sl@0
   695
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
   696
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
   697
//!                CMMFDevSound::Capabilities()
sl@0
   698
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
   699
//!                CMMFDevSound::PlayInitL()
sl@0
   700
//!                CMMFDevSound::RecordInitL()
sl@0
   701
//!                CMMFDevSound::Stop()
sl@0
   702
//!@SYMAuthor			etorres
sl@0
   703
//!@SYMCreationDate		7/21/2008 
sl@0
   704
//!@SYMTestCaseDesc		PCM - 24 KHz stereo recording and playback
sl@0
   705
//!@SYMTestActions
sl@0
   706
//!                1. Create Devsound instance 
sl@0
   707
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
   708
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   709
//!                4. Capabilities
sl@0
   710
//!                5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate24000Hz)
sl@0
   711
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_24k_stereo_10s.pcm)
sl@0
   712
//!                7. Record 10s 
sl@0
   713
//!                8. Stop 5s
sl@0
   714
//!                9. CloseFile
sl@0
   715
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
   716
//!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   717
//!                12. Capabilities
sl@0
   718
//!                13. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate24000Hz)
sl@0
   719
//!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_24k_stereo_10s.pcm)
sl@0
   720
//!                15. Start Play EOF 
sl@0
   721
//!                16. CloseFile
sl@0
   722
//!                17. Delete devsound instance
sl@0
   723
//!@SYMTestStatus		Verified
sl@0
   724
//!@SYMTestPriority		High
sl@0
   725
//!@SYMTestExpectedResults
sl@0
   726
//!                PCM - 24 KHz stereo recording and playback
sl@0
   727
//!@SYMTestType			CIT
sl@0
   728
sl@0
   729
	START_TEST_BLOCK	35	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   730
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   731
		COMMAND		devsound1		NewL
sl@0
   732
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0010-0001-InitializeL_command02
sl@0
   733
		OUTSTANDING
sl@0
   734
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0010-0001-SetPrioritySettings_command03
sl@0
   735
		COMMAND		devsound1		Capabilities
sl@0
   736
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0010-0001-SetConfigL_command05
sl@0
   737
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0010-0001-ReplaceFile_command06
sl@0
   738
		COMMAND		devsound1		RecordInitL
sl@0
   739
		ASYNC_DELAY  10000000 
sl@0
   740
		COMMAND		devsound1		Stop
sl@0
   741
		DELAY  5000000 
sl@0
   742
		COMMAND		devsound1		CloseFile
sl@0
   743
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0010-0001-InitializeL_command10
sl@0
   744
		OUTSTANDING
sl@0
   745
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0010-0001-SetPrioritySettings_command11
sl@0
   746
		COMMAND		devsound1		Capabilities
sl@0
   747
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0010-0001-SetConfigL_command13
sl@0
   748
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0010-0001-OpenFile_command14
sl@0
   749
		COMMAND		devsound1		PlayInitL
sl@0
   750
		OUTSTANDING
sl@0
   751
		COMMAND		devsound1		CloseFile
sl@0
   752
		COMMAND		devsound1		~
sl@0
   753
	END_TEST_BLOCK
sl@0
   754
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0010
sl@0
   755
sl@0
   756
sl@0
   757
sl@0
   758
sl@0
   759
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0011
sl@0
   760
sl@0
   761
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0011
sl@0
   762
//!@SYMAPI
sl@0
   763
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
   764
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
   765
//!                CMMFDevSound::Capabilities()
sl@0
   766
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
   767
//!                CMMFDevSound::PlayInitL()
sl@0
   768
//!                CMMFDevSound::RecordInitL()
sl@0
   769
//!                CMMFDevSound::Stop()
sl@0
   770
//!@SYMAuthor			etorres
sl@0
   771
//!@SYMCreationDate		7/21/2008 
sl@0
   772
//!@SYMTestCaseDesc		PCM - 32 KHz mono recording and playback
sl@0
   773
//!@SYMTestActions
sl@0
   774
//!                1. Create Devsound instance 
sl@0
   775
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
   776
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   777
//!                4. Capabilities
sl@0
   778
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate32000Hz)
sl@0
   779
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_32k_mono_10s.pcm)
sl@0
   780
//!                7. Record 10s 
sl@0
   781
//!                8. Stop 5s
sl@0
   782
//!                9. CloseFile
sl@0
   783
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
   784
//!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   785
//!                12. Capabilities
sl@0
   786
//!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate32000Hz)
sl@0
   787
//!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_32k_mono_10s.pcm)
sl@0
   788
//!                15. Start Play EOF 
sl@0
   789
//!                16. CloseFile
sl@0
   790
//!                17. Delete devsound instance
sl@0
   791
//!@SYMTestStatus		Verified
sl@0
   792
//!@SYMTestPriority		High
sl@0
   793
//!@SYMTestExpectedResults
sl@0
   794
//!                PCM - 32 KHz mono recording and playback
sl@0
   795
//!@SYMTestType			CIT
sl@0
   796
sl@0
   797
	START_TEST_BLOCK	35	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   798
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   799
		COMMAND		devsound1		NewL
sl@0
   800
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0011-0001-InitializeL_command02
sl@0
   801
		OUTSTANDING
sl@0
   802
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0011-0001-SetPrioritySettings_command03
sl@0
   803
		COMMAND		devsound1		Capabilities
sl@0
   804
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0011-0001-SetConfigL_command05
sl@0
   805
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0011-0001-ReplaceFile_command06
sl@0
   806
		COMMAND		devsound1		RecordInitL
sl@0
   807
		ASYNC_DELAY  10000000 
sl@0
   808
		COMMAND		devsound1		Stop
sl@0
   809
		DELAY  5000000 
sl@0
   810
		COMMAND		devsound1		CloseFile
sl@0
   811
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0011-0001-InitializeL_command10
sl@0
   812
		OUTSTANDING
sl@0
   813
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0011-0001-SetPrioritySettings_command11
sl@0
   814
		COMMAND		devsound1		Capabilities
sl@0
   815
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0011-0001-SetConfigL_command13
sl@0
   816
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0011-0001-OpenFile_command14
sl@0
   817
		COMMAND		devsound1		PlayInitL
sl@0
   818
		OUTSTANDING
sl@0
   819
		COMMAND		devsound1		CloseFile
sl@0
   820
		COMMAND		devsound1		~
sl@0
   821
	END_TEST_BLOCK
sl@0
   822
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0011
sl@0
   823
sl@0
   824
sl@0
   825
sl@0
   826
sl@0
   827
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0012
sl@0
   828
sl@0
   829
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0012
sl@0
   830
//!@SYMAPI
sl@0
   831
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
   832
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
   833
//!                CMMFDevSound::Capabilities()
sl@0
   834
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
   835
//!                CMMFDevSound::PlayInitL()
sl@0
   836
//!                CMMFDevSound::RecordInitL()
sl@0
   837
//!                CMMFDevSound::Stop()
sl@0
   838
//!@SYMAuthor			etorres
sl@0
   839
//!@SYMCreationDate		7/21/2008 
sl@0
   840
//!@SYMTestCaseDesc		PCM - 32KHz stereo recording and playback
sl@0
   841
//!@SYMTestActions
sl@0
   842
//!                1. Create Devsound instance 
sl@0
   843
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
   844
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   845
//!                4. Capabilities
sl@0
   846
//!                5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate32000Hz)
sl@0
   847
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_32k_stereo_10s.pcm)
sl@0
   848
//!                7. Record 10s 
sl@0
   849
//!                8. Stop 5s
sl@0
   850
//!                9. CloseFile
sl@0
   851
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
   852
//!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   853
//!                12. Capabilities
sl@0
   854
//!                13. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate32000Hz)
sl@0
   855
//!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_32k_stereo_10s.pcm)
sl@0
   856
//!                15. Start Play EOF 
sl@0
   857
//!                16. CloseFile
sl@0
   858
//!                17. Delete devsound instance
sl@0
   859
//!@SYMTestStatus		Verified
sl@0
   860
//!@SYMTestPriority		High
sl@0
   861
//!@SYMTestExpectedResults
sl@0
   862
//!                PCM - 32KHz stereo recording and playback
sl@0
   863
//!@SYMTestType			CIT
sl@0
   864
sl@0
   865
	START_TEST_BLOCK	35	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   866
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   867
		COMMAND		devsound1		NewL
sl@0
   868
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0012-0001-InitializeL_command02
sl@0
   869
		OUTSTANDING
sl@0
   870
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0012-0001-SetPrioritySettings_command03
sl@0
   871
		COMMAND		devsound1		Capabilities
sl@0
   872
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0012-0001-SetConfigL_command05
sl@0
   873
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0012-0001-ReplaceFile_command06
sl@0
   874
		COMMAND		devsound1		RecordInitL
sl@0
   875
		ASYNC_DELAY  10000000 
sl@0
   876
		COMMAND		devsound1		Stop
sl@0
   877
		DELAY  5000000 
sl@0
   878
		COMMAND		devsound1		CloseFile
sl@0
   879
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0012-0001-InitializeL_command10
sl@0
   880
		OUTSTANDING
sl@0
   881
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0012-0001-SetPrioritySettings_command11
sl@0
   882
		COMMAND		devsound1		Capabilities
sl@0
   883
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0012-0001-SetConfigL_command13
sl@0
   884
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0012-0001-OpenFile_command14
sl@0
   885
		COMMAND		devsound1		PlayInitL
sl@0
   886
		OUTSTANDING
sl@0
   887
		COMMAND		devsound1		CloseFile
sl@0
   888
		COMMAND		devsound1		~
sl@0
   889
	END_TEST_BLOCK
sl@0
   890
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0012
sl@0
   891
sl@0
   892
sl@0
   893
sl@0
   894
sl@0
   895
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0013
sl@0
   896
sl@0
   897
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0013
sl@0
   898
//!@SYMAPI
sl@0
   899
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
   900
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
   901
//!                CMMFDevSound::Capabilities()
sl@0
   902
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
   903
//!                CMMFDevSound::PlayInitL()
sl@0
   904
//!                CMMFDevSound::RecordInitL()
sl@0
   905
//!                CMMFDevSound::Stop()
sl@0
   906
//!@SYMAuthor			etorres
sl@0
   907
//!@SYMCreationDate		7/21/2008 
sl@0
   908
//!@SYMTestCaseDesc		PCM - 48KHz mono recording and playback
sl@0
   909
//!@SYMTestActions
sl@0
   910
//!                1. Create Devsound instance 
sl@0
   911
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
   912
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   913
//!                4. Capabilities
sl@0
   914
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate48000Hz)
sl@0
   915
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_48k_mono_10s.pcm)
sl@0
   916
//!                7. Record 10s 
sl@0
   917
//!                8. Stop 5s
sl@0
   918
//!                9. CloseFile
sl@0
   919
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
   920
//!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   921
//!                12. Capabilities
sl@0
   922
//!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate48000Hz)
sl@0
   923
//!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_48k_mono_10s.pcm)
sl@0
   924
//!                15. Start Play EOF 
sl@0
   925
//!                16. CloseFile
sl@0
   926
//!                17. Delete devsound instance
sl@0
   927
//!@SYMTestStatus		Verified
sl@0
   928
//!@SYMTestPriority		High
sl@0
   929
//!@SYMTestExpectedResults
sl@0
   930
//!                PCM - 48KHz mono recording and playback
sl@0
   931
//!@SYMTestType			CIT
sl@0
   932
sl@0
   933
	START_TEST_BLOCK	35	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
   934
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   935
		COMMAND		devsound1		NewL
sl@0
   936
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0013-0001-InitializeL_command02
sl@0
   937
		OUTSTANDING
sl@0
   938
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0013-0001-SetPrioritySettings_command03
sl@0
   939
		COMMAND		devsound1		Capabilities
sl@0
   940
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0013-0001-SetConfigL_command05
sl@0
   941
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0013-0001-ReplaceFile_command06
sl@0
   942
		COMMAND		devsound1		RecordInitL
sl@0
   943
		ASYNC_DELAY  10000000 
sl@0
   944
		COMMAND		devsound1		Stop
sl@0
   945
		DELAY  5000000 
sl@0
   946
		COMMAND		devsound1		CloseFile
sl@0
   947
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0013-0001-InitializeL_command10
sl@0
   948
		OUTSTANDING
sl@0
   949
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0013-0001-SetPrioritySettings_command11
sl@0
   950
		COMMAND		devsound1		Capabilities
sl@0
   951
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0013-0001-SetConfigL_command13
sl@0
   952
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0013-0001-OpenFile_command14
sl@0
   953
		COMMAND		devsound1		PlayInitL
sl@0
   954
		OUTSTANDING
sl@0
   955
		COMMAND		devsound1		CloseFile
sl@0
   956
		COMMAND		devsound1		~
sl@0
   957
	END_TEST_BLOCK
sl@0
   958
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0013
sl@0
   959
sl@0
   960
sl@0
   961
sl@0
   962
sl@0
   963
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0014
sl@0
   964
sl@0
   965
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0014
sl@0
   966
//!@SYMAPI
sl@0
   967
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
   968
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
   969
//!                CMMFDevSound::Capabilities()
sl@0
   970
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
   971
//!                CMMFDevSound::PlayInitL()
sl@0
   972
//!                CMMFDevSound::RecordInitL()
sl@0
   973
//!                CMMFDevSound::Stop()
sl@0
   974
//!@SYMAuthor			etorres
sl@0
   975
//!@SYMCreationDate		7/21/2008 
sl@0
   976
//!@SYMTestCaseDesc		PCM - 48KHz stereo recording and playback
sl@0
   977
//!@SYMTestActions
sl@0
   978
//!                1. Create Devsound instance 
sl@0
   979
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
   980
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
   981
//!                4. Capabilities
sl@0
   982
//!                5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz)
sl@0
   983
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_48k_stereo_10s.pcm)
sl@0
   984
//!                7. Record 10s 
sl@0
   985
//!                8. Stop 5s
sl@0
   986
//!                9. CloseFile
sl@0
   987
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
   988
//!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
   989
//!                12. Capabilities
sl@0
   990
//!                13. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz)
sl@0
   991
//!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_48k_stereo_10s.pcm)
sl@0
   992
//!                15. Start Play EOF 
sl@0
   993
//!                16. CloseFile
sl@0
   994
//!                17. Delete devsound instance
sl@0
   995
//!@SYMTestStatus		Verified
sl@0
   996
//!@SYMTestPriority		High
sl@0
   997
//!@SYMTestExpectedResults
sl@0
   998
//!                PCM - 48KHz stereo recording and playback
sl@0
   999
//!@SYMTestType			CIT
sl@0
  1000
sl@0
  1001
	START_TEST_BLOCK	35	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1002
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1003
		COMMAND		devsound1		NewL
sl@0
  1004
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0014-0001-InitializeL_command02
sl@0
  1005
		OUTSTANDING
sl@0
  1006
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0014-0001-SetPrioritySettings_command03
sl@0
  1007
		COMMAND		devsound1		Capabilities
sl@0
  1008
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0014-0001-SetConfigL_command05
sl@0
  1009
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0014-0001-ReplaceFile_command06
sl@0
  1010
		COMMAND		devsound1		RecordInitL
sl@0
  1011
		ASYNC_DELAY  10000000 
sl@0
  1012
		COMMAND		devsound1		Stop
sl@0
  1013
		DELAY  5000000 
sl@0
  1014
		COMMAND		devsound1		CloseFile
sl@0
  1015
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0014-0001-InitializeL_command10
sl@0
  1016
		OUTSTANDING
sl@0
  1017
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0014-0001-SetPrioritySettings_command11
sl@0
  1018
		COMMAND		devsound1		Capabilities
sl@0
  1019
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0014-0001-SetConfigL_command13
sl@0
  1020
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0014-0001-OpenFile_command14
sl@0
  1021
		COMMAND		devsound1		PlayInitL
sl@0
  1022
		OUTSTANDING
sl@0
  1023
		COMMAND		devsound1		CloseFile
sl@0
  1024
		COMMAND		devsound1		~
sl@0
  1025
	END_TEST_BLOCK
sl@0
  1026
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0014
sl@0
  1027
sl@0
  1028
sl@0
  1029
sl@0
  1030
sl@0
  1031
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0015
sl@0
  1032
sl@0
  1033
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0015
sl@0
  1034
//!@SYMAPI
sl@0
  1035
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1036
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1037
//!                CMMFDevSound::Capabilities()
sl@0
  1038
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1039
//!                CMMFDevSound::PlayInitL()
sl@0
  1040
//!                CMMFDevSound::RecordInitL()
sl@0
  1041
//!                CMMFDevSound::Stop()
sl@0
  1042
//!@SYMAuthor			etorres
sl@0
  1043
//!@SYMCreationDate		7/21/2008 
sl@0
  1044
//!@SYMTestCaseDesc		PCM - 8KHz mono recording and playback
sl@0
  1045
//!@SYMTestActions
sl@0
  1046
//!                1. Create Devsound instance 
sl@0
  1047
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
  1048
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
  1049
//!                4. Capabilities
sl@0
  1050
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  1051
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_8k_mono_10s.pcm)
sl@0
  1052
//!                7. Record 10s 
sl@0
  1053
//!                8. Stop 5s
sl@0
  1054
//!                9. CloseFile
sl@0
  1055
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
  1056
//!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
  1057
//!                12. Capabilities
sl@0
  1058
//!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  1059
//!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_8k_mono_10s.pcm)
sl@0
  1060
//!                15. Start Play EOF 
sl@0
  1061
//!                16. CloseFile
sl@0
  1062
//!                17. Delete devsound instance
sl@0
  1063
//!@SYMTestStatus		Verified
sl@0
  1064
//!@SYMTestPriority		High
sl@0
  1065
//!@SYMTestExpectedResults
sl@0
  1066
//!                PCM - 8KHz mono recording and playback
sl@0
  1067
//!@SYMTestType			CIT
sl@0
  1068
sl@0
  1069
	START_TEST_BLOCK	35	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1070
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1071
		COMMAND		devsound1		NewL
sl@0
  1072
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0015-0001-InitializeL_command02
sl@0
  1073
		OUTSTANDING
sl@0
  1074
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0015-0001-SetPrioritySettings_command03
sl@0
  1075
		COMMAND		devsound1		Capabilities
sl@0
  1076
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0015-0001-SetConfigL_command05
sl@0
  1077
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0015-0001-ReplaceFile_command06
sl@0
  1078
		COMMAND		devsound1		RecordInitL
sl@0
  1079
		ASYNC_DELAY  10000000 
sl@0
  1080
		COMMAND		devsound1		Stop
sl@0
  1081
		DELAY  5000000 
sl@0
  1082
		COMMAND		devsound1		CloseFile
sl@0
  1083
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0015-0001-InitializeL_command10
sl@0
  1084
		OUTSTANDING
sl@0
  1085
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0015-0001-SetPrioritySettings_command11
sl@0
  1086
		COMMAND		devsound1		Capabilities
sl@0
  1087
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0015-0001-SetConfigL_command13
sl@0
  1088
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0015-0001-OpenFile_command14
sl@0
  1089
		COMMAND		devsound1		PlayInitL
sl@0
  1090
		OUTSTANDING
sl@0
  1091
		COMMAND		devsound1		CloseFile
sl@0
  1092
		COMMAND		devsound1		~
sl@0
  1093
	END_TEST_BLOCK
sl@0
  1094
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0015
sl@0
  1095
sl@0
  1096
sl@0
  1097
sl@0
  1098
sl@0
  1099
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0016
sl@0
  1100
sl@0
  1101
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0016
sl@0
  1102
//!@SYMAPI
sl@0
  1103
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1104
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1105
//!                CMMFDevSound::Capabilities()
sl@0
  1106
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1107
//!                CMMFDevSound::PlayInitL()
sl@0
  1108
//!                CMMFDevSound::RecordInitL()
sl@0
  1109
//!                CMMFDevSound::Stop()
sl@0
  1110
//!@SYMAuthor			etorres
sl@0
  1111
//!@SYMCreationDate		7/21/2008 
sl@0
  1112
//!@SYMTestCaseDesc		PCM - 8KHz stereo recording and playback
sl@0
  1113
//!@SYMTestActions
sl@0
  1114
//!                1. Create Devsound instance 
sl@0
  1115
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
  1116
//!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
sl@0
  1117
//!                4. Capabilities
sl@0
  1118
//!                5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate8000Hz)
sl@0
  1119
//!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_8k_stereo_10s.pcm)
sl@0
  1120
//!                7. Record 10s 
sl@0
  1121
//!                8. Stop 5s
sl@0
  1122
//!                9. CloseFile
sl@0
  1123
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
  1124
//!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
sl@0
  1125
//!                12. Capabilities
sl@0
  1126
//!                13. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate8000Hz)
sl@0
  1127
//!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecPCM_8k_stereo_10s.pcm)
sl@0
  1128
//!                15. Start Play EOF 
sl@0
  1129
//!                16. CloseFile
sl@0
  1130
//!                17. Delete devsound instance
sl@0
  1131
//!@SYMTestStatus		Verified
sl@0
  1132
//!@SYMTestPriority		High
sl@0
  1133
//!@SYMTestExpectedResults
sl@0
  1134
//!                PCM - 8KHz stereo recording and playback
sl@0
  1135
//!@SYMTestType			CIT
sl@0
  1136
sl@0
  1137
	START_TEST_BLOCK	35	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1138
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1139
		COMMAND		devsound1		NewL
sl@0
  1140
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0016-0001-InitializeL_command02
sl@0
  1141
		OUTSTANDING
sl@0
  1142
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0016-0001-SetPrioritySettings_command03
sl@0
  1143
		COMMAND		devsound1		Capabilities
sl@0
  1144
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0016-0001-SetConfigL_command05
sl@0
  1145
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0016-0001-ReplaceFile_command06
sl@0
  1146
		COMMAND		devsound1		RecordInitL
sl@0
  1147
		ASYNC_DELAY  10000000 
sl@0
  1148
		COMMAND		devsound1		Stop
sl@0
  1149
		DELAY  5000000 
sl@0
  1150
		COMMAND		devsound1		CloseFile
sl@0
  1151
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0016-0001-InitializeL_command10
sl@0
  1152
		OUTSTANDING
sl@0
  1153
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0016-0001-SetPrioritySettings_command11
sl@0
  1154
		COMMAND		devsound1		Capabilities
sl@0
  1155
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0016-0001-SetConfigL_command13
sl@0
  1156
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0016-0001-OpenFile_command14
sl@0
  1157
		COMMAND		devsound1		PlayInitL
sl@0
  1158
		OUTSTANDING
sl@0
  1159
		COMMAND		devsound1		CloseFile
sl@0
  1160
		COMMAND		devsound1		~
sl@0
  1161
	END_TEST_BLOCK
sl@0
  1162
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0016
sl@0
  1163
sl@0
  1164
sl@0
  1165
sl@0
  1166
sl@0
  1167
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0017
sl@0
  1168
sl@0
  1169
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0017
sl@0
  1170
//!@SYMAPI
sl@0
  1171
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1172
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1173
//!                CMMFDevSound::Capabilities()
sl@0
  1174
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1175
//!                CMMFDevSound::PlayInitL()
sl@0
  1176
//!                CMMFDevSound::RecordInitL()
sl@0
  1177
//!                CMMFDevSound::Stop()
sl@0
  1178
//!@SYMAuthor			alavariega
sl@0
  1179
//!@SYMCreationDate		8/11/2008 
sl@0
  1180
//!@SYMTestCaseDesc		AMR-NB 8KHz recording and playback several times
sl@0
  1181
//!@SYMTestActions
sl@0
  1182
//!                1.- Create DevSound Instance att1
sl@0
  1183
//!                2.- Create DevSound Instance att2
sl@0
  1184
//!                3.- att1 Initialize DevSound  ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
  1185
//!                4.- att1 Set Priority (Priority ={Priority,PriorityPocCallUp}; Preference = {PriorityPreference,PriorityPreferencePocCallUp}; PriorityState = EMMFStateRecording)
sl@0
  1186
//!                5.- att1 Capabilities
sl@0
  1187
//!                6.- att1 Set Configuration(Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  1188
//!                7.- att1 ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\PoCCallStressTest.amr)
sl@0
  1189
//!                8.- att1 Record 5s
sl@0
  1190
//!                9.- att1 Stop 2s
sl@0
  1191
//!                10.- att1 Record 3s
sl@0
  1192
//!                11.- att1 Stop 4s
sl@0
  1193
//!                12.- att1 CloseFile
sl@0
  1194
//!                13.- att2 Initialize DevSound  ( Mode = EMMFStatePlaying; FourCC = AMR)
sl@0
  1195
//!                14.- att2 Set Priority (Priority ={Priority,PriorityPocCallDown}; Preference = {PriorityPreference,PriorityPreferencePocCallDown} ; PriorityState = EMMFStatePlaying)
sl@0
  1196
//!                15.- att2 Capabilities
sl@0
  1197
//!                16.- att2 Set Configuration(Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  1198
//!                17.- Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\AMR-NB\AMRNB_8k_12.2kbps_mono_speech.amr)
sl@0
  1199
//!                18.- Start Play 2s
sl@0
  1200
//!                19.- Stop 1s 
sl@0
  1201
//!                20.- Start Play 5s
sl@0
  1202
//!                21.- Stop
sl@0
  1203
//!                22. Close File
sl@0
  1204
//!                23.- Delete att1
sl@0
  1205
//!                24.- Delete att2
sl@0
  1206
//!@SYMTestStatus		Verified
sl@0
  1207
//!@SYMTestPriority		High
sl@0
  1208
//!@SYMTestExpectedResults
sl@0
  1209
//!                AMR-NB 8KHz recording and playback several times
sl@0
  1210
//!@SYMTestType			CIT
sl@0
  1211
sl@0
  1212
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1213
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1214
		CREATE_OBJECT	CMMFDevSound		devsound2
sl@0
  1215
		COMMAND		devsound1		NewL
sl@0
  1216
		COMMAND		devsound2		NewL
sl@0
  1217
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0017-0001-InitializeL_command03
sl@0
  1218
		OUTSTANDING
sl@0
  1219
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0017-0001-SetPrioritySettings_command04
sl@0
  1220
		COMMAND		devsound1		Capabilities
sl@0
  1221
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0017-0001-SetConfigL_command06
sl@0
  1222
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0017-0001-ReplaceFile_command07
sl@0
  1223
		COMMAND		devsound1		RecordInitL
sl@0
  1224
		ASYNC_DELAY  5000000 
sl@0
  1225
		COMMAND		devsound1		Stop
sl@0
  1226
		DELAY  2000000 
sl@0
  1227
		COMMAND		devsound1		RecordInitL
sl@0
  1228
		ASYNC_DELAY  3000000 
sl@0
  1229
		COMMAND		devsound1		Stop
sl@0
  1230
		DELAY  4000000 
sl@0
  1231
		COMMAND		devsound1		CloseFile
sl@0
  1232
		COMMAND		devsound2		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0017-0001-InitializeL_command13
sl@0
  1233
        OUTSTANDING
sl@0
  1234
		COMMAND		devsound2		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0017-0001-SetPrioritySettings_command14
sl@0
  1235
		COMMAND		devsound2		Capabilities
sl@0
  1236
		COMMAND		devsound2		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0017-0001-SetConfigL_command16
sl@0
  1237
		COMMAND		devsound2		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0017-0001-OpenFile_command17
sl@0
  1238
		COMMAND		devsound2		PlayInitL
sl@0
  1239
		ASYNC_DELAY  2000000 
sl@0
  1240
		COMMAND		devsound2		Stop
sl@0
  1241
		DELAY  1000000 
sl@0
  1242
		COMMAND		devsound2		PlayInitL
sl@0
  1243
		ASYNC_DELAY  5000000 
sl@0
  1244
		COMMAND		devsound2		Stop
sl@0
  1245
		COMMAND		devsound2		CloseFile
sl@0
  1246
		COMMAND		devsound1		~
sl@0
  1247
		COMMAND		devsound2		~
sl@0
  1248
	END_TEST_BLOCK
sl@0
  1249
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0017
sl@0
  1250
sl@0
  1251
sl@0
  1252
sl@0
  1253
sl@0
  1254
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0018
sl@0
  1255
sl@0
  1256
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0018
sl@0
  1257
//!@SYMAPI
sl@0
  1258
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1259
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1260
//!                CMMFDevSound::Capabilities()
sl@0
  1261
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1262
//!                CMMFDevSound::PlayInitL()
sl@0
  1263
//!                CMMFDevSound::RecordInitL()
sl@0
  1264
//!                CMMFDevSound::Stop()
sl@0
  1265
//!@SYMAuthor			alavariega
sl@0
  1266
//!@SYMCreationDate		8/11/2008 
sl@0
  1267
//!@SYMTestCaseDesc		PCM 16k mono record and playback
sl@0
  1268
//!@SYMTestActions
sl@0
  1269
//!                1.- Create a Instance of DevSound
sl@0
  1270
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1271
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  1272
//!                4.- Capabilities
sl@0
  1273
//!                5.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate16000Hz)
sl@0
  1274
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec16kPCM.pcm)
sl@0
  1275
//!                7.- StartRecord 10s
sl@0
  1276
//!                8.- Stop 5s
sl@0
  1277
//!                9.- CloseFile
sl@0
  1278
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1279
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  1280
//!                12.- Capabilities
sl@0
  1281
//!                13.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate16000Hz)
sl@0
  1282
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec16kPCM.pcm)
sl@0
  1283
//!                15.- StartPlay EOF
sl@0
  1284
//!                16.- CloseFile
sl@0
  1285
//!                17.-delete DevSound instance
sl@0
  1286
//!@SYMTestStatus		Verified
sl@0
  1287
//!@SYMTestPriority		High
sl@0
  1288
//!@SYMTestExpectedResults
sl@0
  1289
//!                PCM 16k mono record and playback
sl@0
  1290
//!@SYMTestType			CIT
sl@0
  1291
sl@0
  1292
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1293
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1294
		COMMAND		devsound1		NewL
sl@0
  1295
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0018-0001-InitializeL_command02
sl@0
  1296
		OUTSTANDING
sl@0
  1297
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0018-0001-SetPrioritySettings_command03
sl@0
  1298
		COMMAND		devsound1		Capabilities
sl@0
  1299
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0018-0001-SetConfigL_command05
sl@0
  1300
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0018-0001-ReplaceFile_command06
sl@0
  1301
		COMMAND		devsound1		RecordInitL
sl@0
  1302
		ASYNC_DELAY  10000000 
sl@0
  1303
		COMMAND		devsound1		Stop
sl@0
  1304
		DELAY  5000000 
sl@0
  1305
		COMMAND		devsound1		CloseFile
sl@0
  1306
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0018-0001-InitializeL_command10
sl@0
  1307
		OUTSTANDING
sl@0
  1308
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0018-0001-SetPrioritySettings_command11
sl@0
  1309
		COMMAND		devsound1		Capabilities
sl@0
  1310
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0018-0001-SetConfigL_command13
sl@0
  1311
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0018-0001-OpenFile_command14
sl@0
  1312
		COMMAND		devsound1		PlayInitL
sl@0
  1313
		OUTSTANDING
sl@0
  1314
		COMMAND		devsound1		CloseFile
sl@0
  1315
		COMMAND		devsound1		~
sl@0
  1316
	END_TEST_BLOCK
sl@0
  1317
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0018
sl@0
  1318
sl@0
  1319
sl@0
  1320
sl@0
  1321
sl@0
  1322
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0019
sl@0
  1323
sl@0
  1324
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0019
sl@0
  1325
//!@SYMAPI
sl@0
  1326
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1327
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1328
//!                CMMFDevSound::Capabilities()
sl@0
  1329
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1330
//!                CMMFDevSound::PlayInitL()
sl@0
  1331
//!                CMMFDevSound::RecordInitL()
sl@0
  1332
//!                CMMFDevSound::Stop()
sl@0
  1333
//!@SYMAuthor			alavariega
sl@0
  1334
//!@SYMCreationDate		8/11/2008 
sl@0
  1335
//!@SYMTestCaseDesc		PCM 16k stereo record and playback
sl@0
  1336
//!@SYMTestActions
sl@0
  1337
//!                1.- Create a Instance of DevSound
sl@0
  1338
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1339
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  1340
//!                4.- Capabilities
sl@0
  1341
//!                5.- Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate16000Hz)
sl@0
  1342
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec16kPCMStereo.pcm)
sl@0
  1343
//!                7.- StartRecord 10s
sl@0
  1344
//!                8.- Stop 5s
sl@0
  1345
//!                9.- CloseFile
sl@0
  1346
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1347
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  1348
//!                12.- Capabilities
sl@0
  1349
//!                13.- Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate16000Hz)
sl@0
  1350
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec16kPCMStereo.pcm)
sl@0
  1351
//!                15.- StartPlay EOF
sl@0
  1352
//!                16.- CloseFile
sl@0
  1353
//!                17.-delete DevSound instance
sl@0
  1354
//!@SYMTestStatus		Verified
sl@0
  1355
//!@SYMTestPriority		High
sl@0
  1356
//!@SYMTestExpectedResults
sl@0
  1357
//!                PCM 16k stereo record and playback
sl@0
  1358
//!@SYMTestType			CIT
sl@0
  1359
sl@0
  1360
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1361
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1362
		COMMAND		devsound1		NewL
sl@0
  1363
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0019-0001-InitializeL_command02
sl@0
  1364
		OUTSTANDING
sl@0
  1365
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0019-0001-SetPrioritySettings_command03
sl@0
  1366
		COMMAND		devsound1		Capabilities
sl@0
  1367
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0019-0001-SetConfigL_command05
sl@0
  1368
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0019-0001-ReplaceFile_command06
sl@0
  1369
		COMMAND		devsound1		RecordInitL
sl@0
  1370
		ASYNC_DELAY  10000000 
sl@0
  1371
		COMMAND		devsound1		Stop
sl@0
  1372
		DELAY  5000000 
sl@0
  1373
		COMMAND		devsound1		CloseFile
sl@0
  1374
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0019-0001-InitializeL_command10
sl@0
  1375
		OUTSTANDING
sl@0
  1376
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0019-0001-SetPrioritySettings_command11
sl@0
  1377
		COMMAND		devsound1		Capabilities
sl@0
  1378
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0019-0001-SetConfigL_command13
sl@0
  1379
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0019-0001-OpenFile_command14
sl@0
  1380
		COMMAND		devsound1		PlayInitL
sl@0
  1381
		OUTSTANDING
sl@0
  1382
		COMMAND		devsound1		CloseFile
sl@0
  1383
		COMMAND		devsound1		~
sl@0
  1384
	END_TEST_BLOCK
sl@0
  1385
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0019
sl@0
  1386
sl@0
  1387
sl@0
  1388
sl@0
  1389
sl@0
  1390
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0020
sl@0
  1391
sl@0
  1392
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0020
sl@0
  1393
//!@SYMAPI
sl@0
  1394
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1395
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1396
//!                CMMFDevSound::Capabilities()
sl@0
  1397
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1398
//!                CMMFDevSound::PlayInitL()
sl@0
  1399
//!                CMMFDevSound::RecordInitL()
sl@0
  1400
//!                CMMFDevSound::Stop()
sl@0
  1401
//!@SYMAuthor			alavariega
sl@0
  1402
//!@SYMCreationDate		8/11/2008 
sl@0
  1403
//!@SYMTestCaseDesc		PCM 24k mono record and playback
sl@0
  1404
//!@SYMTestActions
sl@0
  1405
//!                1.- Create a Instance of DevSound
sl@0
  1406
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1407
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  1408
//!                4.- Capabilities
sl@0
  1409
//!                5.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate24000Hz)
sl@0
  1410
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec24kPCM.pcm)
sl@0
  1411
//!                7.- StartRecord 10s
sl@0
  1412
//!                8.- Stop 5s
sl@0
  1413
//!                9.- CloseFile
sl@0
  1414
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1415
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  1416
//!                12.- Capabilities
sl@0
  1417
//!                13.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate24000Hz)
sl@0
  1418
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec24kPCM.pcm)
sl@0
  1419
//!                15.- StartPlay EOF
sl@0
  1420
//!                16.- CloseFile
sl@0
  1421
//!                17.-delete DevSound instance
sl@0
  1422
//!@SYMTestStatus		Verified
sl@0
  1423
//!@SYMTestPriority		High
sl@0
  1424
//!@SYMTestExpectedResults
sl@0
  1425
//!                PCM 24k mono record and playback
sl@0
  1426
//!@SYMTestType			CIT
sl@0
  1427
sl@0
  1428
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1429
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1430
		COMMAND		devsound1		NewL
sl@0
  1431
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0020-0001-InitializeL_command02
sl@0
  1432
		OUTSTANDING
sl@0
  1433
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0020-0001-SetPrioritySettings_command03
sl@0
  1434
		COMMAND		devsound1		Capabilities
sl@0
  1435
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0020-0001-SetConfigL_command05
sl@0
  1436
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0020-0001-ReplaceFile_command06
sl@0
  1437
		COMMAND		devsound1		RecordInitL
sl@0
  1438
		ASYNC_DELAY  10000000 
sl@0
  1439
		COMMAND		devsound1		Stop
sl@0
  1440
		DELAY  5000000 
sl@0
  1441
		COMMAND		devsound1		CloseFile
sl@0
  1442
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0020-0001-InitializeL_command10
sl@0
  1443
		OUTSTANDING
sl@0
  1444
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0020-0001-SetPrioritySettings_command11
sl@0
  1445
		COMMAND		devsound1		Capabilities
sl@0
  1446
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0020-0001-SetConfigL_command13
sl@0
  1447
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0020-0001-OpenFile_command14
sl@0
  1448
		COMMAND		devsound1		PlayInitL
sl@0
  1449
		OUTSTANDING
sl@0
  1450
		COMMAND		devsound1		CloseFile
sl@0
  1451
		COMMAND		devsound1		~
sl@0
  1452
	END_TEST_BLOCK
sl@0
  1453
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0020
sl@0
  1454
sl@0
  1455
sl@0
  1456
sl@0
  1457
sl@0
  1458
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0021
sl@0
  1459
sl@0
  1460
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0021
sl@0
  1461
//!@SYMAPI
sl@0
  1462
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1463
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1464
//!                CMMFDevSound::Capabilities()
sl@0
  1465
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1466
//!                CMMFDevSound::PlayInitL()
sl@0
  1467
//!                CMMFDevSound::RecordInitL()
sl@0
  1468
//!                CMMFDevSound::Stop()
sl@0
  1469
//!@SYMAuthor			alavariega
sl@0
  1470
//!@SYMCreationDate		8/11/2008 
sl@0
  1471
//!@SYMTestCaseDesc		PCM 24k stereo record and recording
sl@0
  1472
//!@SYMTestActions
sl@0
  1473
//!                1.- Create a Instance of DevSound
sl@0
  1474
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1475
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  1476
//!                4.- Capabilities
sl@0
  1477
//!                5.- Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate24000Hz)
sl@0
  1478
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec24kPCMStereo.pcm)
sl@0
  1479
//!                7.- StartRecord 10s
sl@0
  1480
//!                8.- Stop 5s
sl@0
  1481
//!                9.- CloseFile
sl@0
  1482
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1483
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  1484
//!                12.- Capabilities
sl@0
  1485
//!                13.- Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate24000Hz)
sl@0
  1486
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec24kPCMStereo.pcm)
sl@0
  1487
//!                15.- StartPlay EOF
sl@0
  1488
//!                16.- CloseFile
sl@0
  1489
//!                17.-delete DevSound instance
sl@0
  1490
//!@SYMTestStatus		Verified
sl@0
  1491
//!@SYMTestPriority		High
sl@0
  1492
//!@SYMTestExpectedResults
sl@0
  1493
//!                PCM 24k stereo record and recording
sl@0
  1494
//!@SYMTestType			CIT
sl@0
  1495
sl@0
  1496
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1497
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1498
		COMMAND		devsound1		NewL
sl@0
  1499
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0021-0001-InitializeL_command02
sl@0
  1500
		OUTSTANDING
sl@0
  1501
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0021-0001-SetPrioritySettings_command03
sl@0
  1502
		COMMAND		devsound1		Capabilities
sl@0
  1503
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0021-0001-SetConfigL_command05
sl@0
  1504
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0021-0001-ReplaceFile_command06
sl@0
  1505
		COMMAND		devsound1		RecordInitL
sl@0
  1506
		ASYNC_DELAY  10000000 
sl@0
  1507
		COMMAND		devsound1		Stop
sl@0
  1508
		DELAY  5000000 
sl@0
  1509
		COMMAND		devsound1		CloseFile
sl@0
  1510
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0021-0001-InitializeL_command10
sl@0
  1511
		OUTSTANDING
sl@0
  1512
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0021-0001-SetPrioritySettings_command11
sl@0
  1513
		COMMAND		devsound1		Capabilities
sl@0
  1514
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0021-0001-SetConfigL_command13
sl@0
  1515
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0021-0001-OpenFile_command14
sl@0
  1516
		COMMAND		devsound1		PlayInitL
sl@0
  1517
		OUTSTANDING
sl@0
  1518
		COMMAND		devsound1		CloseFile
sl@0
  1519
		COMMAND		devsound1		~
sl@0
  1520
	END_TEST_BLOCK
sl@0
  1521
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0021
sl@0
  1522
sl@0
  1523
sl@0
  1524
sl@0
  1525
sl@0
  1526
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0022
sl@0
  1527
sl@0
  1528
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0022
sl@0
  1529
//!@SYMAPI
sl@0
  1530
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1531
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1532
//!                CMMFDevSound::Capabilities()
sl@0
  1533
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1534
//!                CMMFDevSound::PlayInitL()
sl@0
  1535
//!                CMMFDevSound::RecordInitL()
sl@0
  1536
//!                CMMFDevSound::Stop()
sl@0
  1537
//!@SYMAuthor			alavariega
sl@0
  1538
//!@SYMCreationDate		8/11/2008 
sl@0
  1539
//!@SYMTestCaseDesc		PCM 32k mono record and recording
sl@0
  1540
//!@SYMTestActions
sl@0
  1541
//!                1.- Create a Instance of DevSound
sl@0
  1542
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1543
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  1544
//!                4.- Capabilities
sl@0
  1545
//!                5.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate32000Hz)
sl@0
  1546
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec32kPCM.pcm)
sl@0
  1547
//!                7.- StartRecord 10s
sl@0
  1548
//!                8.- Stop 5s
sl@0
  1549
//!                9.- CloseFile
sl@0
  1550
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1551
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  1552
//!                12.- Capabilities
sl@0
  1553
//!                13.- Set Configuration (Channels = EMMFMono; Rate =EMMFSampleRate32000Hz)
sl@0
  1554
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec32kPCM.pcm)
sl@0
  1555
//!                15.- StartPlay EOF
sl@0
  1556
//!                16.- CloseFile
sl@0
  1557
//!                17.- Delete DevSound instance
sl@0
  1558
//!@SYMTestStatus		Verified
sl@0
  1559
//!@SYMTestPriority		High
sl@0
  1560
//!@SYMTestExpectedResults
sl@0
  1561
//!                PCM 32k mono record and recording
sl@0
  1562
//!@SYMTestType			CIT
sl@0
  1563
sl@0
  1564
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1565
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1566
		COMMAND		devsound1		NewL
sl@0
  1567
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0022-0001-InitializeL_command02
sl@0
  1568
		OUTSTANDING
sl@0
  1569
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0022-0001-SetPrioritySettings_command03
sl@0
  1570
		COMMAND		devsound1		Capabilities
sl@0
  1571
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0022-0001-SetConfigL_command05
sl@0
  1572
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0022-0001-ReplaceFile_command06
sl@0
  1573
		COMMAND		devsound1		RecordInitL
sl@0
  1574
		ASYNC_DELAY  10000000 
sl@0
  1575
		COMMAND		devsound1		Stop
sl@0
  1576
		DELAY  5000000 
sl@0
  1577
		COMMAND		devsound1		CloseFile
sl@0
  1578
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0022-0001-InitializeL_command10
sl@0
  1579
		OUTSTANDING
sl@0
  1580
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0022-0001-SetPrioritySettings_command11
sl@0
  1581
		COMMAND		devsound1		Capabilities
sl@0
  1582
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0022-0001-SetConfigL_command13
sl@0
  1583
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0022-0001-OpenFile_command14
sl@0
  1584
		COMMAND		devsound1		PlayInitL
sl@0
  1585
		OUTSTANDING
sl@0
  1586
		COMMAND		devsound1		CloseFile
sl@0
  1587
		COMMAND		devsound1		~
sl@0
  1588
	END_TEST_BLOCK
sl@0
  1589
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0022
sl@0
  1590
sl@0
  1591
sl@0
  1592
sl@0
  1593
sl@0
  1594
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0023
sl@0
  1595
sl@0
  1596
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0023
sl@0
  1597
//!@SYMAPI
sl@0
  1598
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1599
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1600
//!                CMMFDevSound::Capabilities()
sl@0
  1601
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1602
//!                CMMFDevSound::PlayInitL()
sl@0
  1603
//!                CMMFDevSound::RecordInitL()
sl@0
  1604
//!                CMMFDevSound::Stop()
sl@0
  1605
//!@SYMAuthor			alavariega
sl@0
  1606
//!@SYMCreationDate		8/11/2008 
sl@0
  1607
//!@SYMTestCaseDesc		PCM 32k stereo record and recording
sl@0
  1608
//!@SYMTestActions
sl@0
  1609
//!                1.- Create a Instance of DevSound
sl@0
  1610
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1611
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  1612
//!                4.- Capabilities
sl@0
  1613
//!                5.- Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate32000Hz)
sl@0
  1614
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec32kPCMStereo.pcm)
sl@0
  1615
//!                7.- StartRecord 10s
sl@0
  1616
//!                8.- Stop 5s
sl@0
  1617
//!                9.- CloseFile
sl@0
  1618
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1619
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  1620
//!                12.- Capabilities
sl@0
  1621
//!                13.- Set Configuration (Channels = EMMFStereo; Rate =EMMFSampleRate32000Hz)
sl@0
  1622
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec32kPCMStereo.pcm)
sl@0
  1623
//!                15.- StartPlay EOF
sl@0
  1624
//!                16.- CloseFile
sl@0
  1625
//!                17.-delete DevSound instance
sl@0
  1626
//!@SYMTestStatus		Verified
sl@0
  1627
//!@SYMTestPriority		High
sl@0
  1628
//!@SYMTestExpectedResults
sl@0
  1629
//!                PCM 32k stereo record and recording
sl@0
  1630
//!@SYMTestType			CIT
sl@0
  1631
sl@0
  1632
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1633
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1634
		COMMAND		devsound1		NewL
sl@0
  1635
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0023-0001-InitializeL_command02
sl@0
  1636
		OUTSTANDING
sl@0
  1637
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0023-0001-SetPrioritySettings_command03
sl@0
  1638
		COMMAND		devsound1		Capabilities
sl@0
  1639
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0023-0001-SetConfigL_command05
sl@0
  1640
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0023-0001-ReplaceFile_command06
sl@0
  1641
		COMMAND		devsound1		RecordInitL
sl@0
  1642
		ASYNC_DELAY  10000000 
sl@0
  1643
		COMMAND		devsound1		Stop
sl@0
  1644
		DELAY  5000000 
sl@0
  1645
		COMMAND		devsound1		CloseFile
sl@0
  1646
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0023-0001-InitializeL_command10
sl@0
  1647
		OUTSTANDING
sl@0
  1648
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0023-0001-SetPrioritySettings_command11
sl@0
  1649
		COMMAND		devsound1		Capabilities
sl@0
  1650
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0023-0001-SetConfigL_command13
sl@0
  1651
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0023-0001-OpenFile_command14
sl@0
  1652
		COMMAND		devsound1		PlayInitL
sl@0
  1653
		OUTSTANDING
sl@0
  1654
		COMMAND		devsound1		CloseFile
sl@0
  1655
		COMMAND		devsound1		~
sl@0
  1656
	END_TEST_BLOCK
sl@0
  1657
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0023
sl@0
  1658
sl@0
  1659
sl@0
  1660
sl@0
  1661
sl@0
  1662
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0024
sl@0
  1663
sl@0
  1664
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0024
sl@0
  1665
//!@SYMAPI
sl@0
  1666
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1667
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1668
//!                CMMFDevSound::Capabilities()
sl@0
  1669
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1670
//!                CMMFDevSound::PlayInitL()
sl@0
  1671
//!                CMMFDevSound::RecordInitL()
sl@0
  1672
//!                CMMFDevSound::Stop()
sl@0
  1673
//!@SYMAuthor			alavariega
sl@0
  1674
//!@SYMCreationDate		8/11/2008 
sl@0
  1675
//!@SYMTestCaseDesc		PCM 48k mono record and recording
sl@0
  1676
//!@SYMTestActions
sl@0
  1677
//!                1.- Create a Instance of DevSound
sl@0
  1678
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1679
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  1680
//!                4.- Capabilities
sl@0
  1681
//!                5.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate48000Hz)
sl@0
  1682
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec48kPCM.pcm)
sl@0
  1683
//!                7.- StartRecord 10s
sl@0
  1684
//!                8.- Stop 5s
sl@0
  1685
//!                9.- CloseFile
sl@0
  1686
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1687
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  1688
//!                12.- Capabilities
sl@0
  1689
//!                13.- Set Configuration (Channels = EMMFMono; Rate =EMMFSampleRate48000Hz)
sl@0
  1690
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec48kPCM.pcm)
sl@0
  1691
//!                15.- StartPlay EOF
sl@0
  1692
//!                16.- CloseFile
sl@0
  1693
//!                17.-delete DevSound instance
sl@0
  1694
//!@SYMTestStatus		Verified
sl@0
  1695
//!@SYMTestPriority		High
sl@0
  1696
//!@SYMTestExpectedResults
sl@0
  1697
//!                PCM 48k mono record and recording
sl@0
  1698
//!@SYMTestType			CIT
sl@0
  1699
sl@0
  1700
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1701
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1702
		COMMAND		devsound1		NewL
sl@0
  1703
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0024-0001-InitializeL_command02
sl@0
  1704
		OUTSTANDING
sl@0
  1705
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0024-0001-SetPrioritySettings_command03
sl@0
  1706
		COMMAND		devsound1		Capabilities
sl@0
  1707
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0024-0001-SetConfigL_command05
sl@0
  1708
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0024-0001-ReplaceFile_command06
sl@0
  1709
		COMMAND		devsound1		RecordInitL
sl@0
  1710
		ASYNC_DELAY  10000000 
sl@0
  1711
		COMMAND		devsound1		Stop
sl@0
  1712
		DELAY  5000000 
sl@0
  1713
		COMMAND		devsound1		CloseFile
sl@0
  1714
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0024-0001-InitializeL_command10
sl@0
  1715
		OUTSTANDING
sl@0
  1716
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0024-0001-SetPrioritySettings_command11
sl@0
  1717
		COMMAND		devsound1		Capabilities
sl@0
  1718
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0024-0001-SetConfigL_command13
sl@0
  1719
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0024-0001-OpenFile_command14
sl@0
  1720
		COMMAND		devsound1		PlayInitL
sl@0
  1721
		OUTSTANDING
sl@0
  1722
		COMMAND		devsound1		CloseFile
sl@0
  1723
		COMMAND		devsound1		~
sl@0
  1724
	END_TEST_BLOCK
sl@0
  1725
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0024
sl@0
  1726
sl@0
  1727
sl@0
  1728
sl@0
  1729
sl@0
  1730
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0025
sl@0
  1731
sl@0
  1732
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0025
sl@0
  1733
//!@SYMAPI
sl@0
  1734
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1735
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1736
//!                CMMFDevSound::Capabilities()
sl@0
  1737
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1738
//!                CMMFDevSound::PlayInitL()
sl@0
  1739
//!                CMMFDevSound::RecordInitL()
sl@0
  1740
//!                CMMFDevSound::Stop()
sl@0
  1741
//!@SYMAuthor			alavariega
sl@0
  1742
//!@SYMCreationDate		8/11/2008 
sl@0
  1743
//!@SYMTestCaseDesc		PCM 48k stereo record and recording
sl@0
  1744
//!@SYMTestActions
sl@0
  1745
//!                1.- Create a Instance of DevSound
sl@0
  1746
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1747
//!                3.- Set Priority (Priority = {Priority,PriorityVideoRecording}; Preference = {PriorityPreference,PriorityPreferenceVideoRecording}; PriorityState = EMMFStateRecording )
sl@0
  1748
//!                4.- Capabilities
sl@0
  1749
//!                5.- Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz)
sl@0
  1750
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec48kPCMStereo.pcm)
sl@0
  1751
//!                7.- StartRecord 10s
sl@0
  1752
//!                8.- Stop 5s
sl@0
  1753
//!                9.- CloseFile
sl@0
  1754
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1755
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  1756
//!                12.- Capabilities
sl@0
  1757
//!                13.- Set Configuration (Channels = EMMFStereo; Rate =EMMFSampleRate48000Hz)
sl@0
  1758
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec48kPCMStereo.pcm)
sl@0
  1759
//!                15.- StartPlay EOF
sl@0
  1760
//!                16.- CloseFile
sl@0
  1761
//!                17.-Delete DevSound instance
sl@0
  1762
//!@SYMTestStatus		Verified
sl@0
  1763
//!@SYMTestPriority		High
sl@0
  1764
//!@SYMTestExpectedResults
sl@0
  1765
//!                PCM 48k stereo record and recording
sl@0
  1766
//!@SYMTestType			CIT
sl@0
  1767
sl@0
  1768
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1769
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1770
		COMMAND		devsound1		NewL
sl@0
  1771
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0025-0001-InitializeL_command02
sl@0
  1772
		OUTSTANDING
sl@0
  1773
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0025-0001-SetPrioritySettings_command03
sl@0
  1774
		COMMAND		devsound1		Capabilities
sl@0
  1775
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0025-0001-SetConfigL_command05
sl@0
  1776
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0025-0001-ReplaceFile_command06
sl@0
  1777
		COMMAND		devsound1		RecordInitL
sl@0
  1778
		ASYNC_DELAY  10000000 
sl@0
  1779
		COMMAND		devsound1		Stop
sl@0
  1780
		DELAY  5000000 
sl@0
  1781
		COMMAND		devsound1		CloseFile
sl@0
  1782
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0025-0001-InitializeL_command10
sl@0
  1783
		OUTSTANDING
sl@0
  1784
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0025-0001-SetPrioritySettings_command11
sl@0
  1785
		COMMAND		devsound1		Capabilities
sl@0
  1786
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0025-0001-SetConfigL_command13
sl@0
  1787
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0025-0001-OpenFile_command14
sl@0
  1788
		COMMAND		devsound1		PlayInitL
sl@0
  1789
		OUTSTANDING
sl@0
  1790
		COMMAND		devsound1		CloseFile
sl@0
  1791
		COMMAND		devsound1		~
sl@0
  1792
	END_TEST_BLOCK
sl@0
  1793
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0025
sl@0
  1794
sl@0
  1795
sl@0
  1796
sl@0
  1797
sl@0
  1798
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0026
sl@0
  1799
sl@0
  1800
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0026
sl@0
  1801
//!@SYMAPI
sl@0
  1802
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1803
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1804
//!                CMMFDevSound::Capabilities()
sl@0
  1805
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1806
//!                CMMFDevSound::PlayInitL()
sl@0
  1807
//!                CMMFDevSound::RecordInitL()
sl@0
  1808
//!                CMMFDevSound::Stop()
sl@0
  1809
//!@SYMAuthor			alavariega
sl@0
  1810
//!@SYMCreationDate		8/11/2008 
sl@0
  1811
//!@SYMTestCaseDesc		PCM 8k mono record and recording
sl@0
  1812
//!@SYMTestActions
sl@0
  1813
//!                1.- Create a Instance of DevSound
sl@0
  1814
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1815
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  1816
//!                4.- Capabilities
sl@0
  1817
//!                5.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  1818
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCM.pcm)
sl@0
  1819
//!                7.- StartRecord 10s
sl@0
  1820
//!                8.- Stop 5s
sl@0
  1821
//!                9.- CloseFile
sl@0
  1822
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1823
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  1824
//!                12.- Capabilities
sl@0
  1825
//!                13.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  1826
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCM.pcm)
sl@0
  1827
//!                15.- StartPlay EOF
sl@0
  1828
//!                16.- CloseFile
sl@0
  1829
//!                17.-delete DevSound instance
sl@0
  1830
//!@SYMTestStatus		Verified
sl@0
  1831
//!@SYMTestPriority		High
sl@0
  1832
//!@SYMTestExpectedResults
sl@0
  1833
//!                PCM 8k mono record and recording
sl@0
  1834
//!@SYMTestType			CIT
sl@0
  1835
sl@0
  1836
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1837
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1838
		COMMAND		devsound1		NewL
sl@0
  1839
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0026-0001-InitializeL_command02
sl@0
  1840
		OUTSTANDING
sl@0
  1841
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0026-0001-SetPrioritySettings_command03
sl@0
  1842
		COMMAND		devsound1		Capabilities
sl@0
  1843
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0026-0001-SetConfigL_command05
sl@0
  1844
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0026-0001-ReplaceFile_command06
sl@0
  1845
		COMMAND		devsound1		RecordInitL
sl@0
  1846
		ASYNC_DELAY  10000000 
sl@0
  1847
		COMMAND		devsound1		Stop
sl@0
  1848
		DELAY  5000000 
sl@0
  1849
		COMMAND		devsound1		CloseFile
sl@0
  1850
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0026-0001-InitializeL_command10
sl@0
  1851
		OUTSTANDING
sl@0
  1852
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0026-0001-SetPrioritySettings_command11
sl@0
  1853
		COMMAND		devsound1		Capabilities
sl@0
  1854
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0026-0001-SetConfigL_command13
sl@0
  1855
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0026-0001-OpenFile_command14
sl@0
  1856
		COMMAND		devsound1		PlayInitL
sl@0
  1857
		OUTSTANDING
sl@0
  1858
		COMMAND		devsound1		CloseFile
sl@0
  1859
		COMMAND		devsound1		~
sl@0
  1860
	END_TEST_BLOCK
sl@0
  1861
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0026
sl@0
  1862
sl@0
  1863
sl@0
  1864
sl@0
  1865
sl@0
  1866
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0027
sl@0
  1867
sl@0
  1868
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0027
sl@0
  1869
//!@SYMAPI
sl@0
  1870
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1871
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1872
//!                CMMFDevSound::Capabilities()
sl@0
  1873
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1874
//!                CMMFDevSound::PlayInitL()
sl@0
  1875
//!                CMMFDevSound::RecordInitL()
sl@0
  1876
//!                CMMFDevSound::Stop()
sl@0
  1877
//!@SYMAuthor			alavariega
sl@0
  1878
//!@SYMCreationDate		8/11/2008 
sl@0
  1879
//!@SYMTestCaseDesc		PCM 8 KHz mono recording and playback
sl@0
  1880
//!@SYMTestActions
sl@0
  1881
//!                1.- Create a Instance of DevSound
sl@0
  1882
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1883
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  1884
//!                4.- Capabilities
sl@0
  1885
//!                5.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  1886
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCMPhoneMem.pcm)
sl@0
  1887
//!                7.- StartRecord 10s
sl@0
  1888
//!                8.- Stop 5s
sl@0
  1889
//!                9.- CloseFile
sl@0
  1890
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1891
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  1892
//!                12.- Capabilities
sl@0
  1893
//!                13.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  1894
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCMPhoneMem.pcm)
sl@0
  1895
//!                15.- StartPlay EOF
sl@0
  1896
//!                16.- CloseFile
sl@0
  1897
//!                17.-delete DevSound instance
sl@0
  1898
//!@SYMTestStatus		Verified
sl@0
  1899
//!@SYMTestPriority		High
sl@0
  1900
//!@SYMTestExpectedResults
sl@0
  1901
//!                PCM 8 KHz mono recording and playback
sl@0
  1902
//!@SYMTestType			CIT
sl@0
  1903
sl@0
  1904
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1905
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1906
		COMMAND		devsound1		NewL
sl@0
  1907
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0027-0001-InitializeL_command02
sl@0
  1908
		OUTSTANDING
sl@0
  1909
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0027-0001-SetPrioritySettings_command03
sl@0
  1910
		COMMAND		devsound1		Capabilities
sl@0
  1911
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0027-0001-SetConfigL_command05
sl@0
  1912
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0027-0001-ReplaceFile_command06
sl@0
  1913
		COMMAND		devsound1		RecordInitL
sl@0
  1914
		ASYNC_DELAY  10000000 
sl@0
  1915
		COMMAND		devsound1		Stop
sl@0
  1916
		DELAY  5000000 
sl@0
  1917
		COMMAND		devsound1		CloseFile
sl@0
  1918
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0027-0001-InitializeL_command10
sl@0
  1919
		OUTSTANDING
sl@0
  1920
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0027-0001-SetPrioritySettings_command11
sl@0
  1921
		COMMAND		devsound1		Capabilities
sl@0
  1922
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0027-0001-SetConfigL_command13
sl@0
  1923
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0027-0001-OpenFile_command14
sl@0
  1924
		COMMAND		devsound1		PlayInitL
sl@0
  1925
		OUTSTANDING
sl@0
  1926
		COMMAND		devsound1		CloseFile
sl@0
  1927
		COMMAND		devsound1		~
sl@0
  1928
	END_TEST_BLOCK
sl@0
  1929
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0027
sl@0
  1930
sl@0
  1931
sl@0
  1932
sl@0
  1933
sl@0
  1934
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0028
sl@0
  1935
sl@0
  1936
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0028
sl@0
  1937
//!@SYMAPI
sl@0
  1938
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  1939
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  1940
//!                CMMFDevSound::Capabilities()
sl@0
  1941
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  1942
//!                CMMFDevSound::PlayInitL()
sl@0
  1943
//!                CMMFDevSound::RecordInitL()
sl@0
  1944
//!                CMMFDevSound::Stop()
sl@0
  1945
//!@SYMAuthor			alavariega
sl@0
  1946
//!@SYMCreationDate		8/11/2008 
sl@0
  1947
//!@SYMTestCaseDesc		PCM 8k mono record rec stop twice
sl@0
  1948
//!@SYMTestActions
sl@0
  1949
//!                1.- Create a Instance of DevSound
sl@0
  1950
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  1951
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  1952
//!                4.- Capabilities
sl@0
  1953
//!                5.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  1954
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCMRecStopTwice1.pcm)
sl@0
  1955
//!                7.- StartRecord 10s
sl@0
  1956
//!                8.- Stop 5s
sl@0
  1957
//!                9.- CloseFile
sl@0
  1958
//!                10.-  ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCMRecStopTwice2.pcm)
sl@0
  1959
//!                11.- StartRecord 10s
sl@0
  1960
//!                12.- Stop
sl@0
  1961
//!                13.- CloseFile
sl@0
  1962
//!                14.-Delete DevSound instance
sl@0
  1963
//!@SYMTestStatus		Verified
sl@0
  1964
//!@SYMTestPriority		High
sl@0
  1965
//!@SYMTestExpectedResults
sl@0
  1966
//!                PCM 8k mono record rec stop twice
sl@0
  1967
//!@SYMTestType			CIT
sl@0
  1968
sl@0
  1969
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  1970
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  1971
		COMMAND		devsound1		NewL
sl@0
  1972
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0028-0001-InitializeL_command02
sl@0
  1973
		OUTSTANDING
sl@0
  1974
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0028-0001-SetPrioritySettings_command03
sl@0
  1975
		COMMAND		devsound1		Capabilities
sl@0
  1976
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0028-0001-SetConfigL_command05
sl@0
  1977
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0028-0001-ReplaceFile_command06
sl@0
  1978
		COMMAND		devsound1		RecordInitL
sl@0
  1979
		ASYNC_DELAY  10000000 
sl@0
  1980
		COMMAND		devsound1		Stop
sl@0
  1981
		DELAY  5000000 
sl@0
  1982
		COMMAND		devsound1		CloseFile
sl@0
  1983
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0028-0001-ReplaceFile_command10
sl@0
  1984
		COMMAND		devsound1		RecordInitL
sl@0
  1985
		ASYNC_DELAY  10000000 
sl@0
  1986
		COMMAND		devsound1		Stop
sl@0
  1987
		COMMAND		devsound1		CloseFile
sl@0
  1988
		COMMAND		devsound1		~
sl@0
  1989
	END_TEST_BLOCK
sl@0
  1990
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0028
sl@0
  1991
sl@0
  1992
sl@0
  1993
sl@0
  1994
sl@0
  1995
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0029
sl@0
  1996
sl@0
  1997
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0029
sl@0
  1998
//!@SYMAPI
sl@0
  1999
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  2000
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  2001
//!                CMMFDevSound::Capabilities()
sl@0
  2002
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  2003
//!                CMMFDevSound::PlayInitL()
sl@0
  2004
//!                CMMFDevSound::RecordInitL()
sl@0
  2005
//!                CMMFDevSound::Stop()
sl@0
  2006
//!@SYMAuthor			alavariega
sl@0
  2007
//!@SYMCreationDate		8/11/2008 
sl@0
  2008
//!@SYMTestCaseDesc		PCM 8k mono record using UID
sl@0
  2009
//!@SYMTestActions
sl@0
  2010
//!                1.- Create a Instance of DevSound
sl@0
  2011
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  2012
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  2013
//!                4.- Capabilities
sl@0
  2014
//!                5.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  2015
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCMUID.pcm)
sl@0
  2016
//!                7.- StartRecord 10s
sl@0
  2017
//!                8.- Stop 5s
sl@0
  2018
//!                9.- CloseFile
sl@0
  2019
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  2020
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  2021
//!                12.- Capabilities
sl@0
  2022
//!                13.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  2023
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCMUID.pcm)
sl@0
  2024
//!                15.- StartPlay EOF
sl@0
  2025
//!                16.- CloseFile
sl@0
  2026
//!                17.-delete DevSound instance
sl@0
  2027
//!@SYMTestStatus		Verified
sl@0
  2028
//!@SYMTestPriority		High
sl@0
  2029
//!@SYMTestExpectedResults
sl@0
  2030
//!                PCM 8k mono record using UID
sl@0
  2031
//!@SYMTestType			CIT
sl@0
  2032
sl@0
  2033
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  2034
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  2035
		COMMAND		devsound1		NewL
sl@0
  2036
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0029-0001-InitializeL_command02
sl@0
  2037
		OUTSTANDING
sl@0
  2038
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0029-0001-SetPrioritySettings_command03
sl@0
  2039
		COMMAND		devsound1		Capabilities
sl@0
  2040
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0029-0001-SetConfigL_command05
sl@0
  2041
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0029-0001-ReplaceFile_command06
sl@0
  2042
		COMMAND		devsound1		RecordInitL
sl@0
  2043
		ASYNC_DELAY  10000000 
sl@0
  2044
		COMMAND		devsound1		Stop
sl@0
  2045
		DELAY  5000000 
sl@0
  2046
		COMMAND		devsound1		CloseFile
sl@0
  2047
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0029-0001-InitializeL_command10
sl@0
  2048
		OUTSTANDING
sl@0
  2049
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0029-0001-SetPrioritySettings_command11
sl@0
  2050
		COMMAND		devsound1		Capabilities
sl@0
  2051
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0029-0001-SetConfigL_command13
sl@0
  2052
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0029-0001-OpenFile_command14
sl@0
  2053
		COMMAND		devsound1		PlayInitL
sl@0
  2054
		OUTSTANDING
sl@0
  2055
		COMMAND		devsound1		CloseFile
sl@0
  2056
		COMMAND		devsound1		~
sl@0
  2057
	END_TEST_BLOCK
sl@0
  2058
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0029
sl@0
  2059
sl@0
  2060
sl@0
  2061
sl@0
  2062
sl@0
  2063
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0030
sl@0
  2064
sl@0
  2065
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0030
sl@0
  2066
//!@SYMAPI
sl@0
  2067
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  2068
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  2069
//!                CMMFDevSound::Capabilities()
sl@0
  2070
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  2071
//!                CMMFDevSound::PlayInitL()
sl@0
  2072
//!                CMMFDevSound::RecordInitL()
sl@0
  2073
//!                CMMFDevSound::Stop()
sl@0
  2074
//!@SYMAuthor			alavariega
sl@0
  2075
//!@SYMCreationDate		8/11/2008 
sl@0
  2076
//!@SYMTestCaseDesc		PCM 8k mono record when accessory is not used
sl@0
  2077
//!@SYMTestActions
sl@0
  2078
//!                1.- Create a Instance of DevSound
sl@0
  2079
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  2080
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  2081
//!                4.- Capabilities
sl@0
  2082
//!                5.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  2083
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCMWithoutAcc.pcm)
sl@0
  2084
//!                7.- StartRecord 10s
sl@0
  2085
//!                8.- Stop 5s
sl@0
  2086
//!                9.- CloseFile
sl@0
  2087
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  2088
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  2089
//!                12.- Capabilities
sl@0
  2090
//!                13.- Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  2091
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCMWithoutAcc.pcm)
sl@0
  2092
//!                15.- StartPlay EOF
sl@0
  2093
//!                16.- CloseFile
sl@0
  2094
//!                17.-delete DevSound instance
sl@0
  2095
//!@SYMTestStatus		Verified
sl@0
  2096
//!@SYMTestPriority		High
sl@0
  2097
//!@SYMTestExpectedResults
sl@0
  2098
//!                PCM 8k mono record when accessory is not used
sl@0
  2099
//!@SYMTestType			CIT
sl@0
  2100
sl@0
  2101
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  2102
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  2103
		COMMAND		devsound1		NewL
sl@0
  2104
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0030-0001-InitializeL_command02
sl@0
  2105
		OUTSTANDING
sl@0
  2106
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0030-0001-SetPrioritySettings_command03
sl@0
  2107
		COMMAND		devsound1		Capabilities
sl@0
  2108
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0030-0001-SetConfigL_command05
sl@0
  2109
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0030-0001-ReplaceFile_command06
sl@0
  2110
		COMMAND		devsound1		RecordInitL
sl@0
  2111
		ASYNC_DELAY  10000000 
sl@0
  2112
		COMMAND		devsound1		Stop
sl@0
  2113
		DELAY  5000000 
sl@0
  2114
		COMMAND		devsound1		CloseFile
sl@0
  2115
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0030-0001-InitializeL_command10
sl@0
  2116
		OUTSTANDING
sl@0
  2117
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0030-0001-SetPrioritySettings_command11
sl@0
  2118
		COMMAND		devsound1		Capabilities
sl@0
  2119
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0030-0001-SetConfigL_command13
sl@0
  2120
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0030-0001-OpenFile_command14
sl@0
  2121
		COMMAND		devsound1		PlayInitL
sl@0
  2122
		OUTSTANDING
sl@0
  2123
		COMMAND		devsound1		CloseFile
sl@0
  2124
		COMMAND		devsound1		~
sl@0
  2125
	END_TEST_BLOCK
sl@0
  2126
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0030
sl@0
  2127
sl@0
  2128
sl@0
  2129
sl@0
  2130
sl@0
  2131
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0031
sl@0
  2132
sl@0
  2133
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0031
sl@0
  2134
//!@SYMAPI
sl@0
  2135
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  2136
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  2137
//!                CMMFDevSound::Capabilities()
sl@0
  2138
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  2139
//!                CMMFDevSound::PlayInitL()
sl@0
  2140
//!                CMMFDevSound::RecordInitL()
sl@0
  2141
//!                CMMFDevSound::Stop()
sl@0
  2142
//!@SYMAuthor			alavariega
sl@0
  2143
//!@SYMCreationDate		8/11/2008 
sl@0
  2144
//!@SYMTestCaseDesc		PCM 8k stereo record
sl@0
  2145
//!@SYMTestActions
sl@0
  2146
//!                1.- Create a Instance of DevSound
sl@0
  2147
//!                2.- Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}  )
sl@0
  2148
//!                3.- Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording )
sl@0
  2149
//!                4.- Capabilities
sl@0
  2150
//!                5.- Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate8000Hz)
sl@0
  2151
//!                6.- ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCMStereo.pcm)
sl@0
  2152
//!                7.- StartRecord 10s
sl@0
  2153
//!                8.- Stop 5s
sl@0
  2154
//!                9.- CloseFile
sl@0
  2155
//!                10.- Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}  )
sl@0
  2156
//!                11.- Set Priority (Priority ={Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState =  EMMFStatePlaying )
sl@0
  2157
//!                12.- Capabilities
sl@0
  2158
//!                13.- Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate8000Hz)
sl@0
  2159
//!                14.- OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\recording\Rec8kPCMStereo.pcm)
sl@0
  2160
//!                15.- StartPlay EOF
sl@0
  2161
//!                16.- CloseFile
sl@0
  2162
//!                17.-delete DevSound instance
sl@0
  2163
//!@SYMTestStatus		Verified
sl@0
  2164
//!@SYMTestPriority		High
sl@0
  2165
//!@SYMTestExpectedResults
sl@0
  2166
//!                PCM 8k stereo record
sl@0
  2167
//!@SYMTestType			CIT
sl@0
  2168
sl@0
  2169
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  2170
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  2171
		COMMAND		devsound1		NewL
sl@0
  2172
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0031-0001-InitializeL_command02
sl@0
  2173
		OUTSTANDING
sl@0
  2174
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0031-0001-SetPrioritySettings_command03
sl@0
  2175
		COMMAND		devsound1		Capabilities
sl@0
  2176
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0031-0001-SetConfigL_command05
sl@0
  2177
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0031-0001-ReplaceFile_command06
sl@0
  2178
		COMMAND		devsound1		RecordInitL
sl@0
  2179
		ASYNC_DELAY  10000000 
sl@0
  2180
		COMMAND		devsound1		Stop
sl@0
  2181
		DELAY  5000000 
sl@0
  2182
		COMMAND		devsound1		CloseFile
sl@0
  2183
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0031-0001-InitializeL_command10
sl@0
  2184
		OUTSTANDING
sl@0
  2185
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0031-0001-SetPrioritySettings_command11
sl@0
  2186
		COMMAND		devsound1		Capabilities
sl@0
  2187
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0031-0001-SetConfigL_command13
sl@0
  2188
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0031-0001-OpenFile_command14
sl@0
  2189
		COMMAND		devsound1		PlayInitL
sl@0
  2190
		OUTSTANDING
sl@0
  2191
		COMMAND		devsound1		CloseFile
sl@0
  2192
		COMMAND		devsound1		~
sl@0
  2193
	END_TEST_BLOCK
sl@0
  2194
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0031
sl@0
  2195
sl@0
  2196
sl@0
  2197
sl@0
  2198
sl@0
  2199
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0032
sl@0
  2200
sl@0
  2201
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0032
sl@0
  2202
//!@SYMAPI
sl@0
  2203
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  2204
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  2205
//!                CMMFDevSound::Capabilities()
sl@0
  2206
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  2207
//!                CMMFDevSound::PlayInitL()
sl@0
  2208
//!                CMMFDevSound::RecordInitL()
sl@0
  2209
//!@SYMAuthor			ddamian
sl@0
  2210
//!@SYMCreationDate		8/11/2008 
sl@0
  2211
//!@SYMTestCaseDesc		Audio routing - 16k stereo recording when mono headset is used
sl@0
  2212
//!@SYMTestActions
sl@0
  2213
//!                1.- Create DevSound instance
sl@0
  2214
//!                2.- Initialize DevSound  ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
  2215
//!                3.- Set priority settings (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
sl@0
  2216
//!                4.- Capabilities
sl@0
  2217
//!                5.- SetConfiguration (Channels = EMMFStereo; Rate = EMMFSampleRate16000Hz)
sl@0
  2218
//!                6.- Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\recording\RoutingRecWithAcc.pcm)
sl@0
  2219
//!                7.- Record 10s
sl@0
  2220
//!                8.- Stop 5s
sl@0
  2221
//!                9.- Close File
sl@0
  2222
//!                10.- initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
  2223
//!                11.- Set priority settings (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState = EMMFStatePlaying)
sl@0
  2224
//!                12.- Capabilities
sl@0
  2225
//!                13.- Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate16000Hz)
sl@0
  2226
//!                14.- Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\recording\RoutingRecWithAcc.pcm)
sl@0
  2227
//!                15.- Play EOF
sl@0
  2228
//!                16.- Close File
sl@0
  2229
//!                17.- Destroy Data
sl@0
  2230
//!@SYMTestStatus		Verified
sl@0
  2231
//!@SYMTestPriority		High
sl@0
  2232
//!@SYMTestExpectedResults
sl@0
  2233
//!                Audio routing - 16k stereo recording when mono headset is used
sl@0
  2234
//!@SYMTestType			CIT
sl@0
  2235
sl@0
  2236
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  2237
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  2238
		COMMAND		devsound1		NewL
sl@0
  2239
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0032-0001-InitializeL_command02
sl@0
  2240
		OUTSTANDING
sl@0
  2241
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0032-0001-SetPrioritySettings_command03
sl@0
  2242
		COMMAND		devsound1		Capabilities
sl@0
  2243
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0032-0001-SetConfigL_command05
sl@0
  2244
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0032-0001-ReplaceFile_command06
sl@0
  2245
		COMMAND		devsound1		RecordInitL
sl@0
  2246
		ASYNC_DELAY  10000000 
sl@0
  2247
		COMMAND		devsound1		Stop
sl@0
  2248
		DELAY  5000000 
sl@0
  2249
		COMMAND		devsound1		CloseFile
sl@0
  2250
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0032-0001-InitializeL_command10
sl@0
  2251
		OUTSTANDING
sl@0
  2252
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0032-0001-SetPrioritySettings_command11
sl@0
  2253
		COMMAND		devsound1		Capabilities
sl@0
  2254
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0032-0001-SetConfigL_command13
sl@0
  2255
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0032-0001-OpenFile_command14
sl@0
  2256
		COMMAND		devsound1		PlayInitL
sl@0
  2257
		OUTSTANDING
sl@0
  2258
		COMMAND		devsound1		CloseFile
sl@0
  2259
		COMMAND		devsound1		~
sl@0
  2260
	END_TEST_BLOCK
sl@0
  2261
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0032
sl@0
  2262
sl@0
  2263
sl@0
  2264
sl@0
  2265
sl@0
  2266
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0033
sl@0
  2267
sl@0
  2268
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0033
sl@0
  2269
//!@SYMAPI
sl@0
  2270
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  2271
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  2272
//!                CMMFDevSound::Capabilities()
sl@0
  2273
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  2274
//!                CMMFDevSound::PlayInitL()
sl@0
  2275
//!                CMMFDevSound::RecordInitL()
sl@0
  2276
//!@SYMAuthor			ddamian
sl@0
  2277
//!@SYMCreationDate		8/11/2008 
sl@0
  2278
//!@SYMTestCaseDesc		Audio routing - Insert mono headset during 16k stereo recording 
sl@0
  2279
//!@SYMTestActions
sl@0
  2280
//!                1.- Create DevSound instance
sl@0
  2281
//!                2.- Initialize DevSound  ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
  2282
//!                3.- Set priority settings (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
sl@0
  2283
//!                4.- Capabilities
sl@0
  2284
//!                5.- SetConfiguration (Channels = EMMFStereo; Rate = EMMFSampleRate16000Hz)
sl@0
  2285
//!                6.- Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\recording\RoutingRecWithAcc.pcm)
sl@0
  2286
//!                7.- Record 20s
sl@0
  2287
//!                8.- Stop 5s
sl@0
  2288
//!                9.- Close File
sl@0
  2289
//!                10.- initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
  2290
//!                11.- Set priority settings (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState = EMMFStatePlaying)
sl@0
  2291
//!                12.- Capabilities
sl@0
  2292
//!                13.- Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate16000Hz)
sl@0
  2293
//!                14.- Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\recording\RoutingRecWithAcc.pcm)
sl@0
  2294
//!                15..- Play EOF
sl@0
  2295
//!                16.- Close File
sl@0
  2296
//!                17.- Destroy Data
sl@0
  2297
//!@SYMTestStatus		Verified
sl@0
  2298
//!@SYMTestPriority		High
sl@0
  2299
//!@SYMTestExpectedResults
sl@0
  2300
//!                Audio routing - Insert mono headset during 16k stereo recording
sl@0
  2301
//!@SYMTestType			CIT
sl@0
  2302
sl@0
  2303
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  2304
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  2305
		COMMAND		devsound1		NewL
sl@0
  2306
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0033-0001-InitializeL_command02
sl@0
  2307
		OUTSTANDING
sl@0
  2308
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0033-0001-SetPrioritySettings_command03
sl@0
  2309
		COMMAND		devsound1		Capabilities
sl@0
  2310
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0033-0001-SetConfigL_command05
sl@0
  2311
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0033-0001-ReplaceFile_command06
sl@0
  2312
		COMMAND		devsound1		RecordInitL
sl@0
  2313
		ASYNC_DELAY  20000000 
sl@0
  2314
		COMMAND		devsound1		Stop
sl@0
  2315
		DELAY  5000000 
sl@0
  2316
		COMMAND		devsound1		CloseFile
sl@0
  2317
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0033-0001-InitializeL_command10
sl@0
  2318
		OUTSTANDING
sl@0
  2319
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0033-0001-SetPrioritySettings_command11
sl@0
  2320
		COMMAND		devsound1		Capabilities
sl@0
  2321
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0033-0001-SetConfigL_command13
sl@0
  2322
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0033-0001-OpenFile_command14
sl@0
  2323
		COMMAND		devsound1		PlayInitL
sl@0
  2324
		OUTSTANDING
sl@0
  2325
		COMMAND		devsound1		CloseFile
sl@0
  2326
		COMMAND		devsound1		~
sl@0
  2327
	END_TEST_BLOCK
sl@0
  2328
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0033
sl@0
  2329
sl@0
  2330
sl@0
  2331
sl@0
  2332
sl@0
  2333
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0034
sl@0
  2334
sl@0
  2335
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0034
sl@0
  2336
//!@SYMAPI
sl@0
  2337
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  2338
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  2339
//!                CMMFDevSound::Capabilities()
sl@0
  2340
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  2341
//!                CMMFDevSound::PlayInitL()
sl@0
  2342
//!                CMMFDevSound::RecordInitL()
sl@0
  2343
//!@SYMAuthor			arueda 
sl@0
  2344
//!@SYMCreationDate		8/11/2008 
sl@0
  2345
//!@SYMTestCaseDesc		PCM recording ando playback with gain
sl@0
  2346
//!@SYMTestActions
sl@0
  2347
//!                1. Create DevSound instance
sl@0
  2348
//!                2. Initialize DevSound ( Mode = EMMFStateRecording; FourCC={SpecialFourCC,RAW})
sl@0
  2349
//!                3. SetPriority (Priority={Priority,PriorityVoiceRecording}; Preference={PriorityPreference,PriorityPreferenceVideoRecording}; PriorityState=EMMFStateRecording)
sl@0
  2350
//!                4. Capabilities
sl@0
  2351
//!                5. Replace File (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\GainRecMono.pcm)
sl@0
  2352
//!                6. SetConfiguration (Channels=EMMFMono; Rate=EMMFSampleRate8000Hz)
sl@0
  2353
//!                7. StartRecord 10 s
sl@0
  2354
//!                8. SetGain (gain=0)
sl@0
  2355
//!                9. SetGain  (gain=1)
sl@0
  2356
//!                10. Stop
sl@0
  2357
//!                11. CloseFile
sl@0
  2358
//!                12. Initialize DevSound ( Mode = EMMFStatePlaying; FourCC={SpecialFourCC,RAW})
sl@0
  2359
//!                13. SetPriority (Priority={Priority,PriorityAudioPlayback}; Preference={PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState=EMMFStatePlaying)
sl@0
  2360
//!                14. Capabilities
sl@0
  2361
//!                15. Open File (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\GainRecMono.pcm)
sl@0
  2362
//!                16. SetConfiguration (Channels=EMMFMono; Rate=EMMFSampleRate8000Hz)
sl@0
  2363
//!                17. StartPlay EOF
sl@0
  2364
//!                18. Stop
sl@0
  2365
//!                19. Close File
sl@0
  2366
//!                20. Detele DevSound instance.
sl@0
  2367
//!@SYMTestStatus		Verified
sl@0
  2368
//!@SYMTestPriority		High
sl@0
  2369
//!@SYMTestExpectedResults
sl@0
  2370
//!                PCM recording ando playback with gain
sl@0
  2371
//!@SYMTestType			CIT
sl@0
  2372
sl@0
  2373
	START_TEST_BLOCK	900	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  2374
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  2375
		COMMAND		devsound1		NewL
sl@0
  2376
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0034-0001-InitializeL_command02
sl@0
  2377
		OUTSTANDING
sl@0
  2378
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0034-0001-SetPrioritySettings_command03
sl@0
  2379
		COMMAND		devsound1		Capabilities
sl@0
  2380
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0034-0001-ReplaceFile_command05
sl@0
  2381
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0034-0001-SetConfigL_command06
sl@0
  2382
		COMMAND		devsound1		RecordInitL
sl@0
  2383
		ASYNC_DELAY  10000000 
sl@0
  2384
		COMMAND		devsound1		SetGain			MULTIMEDIA-MMF-DevSound-Recording-0034-0001-SetGain_command08
sl@0
  2385
		ASYNC_DELAY  10000000 
sl@0
  2386
		COMMAND		devsound1		SetGain			MULTIMEDIA-MMF-DevSound-Recording-0034-0001-SetGain_command09
sl@0
  2387
		ASYNC_DELAY  10000000 
sl@0
  2388
		COMMAND		devsound1		Stop
sl@0
  2389
		DELAY  2000000 
sl@0
  2390
		COMMAND		devsound1		CloseFile
sl@0
  2391
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0034-0001-InitializeL_command12
sl@0
  2392
		OUTSTANDING
sl@0
  2393
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0034-0001-SetPrioritySettings_command13
sl@0
  2394
		COMMAND		devsound1		Capabilities
sl@0
  2395
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0034-0001-OpenFile_command15
sl@0
  2396
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0034-0001-SetConfigL_command16
sl@0
  2397
		COMMAND		devsound1		PlayInitL
sl@0
  2398
		OUTSTANDING
sl@0
  2399
		COMMAND		devsound1		Stop
sl@0
  2400
		COMMAND		devsound1		CloseFile
sl@0
  2401
		COMMAND		devsound1		~
sl@0
  2402
	END_TEST_BLOCK
sl@0
  2403
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0034
sl@0
  2404
sl@0
  2405
sl@0
  2406
sl@0
  2407
sl@0
  2408
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0035
sl@0
  2409
sl@0
  2410
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0035
sl@0
  2411
//!@SYMAPI
sl@0
  2412
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  2413
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  2414
//!                CMMFDevSound::Capabilities()
sl@0
  2415
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  2416
//!                CMMFDevSound::PlayInitL()
sl@0
  2417
//!@SYMAuthor			arueda 
sl@0
  2418
//!@SYMCreationDate		8/11/2008 
sl@0
  2419
//!@SYMTestCaseDesc		Input source capability - Voice recording with not allowed sample rate
sl@0
  2420
//!@SYMTestActions
sl@0
  2421
//!                1. Create DevSound instance
sl@0
  2422
//!                2. Initialize DevSound ( Mode=EMMFStateRecording; FourCC ={SpecialFourCC,RAW})
sl@0
  2423
//!                3. SetPriority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState =EMMFStateRecording)
sl@0
  2424
//!                4. Capabilities 
sl@0
  2425
//!                5. Set Configuration (Channels=EMMFMono; Rate = EMMFSampleRate44100Hz)
sl@0
  2426
//!                6. Replace File (Filename={drive,mmc}\multimedia\mmf\devsound\recording\badFile.pcm)
sl@0
  2427
//!                7. StartRecord
sl@0
  2428
//!                8. Stop
sl@0
  2429
//!                9. Close File
sl@0
  2430
//!                10. Destroy DevSound Instance
sl@0
  2431
//!@SYMTestStatus		Verified
sl@0
  2432
//!@SYMTestPriority		High
sl@0
  2433
//!@SYMTestExpectedResults
sl@0
  2434
//!                Input source capability - Voice recording with not allowed sample rate
sl@0
  2435
//!@SYMTestType			CIT
sl@0
  2436
sl@0
  2437
	START_TEST_BLOCK	300	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  2438
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  2439
		COMMAND		devsound1		NewL
sl@0
  2440
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0035-0001-InitializeL_command02
sl@0
  2441
		OUTSTANDING
sl@0
  2442
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0035-0001-SetPrioritySettings_command03
sl@0
  2443
		COMMAND		devsound1		Capabilities
sl@0
  2444
		COMMAND		!Error=-5	devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0035-0001-SetConfigL_command05
sl@0
  2445
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0035-0001-ReplaceFile_command06
sl@0
  2446
		COMMAND		devsound1		RecordInitL
sl@0
  2447
		ASYNC_DELAY  10000000 
sl@0
  2448
		COMMAND		devsound1		Stop
sl@0
  2449
		COMMAND		devsound1		CloseFile
sl@0
  2450
		COMMAND		devsound1		~
sl@0
  2451
	END_TEST_BLOCK
sl@0
  2452
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0035
sl@0
  2453
sl@0
  2454
sl@0
  2455
sl@0
  2456
sl@0
  2457
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0036
sl@0
  2458
sl@0
  2459
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0036
sl@0
  2460
//!@SYMAPI
sl@0
  2461
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  2462
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  2463
//!                CMMFDevSound::Capabilities()
sl@0
  2464
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  2465
//!                CMMFDevSound::PlayInitL()
sl@0
  2466
//!                CMMFDevSound::RecordInitL()
sl@0
  2467
//!                CMMFDevSound::Stop()
sl@0
  2468
//!@SYMAuthor			etorres
sl@0
  2469
//!@SYMCreationDate		8/11/2008 
sl@0
  2470
//!@SYMTestCaseDesc		AMR-NB playback as PocCallDown
sl@0
  2471
//!@SYMTestActions
sl@0
  2472
//!                1. Create Devsound instance 
sl@0
  2473
//!                2. Initialize Devsound ( Mode = EMMFStateRecording; FourCC = AMR)
sl@0
  2474
//!                3. Set Priority (Priority = {Priority,PriorityPocCallUp}; Preference = {PriorityPreference,PriorityPreferencePocCallUp};PriorityState=EMMFStateRecording)
sl@0
  2475
//!                4. Capabilities 
sl@0
  2476
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  2477
//!                6. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecAMRNBPoC.amr)
sl@0
  2478
//!                7. Start Recording 10 s
sl@0
  2479
//!                8. Stop 5s
sl@0
  2480
//!                9. Close File
sl@0
  2481
//!                10. Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = AMR)
sl@0
  2482
//!                11. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying)
sl@0
  2483
//!                12. Capabilities 
sl@0
  2484
//!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  2485
//!                14. Open File(Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecAMRNBPoC.amr)
sl@0
  2486
//!                15. Start Play EOF
sl@0
  2487
//!                16. Close file
sl@0
  2488
//!                17. Destroy Devsound instance
sl@0
  2489
//!@SYMTestStatus		Verified
sl@0
  2490
//!@SYMTestPriority		High
sl@0
  2491
//!@SYMTestExpectedResults
sl@0
  2492
//!                AMR-NB playback as PocCallDown
sl@0
  2493
//!@SYMTestType			CIT
sl@0
  2494
sl@0
  2495
	START_TEST_BLOCK	50	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  2496
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  2497
		COMMAND		devsound1		NewL
sl@0
  2498
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0036-0001-InitializeL_command02
sl@0
  2499
		OUTSTANDING
sl@0
  2500
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0036-0001-SetPrioritySettings_command03
sl@0
  2501
		COMMAND		devsound1		Capabilities
sl@0
  2502
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0036-0001-SetConfigL_command05
sl@0
  2503
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0036-0001-ReplaceFile_command06
sl@0
  2504
		COMMAND		devsound1		RecordInitL
sl@0
  2505
		ASYNC_DELAY  10000000 
sl@0
  2506
		COMMAND		devsound1		Stop
sl@0
  2507
		DELAY  5000000 
sl@0
  2508
		COMMAND		devsound1		CloseFile
sl@0
  2509
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0036-0001-InitializeL_command10
sl@0
  2510
		OUTSTANDING
sl@0
  2511
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0036-0001-SetPrioritySettings_command11
sl@0
  2512
		COMMAND		devsound1		Capabilities
sl@0
  2513
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0036-0001-SetConfigL_command13
sl@0
  2514
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0036-0001-OpenFile_command14
sl@0
  2515
		COMMAND		devsound1		PlayInitL
sl@0
  2516
		OUTSTANDING
sl@0
  2517
		COMMAND		devsound1		CloseFile
sl@0
  2518
		COMMAND		devsound1		~
sl@0
  2519
	END_TEST_BLOCK
sl@0
  2520
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0036
sl@0
  2521
sl@0
  2522
sl@0
  2523
sl@0
  2524
sl@0
  2525
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0037
sl@0
  2526
sl@0
  2527
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0037
sl@0
  2528
//!@SYMAPI
sl@0
  2529
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
sl@0
  2530
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
sl@0
  2531
//!                CMMFDevSound::Capabilities()
sl@0
  2532
//!                CMMFDevSound::SetConfigL(TMMFCapabilities {ref})
sl@0
  2533
//!                CMMFDevSound::PlayInitL()
sl@0
  2534
//!                CMMFDevSound::RecordInitL()
sl@0
  2535
//!                CMMFDevSound::Stop()
sl@0
  2536
//!@SYMAuthor			etorres
sl@0
  2537
//!@SYMCreationDate		8/11/2008 
sl@0
  2538
//!@SYMTestCaseDesc		AMR-NB recording as PocCallDown
sl@0
  2539
//!@SYMTestActions
sl@0
  2540
//!                1. Create Devsound instance devsound1
sl@0
  2541
//!                2. Create Devsound instance devsound2
sl@0
  2542
//!                3. devsound1 Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = AMR)
sl@0
  2543
//!                4. devsound1 Set Priority (Priority = {Priority,PriorityPocCallDown}; Preference = {PriorityPreference,PriorityPreferencePocCallDown} ;PriorityState=EMMFStatePlaying)
sl@0
  2544
//!                5. devsound1 Capabilities 
sl@0
  2545
//!                6. devsound1 Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  2546
//!                7. devsound2 Initialize Devsound ( Mode = EMMFStateRecording; FourCC = AMR)
sl@0
  2547
//!                8. devsound2 Set Priority (Priority = {Priority,PriorityPocCallUp}; Preference = {PriorityPreference,PriorityPreferencePocCallUp};PriorityState=EMMFStateRecording)
sl@0
  2548
//!                9. devsound2 Capabilities 
sl@0
  2549
//!                10. devsound2 Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  2550
//!                11. devsound1 OpenFile(Filename= {drive,mmc}\multimedia\mmf\devsound\AMR-NB\AMRNB_8k_12.2kbps_mono_speech.amr)
sl@0
  2551
//!                12. devsound2 Replace File(Filename= {drive,mmc}\multimedia\mmf\devsound\Recording\PoCCallPlayRepeated.amr)
sl@0
  2552
//!                13. devsound1 StartPlay 10S
sl@0
  2553
//!                14. devsound1 Stop 5S
sl@0
  2554
//!                15. devsound2 StartRecord 10S
sl@0
  2555
//!                16. devsound2 Stop 1S
sl@0
  2556
//!                17. devsound2 Resume Recording 10S
sl@0
  2557
//!                18. devsound2 Stop 5S
sl@0
  2558
//!                19. devsound1 FileStartPosition
sl@0
  2559
//!                20. devsound1 StartPlay 10S
sl@0
  2560
//!                21. devsound1 Stop 5s
sl@0
  2561
//!                22. devsound1 closefile
sl@0
  2562
//!                23. devsound2 closefile
sl@0
  2563
//!                24. devsound2 Initialize Devsound ( Mode = EMMFStatePlaying; FourCC = AMR)
sl@0
  2564
//!                25. devsound2 Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying)
sl@0
  2565
//!                26. devsound2 Capabilities 
sl@0
  2566
//!                27. devsound2 Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
  2567
//!                28. devsound2 OpenFile(Filename= {drive,mmc}\multimedia\mmf\devsound\Recording\PoCCallPlayRepeated.amr)
sl@0
  2568
//!                29. devsound2 Start Play EOF
sl@0
  2569
//!                30. devsound2 CloseFile
sl@0
  2570
//!                31. devsound1 Destroy Devsound instance
sl@0
  2571
//!                32. devsound2 Destroy Devsound instance
sl@0
  2572
//!@SYMTestStatus		Verified
sl@0
  2573
//!@SYMTestPriority		High
sl@0
  2574
//!@SYMTestExpectedResults
sl@0
  2575
//!                AMR-NB recording as PocCallDown
sl@0
  2576
//!@SYMTestType			CIT
sl@0
  2577
sl@0
  2578
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  2579
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  2580
		CREATE_OBJECT	CMMFDevSound		devsound2
sl@0
  2581
		COMMAND		devsound1		NewL
sl@0
  2582
		COMMAND		devsound2		NewL
sl@0
  2583
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-InitializeL_command03
sl@0
  2584
		OUTSTANDING
sl@0
  2585
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-SetPrioritySettings_command04
sl@0
  2586
		COMMAND		devsound1		Capabilities
sl@0
  2587
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-SetConfigL_command06
sl@0
  2588
		COMMAND		devsound2		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-InitializeL_command07
sl@0
  2589
        OUTSTANDING
sl@0
  2590
		COMMAND		devsound2		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-SetPrioritySettings_command08
sl@0
  2591
		COMMAND		devsound2		Capabilities
sl@0
  2592
		COMMAND		devsound2		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-SetConfigL_command10
sl@0
  2593
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-OpenFile_command11
sl@0
  2594
		COMMAND		devsound2		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-ReplaceFile_command12
sl@0
  2595
		COMMAND		devsound1		PlayInitL
sl@0
  2596
		ASYNC_DELAY  10000000 
sl@0
  2597
		COMMAND		devsound1		Stop
sl@0
  2598
		DELAY  5000000 
sl@0
  2599
		COMMAND		devsound2		RecordInitL
sl@0
  2600
		ASYNC_DELAY  10000000 
sl@0
  2601
		COMMAND		devsound2		Stop
sl@0
  2602
		DELAY  1000000 
sl@0
  2603
		COMMAND		devsound2		RecordInitL
sl@0
  2604
		ASYNC_DELAY  10000000 
sl@0
  2605
		COMMAND		devsound2		Stop
sl@0
  2606
		DELAY  5000000 
sl@0
  2607
		COMMAND		devsound1		FileStartPosition
sl@0
  2608
		COMMAND		devsound1		PlayInitL
sl@0
  2609
		ASYNC_DELAY  10000000 
sl@0
  2610
		COMMAND		devsound1		Stop
sl@0
  2611
		DELAY  5000000 
sl@0
  2612
		COMMAND		devsound1		CloseFile
sl@0
  2613
		COMMAND		devsound2		CloseFile
sl@0
  2614
		COMMAND		devsound2		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-InitializeL_command24
sl@0
  2615
        OUTSTANDING
sl@0
  2616
		COMMAND		devsound2		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-SetPrioritySettings_command25
sl@0
  2617
		COMMAND		devsound2		Capabilities
sl@0
  2618
		COMMAND		devsound2		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-SetConfigL_command27
sl@0
  2619
		COMMAND		devsound2		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0037-0001-OpenFile_command28
sl@0
  2620
		COMMAND		devsound2		PlayInitL
sl@0
  2621
		OUTSTANDING
sl@0
  2622
		COMMAND		devsound2		CloseFile
sl@0
  2623
		COMMAND		devsound1		~
sl@0
  2624
		COMMAND		devsound2		~
sl@0
  2625
	END_TEST_BLOCK
sl@0
  2626
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0037
sl@0
  2627
sl@0
  2628
sl@0
  2629
sl@0
  2630
sl@0
  2631
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0038
sl@0
  2632
sl@0
  2633
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0038
sl@0
  2634
//!@SYMAPI
sl@0
  2635
//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
sl@0
  2636
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
sl@0
  2637
//!                CMMFDevSound::Capabilities()
sl@0
  2638
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
sl@0
  2639
//!                CMMFDevSound::PlayInitL()
sl@0
  2640
//!                CMMFDevSound::RecordInitL()
sl@0
  2641
//!@SYMAuthor			jguillermo
sl@0
  2642
//!@SYMCreationDate		9/8/2008 
sl@0
  2643
//!@SYMTestCaseDesc		PCM stereo recording with gain control
sl@0
  2644
//!@SYMTestActions
sl@0
  2645
//!                1. Create DevSound instance 
sl@0
  2646
//!                2. Initialize DevSound ( Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
sl@0
  2647
//!                3. Set Priority ( Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState=EMMFStateRecording)
sl@0
  2648
//!                4. Capabilities
sl@0
  2649
//!                5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate8000Hz)
sl@0
  2650
//!                6. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\GainRecStereo.pcm)
sl@0
  2651
//!                7. Record 10 seconds
sl@0
  2652
//!                8. Set Gain and delay 10 seconds (Gain = 0)
sl@0
  2653
//!                9. Set Gain and delay 10 seconds (Gain = 1 )
sl@0
  2654
//!                10. Stop 5 seconds
sl@0
  2655
//!                11. Close file
sl@0
  2656
//!                12. Initialize DevSound ( Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
sl@0
  2657
//!                13. Set Priority ( Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState=EMMFStatePlaying)
sl@0
  2658
//!                14. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate8000Hz)
sl@0
  2659
//!                15. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\GainRecStereo.pcm)
sl@0
  2660
//!                16. Play EOF
sl@0
  2661
//!                17. Close file
sl@0
  2662
//!                18. Delete DevSound instance
sl@0
  2663
//!@SYMTestStatus		Verified
sl@0
  2664
//!@SYMTestPriority		High
sl@0
  2665
//!@SYMTestExpectedResults
sl@0
  2666
//!                PCM stereo recording with gain control
sl@0
  2667
//!@SYMTestType			CIT
sl@0
  2668
sl@0
  2669
	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-recording.ini
sl@0
  2670
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
  2671
		COMMAND		devsound1		NewL
sl@0
  2672
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0038-0001-InitializeL_command02
sl@0
  2673
		OUTSTANDING
sl@0
  2674
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0038-0001-SetPrioritySettings_command03
sl@0
  2675
		COMMAND		devsound1		Capabilities
sl@0
  2676
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0038-0001-SetConfigL_command05
sl@0
  2677
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Recording-0038-0001-ReplaceFile_command06
sl@0
  2678
		COMMAND		devsound1		RecordInitL
sl@0
  2679
		ASYNC_DELAY  10000000 
sl@0
  2680
		COMMAND		devsound1		SetGain			MULTIMEDIA-MMF-DevSound-Recording-0038-0001-SetGain_command08
sl@0
  2681
		ASYNC_DELAY  10000000 
sl@0
  2682
		COMMAND		devsound1		SetGain			MULTIMEDIA-MMF-DevSound-Recording-0038-0001-SetGain_command09
sl@0
  2683
		ASYNC_DELAY  10000000 
sl@0
  2684
		COMMAND		devsound1		Stop
sl@0
  2685
		DELAY  5000000 
sl@0
  2686
		COMMAND		devsound1		CloseFile
sl@0
  2687
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Recording-0038-0001-InitializeL_command12
sl@0
  2688
		OUTSTANDING
sl@0
  2689
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Recording-0038-0001-SetPrioritySettings_command13
sl@0
  2690
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Recording-0038-0001-SetConfigL_command14
sl@0
  2691
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Recording-0038-0001-OpenFile_command15
sl@0
  2692
		COMMAND		devsound1		PlayInitL
sl@0
  2693
		OUTSTANDING
sl@0
  2694
		COMMAND		devsound1		CloseFile
sl@0
  2695
		COMMAND		devsound1		~
sl@0
  2696
	END_TEST_BLOCK
sl@0
  2697
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-RECORDING-0038