devsound/a3fintegrationtest/scripts/tsi_a3f_devsound_pcm_play.script
branchRCL_3
changeset 50 948c7f65f6d4
parent 49 735348f59235
child 65 af86cc8a4692
equal deleted inserted replaced
49:735348f59235 50:948c7f65f6d4
   118 //! 							being executed as required throughout the test.
   118 //! 							being executed as required throughout the test.
   119 
   119 
   120 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0007 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
   120 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0007 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
   121 TEST_COMPLETE
   121 TEST_COMPLETE
   122 
   122 
       
   123 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0008
       
   124 //! @SYMTestCaseDesc			Positive: PCM 22.050k stereo playback (+ve)
       
   125 //! @SYMTestPriority			High
       
   126 //! @SYMTestType				CIT
       
   127 //! @SYMREQ 					7918
       
   128 //! @SYMPREQ					1540
       
   129 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data in stereo mode with sampling rate of 22.050 KHz.
       
   130 //! 							2.	Start playing and read recorded data from file.
       
   131 //! 							3.	Stop playback once EOF is reached.
       
   132 //! @SYMTestExpectedResults 	Devsound to successfully play PCM16 raw audio data in stereo mode with sampling rate of 22.050 KHz with all the DevSound callback functions
       
   133 //! 							being executed as required throughout the test.
       
   134 
       
   135 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0008 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   136 TEST_COMPLETE
       
   137 
       
   138 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0009
       
   139 //! @SYMTestCaseDesc			Positive: PCM 32k mono playback (+ve)
       
   140 //! @SYMTestPriority			High
       
   141 //! @SYMTestType				CIT
       
   142 //! @SYMREQ 					7918
       
   143 //! @SYMPREQ					1540
       
   144 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 32 KHz.
       
   145 //! 							2.	Start playing and read recorded data from file.
       
   146 //! 							3.	Stop playback once EOF is reached.
       
   147 //! @SYMTestExpectedResults 	Devsound to successfully play PCM16 raw audio data in mono mode with sampling rate of 32 KHz with all the DevSound callback functions
       
   148 //! 							being executed as required throughout the test.
       
   149 
       
   150 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0009 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   151 TEST_COMPLETE
       
   152 
       
   153 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0010
       
   154 //! @SYMTestCaseDesc			Positive: PCM 32k stereo playback (+ve)
       
   155 //! @SYMTestPriority			High
       
   156 //! @SYMTestType				CIT
       
   157 //! @SYMREQ 					7918
       
   158 //! @SYMPREQ					1540
       
   159 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data in stereo mode with sampling rate of 32 KHz.
       
   160 //! 							2.	Start playing and read recorded data from file.
       
   161 //! 							3.	Stop playback once EOF is reached.
       
   162 //! @SYMTestExpectedResults 	Devsound to successfully play PCM16 raw audio data in stereo mode with sampling rate of 32 KHz with all the DevSound callback functions
       
   163 //! 							being executed as required throughout the test.
       
   164 
       
   165 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0010 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   166 TEST_COMPLETE
       
   167 
       
   168 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0011
       
   169 //! @SYMTestCaseDesc			Positive: PCM 44.100k mono playback (+ve)
       
   170 //! @SYMTestPriority			High
       
   171 //! @SYMTestType				CIT
       
   172 //! @SYMREQ 					7918
       
   173 //! @SYMPREQ					1540
       
   174 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 44.100 KHz.
       
   175 //! 							2.	Start playing and read recorded data from file.
       
   176 //! 							3.	Stop playback once EOF is reached.
       
   177 //! @SYMTestExpectedResults 	Devsound to successfully play PCM16 raw audio data in mono mode with sampling rate of 44.100 KHz with all the DevSound callback functions
       
   178 //! 							being executed as required throughout the test.
       
   179 
       
   180 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0011 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   181 TEST_COMPLETE
       
   182 
       
   183 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0012
       
   184 //! @SYMTestCaseDesc			Positive: PCM 44.100k stereo playback (+ve)
       
   185 //! @SYMTestPriority			High
       
   186 //! @SYMTestType				CIT
       
   187 //! @SYMREQ 					7918
       
   188 //! @SYMPREQ					1540
       
   189 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data in stereo mode with sampling rate of 44.100 KHz.
       
   190 //! 							2.	Start playing and read recorded data from file.
       
   191 //! 							3.	Stop playback once EOF is reached.
       
   192 //! @SYMTestExpectedResults 	Devsound to successfully play PCM16 raw audio data in stereo mode with sampling rate of 44.100 KHz with all the DevSound callback functions
       
   193 //! 							being executed as required throughout the test.
       
   194 
       
   195 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0012 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   196 TEST_COMPLETE
       
   197 
       
   198 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0013
       
   199 //! @SYMTestCaseDesc			Positive: PCM 48k mono playback (+ve)
       
   200 //! @SYMTestPriority			High
       
   201 //! @SYMTestType				CIT
       
   202 //! @SYMREQ 					7918
       
   203 //! @SYMPREQ					1540
       
   204 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 48 KHz.
       
   205 //! 							2.	Start playing and read recorded data from file.
       
   206 //! 							3.	Stop playback once EOF is reached.
       
   207 //! @SYMTestExpectedResults 	Devsound to successfully play PCM16 raw audio data in mono mode with sampling rate of 48 KHz with all the DevSound callback functions
       
   208 //! 							being executed as required throughout the test.
       
   209 
       
   210 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0013 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   211 TEST_COMPLETE
       
   212 
       
   213 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0014
       
   214 //! @SYMTestCaseDesc			Positive: PCM 48k stereo playback (+ve)
       
   215 //! @SYMTestPriority			High
       
   216 //! @SYMTestType				CIT
       
   217 //! @SYMREQ 					7918
       
   218 //! @SYMPREQ					1540
       
   219 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data in stereo mode with sampling rate of 48 KHz.
       
   220 //! 							2.	Start playing and read recorded data from file.
       
   221 //! 							3.	Stop playback once EOF is reached.
       
   222 //! @SYMTestExpectedResults 	Devsound to successfully play PCM16 raw audio data in stereo mode with sampling rate of 48 KHz with all the DevSound callback functions
       
   223 //! 							being executed as required throughout the test.
       
   224 
       
   225 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0014 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   226 TEST_COMPLETE
       
   227 
       
   228 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0015
       
   229 //! @SYMTestCaseDesc			Negative: Play empty PCM raw audio data file (-ve)
       
   230 //! @SYMTestPriority			High
       
   231 //! @SYMTestType				CIT
       
   232 //! @SYMREQ 					7927
       
   233 //! @SYMPREQ					1540
       
   234 //! @SYMTestStatus
       
   235 //! @SYMTestActions
       
   236 //! @SYMTestExpectedResults
       
   237 
       
   238 RUN_TEST_STEP 600000  TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0015 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   239 TEST_COMPLETE
       
   240 
       
   241 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0016
       
   242 //! @SYMTestCaseDesc			Positive: PCM 48k stereo playback of sine audio data (+ve)
       
   243 //! @SYMTestPriority			High
       
   244 //! @SYMTestType				CIT
       
   245 //! @SYMREQ 					7918
       
   246 //! @SYMPREQ					1540
       
   247 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw sine audio data in stereo mode with sampling rate of 48 KHz.
       
   248 //! 							2.	Start playing and read recorded data from file.
       
   249 //! 							3.	Stop playback once EOF is reached.
       
   250 //! @SYMTestExpectedResults 	Devsound to successfully play PCM16 raw sine audio data in stereo mode with sampling rate of 48 KHz with all the DevSound callback functions
       
   251 //! 							being executed as required throughout the test.
       
   252 
       
   253 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0016 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   254 TEST_COMPLETE
       
   255 
       
   256 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0017
       
   257 //! @SYMTestCaseDesc			Positive: Play a 8 bitmupcm raw file (+ve)
       
   258 //! @SYMTestPriority			High
       
   259 //! @SYMTestType				CIT
       
   260 //! @SYMREQ
       
   261 //! @SYMPREQ					1540
       
   262 //! @SYMTestStatus
       
   263 //! @SYMTestActions				1. Configure DevSound to play 8bit MuLaw audio data in mono mode with sampling rate of 8 KHz.
       
   264 //!								2. Start playing and read recorded data from file.
       
   265 //!								3. Stop playback once EOF is reached.
       
   266 //! @SYMTestExpectedResults		Devsound to successfully play 8bit MuLaw audio data in mono mode with sampling rate of 8 KHz with all the DevSound callback functions 
       
   267 //!								being executed as required throughout the test.
       
   268 
       
   269 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0017 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   270 TEST_COMPLETE
       
   271 
       
   272 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0018
       
   273 //! @SYMTestCaseDesc			Negative: PCM mono playback with invalid sample rate (-ve)
       
   274 //! @SYMTestPriority			High
       
   275 //! @SYMTestType				CIT
       
   276 //! @SYMREQ 					7927
       
   277 //! @SYMPREQ					1540
       
   278 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with an invalid sample rate.
       
   279 //!								2. Verify the valid error code is received
       
   280 //! @SYMTestExpectedResults		CMMFDevSound::SetConfigL should return with KErrArgument
       
   281 
       
   282 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0018 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   283 TEST_COMPLETE
       
   284 
       
   285 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0019
       
   286 //! @SYMTestCaseDesc			Negative: PCM 8k playback with invalid channel mode (-ve)
       
   287 //! @SYMTestPriority			High
       
   288 //! @SYMTestType				CIT
       
   289 //! @SYMREQ 					7927
       
   290 //! @SYMPREQ					1540
       
   291 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in an invalid mode with sampling rate of 8 kHz.
       
   292 //!								2. Verify the valid error code is received
       
   293 //! @SYMTestExpectedResults		CMMFDevSound::SetConfigL should return with KErrArgument
       
   294 
       
   295 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0019 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   296 TEST_COMPLETE
       
   297 
       
   298 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0020
       
   299 //! @SYMTestCaseDesc			Negative: PCM 8k mono playback with invalid FourCC (-ve)
       
   300 //! @SYMTestPriority			High
       
   301 //! @SYMTestType				CIT
       
   302 //! @SYMREQ 					7927
       
   303 //! @SYMPREQ					1540
       
   304 //! @SYMTestActions				1. Initialise DevSound with an invalid FourCC code
       
   305 //!								2. Verify the valid error code is received
       
   306 //! @SYMTestExpectedResults		CMMFDevSound::InitializeL should return with KErrNotSupported
       
   307 
       
   308 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0020 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   309 TEST_COMPLETE
       
   310 
       
   311 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0021
       
   312 //! @SYMTestCaseDesc			Negative: PCM 8k mono playback of corrupt file (-ve)
       
   313 //! @SYMTestPriority			High
       
   314 //! @SYMTestType				CIT
       
   315 //! @SYMREQ 					7927
       
   316 //! @SYMPREQ					1540
       
   317 //! @SYMTestStatus
       
   318 //! @SYMTestActions				1. Configure DevSound to play PCM8 raw audio data in mono mode with sampling rate of 8 kHz.
       
   319 //!								2. Start playing and read recorded data from file.
       
   320 //!								3. Stop playback once EOF is reached.
       
   321 //! @SYMTestExpectedResults		Devsound to successfully play PCM8 audio data in mono mode with sampling rate of 8 KHz with all the DevSound callback functions 
       
   322 //!								being executed as required throughout the test.
       
   323 
       
   324 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0021 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   325 TEST_COMPLETE
       
   326 
       
   327 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0022
       
   328 //! @SYMTestCaseDesc			Positive: Play to the EOF a specified number of times (+ve)
       
   329 //! @SYMTestPriority			High
       
   330 //! @SYMTestType				CIT
       
   331 //! @SYMREQ 					7918
       
   332 //! @SYMPREQ					1540
       
   333 //! @SYMTestStatus
       
   334 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
       
   335 //!								2. Start playing and read recorded data from file.
       
   336 //!								3. Stop playback once EOF is reached.
       
   337 //!								4. Initialize again
       
   338 //!								5. Check that time played is 0
       
   339 //!								6. Restart playback again
       
   340 //!								7. Stop test when EOF is reached again
       
   341 //! @SYMTestExpectedResults		Devsound to successfully play PCM16 audio data in mono mode with sampling rate of 8 KHz twice with all the DevSound callback 
       
   342 //!								functions being executed as required throughout the test.
       
   343 
       
   344 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0022 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   345 TEST_COMPLETE
       
   346 
       
   347 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0023
       
   348 //! @SYMTestCaseDesc			Positive: PCM playback with default parameters. Default FourCC input datatype and default config values (+ve)
       
   349 //! @SYMTestPriority			High
       
   350 //! @SYMTestType				CIT
       
   351 //! @SYMREQ 					7925
       
   352 //! @SYMPREQ					1540
       
   353 //! @SYMTestStatus
       
   354 //! @SYMTestActions				1. Initialise DevSound for playback without specifying format nor configuration parameters
       
   355 //!								2. Start playing and read recorded data from a PCM16/8 kHz file.
       
   356 //!								3. Stop playback once EOF is reached.
       
   357 //! @SYMTestExpectedResults		Devsound to successfully play PCM16 audio data in mono mode with sampling rate of 8 KHz with all the DevSound callback functions 
       
   358 //!								being executed as required throughout the test.
       
   359 
       
   360 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0023 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   361 TEST_COMPLETE
       
   362 
       
   363 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0024
       
   364 //! @SYMTestCaseDesc			Positive: Play->Stop->Play->Stop->Play EOF. Stop is called a specified number of times through ini file.
       
   365 //! 							Last playback continues until the EOF (+ve)
       
   366 //! @SYMTestPriority			High
       
   367 //! @SYMTestType				CIT
       
   368 //! @SYMREQ 					7919
       
   369 //! @SYMPREQ					1540
       
   370 //! @SYMTestStatus
       
   371 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
       
   372 //!								2. Start playing and read recorded data from file.
       
   373 //!								3. Stop playback after 10 seconds.
       
   374 //!								4. Restart playback
       
   375 //!								5. Stop playback after 10 seconds.
       
   376 //!								6. Restart playback
       
   377 //!								7. Stop playback once EOF is reached.
       
   378 //! @SYMTestExpectedResults		Devsound to successfully play-stop-play-stop-play PCM16 audio data in mono mode with sampling rate of 8 KHz with all the DevSound callback
       
   379 //!								functions being executed as required throughout the test.
       
   380 
       
   381 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0024 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   382 TEST_COMPLETE
       
   383 
       
   384 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0025
       
   385 //! @SYMTestCaseDesc			Positive: Read the current device configuration during playback (+ve)
       
   386 //! @SYMTestPriority			High
       
   387 //! @SYMTestType				CIT
       
   388 //! @SYMREQ
       
   389 //! @SYMPREQ					1540
       
   390 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
       
   391 //!								2. Start playing and read recorded data from file.
       
   392 //!								3. In the BuffertoBeFilled callback check the current device configuration matches the one set at the beginning of the test.
       
   393 //!								4. Stop the test
       
   394 //! @SYMTestExpectedResults		Values queried during playback should match the ones set before the playback started
       
   395 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0025 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   396 TEST_COMPLETE
       
   397 
       
   398 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0026
       
   399 //! @SYMTestCaseDesc			Positive: Set volume before play, start play, stop play and get volume (+ve)
       
   400 //! @SYMTestPriority			High
       
   401 //! @SYMTestType				CIT
       
   402 //! @SYMREQ
       
   403 //! @SYMPREQ					1540
       
   404 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
       
   405 //!								2. Set volume to a value specified in the ini file
       
   406 //!								3. Start playing and read recorded data from file.
       
   407 //!								4. Stop playback after 10 seconds and get the volume from DevSound
       
   408 //!								5. Check the values match
       
   409 //! @SYMTestExpectedResults		The Volume after the playback has stopped should match the volume set before playback 
       
   410 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0026 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   411 TEST_COMPLETE
       
   412 
       
   413 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0027
       
   414 //! @SYMTestCaseDesc			Positive: Empty buffers when playback paused (+ve)
       
   415 //! @SYMTestPriority			High
       
   416 //! @SYMTestType				CIT
       
   417 //! @SYMREQ 					7926
       
   418 //! @SYMPREQ					1540
       
   419 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
       
   420 //!								2. Start playing and read recorded data from file.
       
   421 //!								3. Pause playback after 10 seconds
       
   422 //!								4. Call EmptyBuffers while in paused state
       
   423 //! @SYMTestExpectedResults		EmptyBuffers in paused state should return with KErrNone
       
   424 
       
   425 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0027 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   426 TEST_COMPLETE
       
   427 
       
   428 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0028
       
   429 //! @SYMTestCaseDesc			Negative: Initialize DevSound in Record mode and play (-ve)
       
   430 //! @SYMTestPriority			High
       
   431 //! @SYMTestType				CIT
       
   432 //! @SYMREQ
       
   433 //! @SYMPREQ					1540
       
   434 //! @SYMTestActions				1. Initialise DevSound in Recording state
       
   435 //!								2. Call PlayInitL
       
   436 //!								3. Error code should be received
       
   437 //! @SYMTestExpectedResults		PlayInitL must return with KErrNotReady
       
   438 
       
   439 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0028 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   440 TEST_COMPLETE
       
   441 
       
   442 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0029
       
   443 //! @SYMTestCaseDesc			Negative: Empty buffers during playback (-ve)
       
   444 //! @SYMTestPriority			High
       
   445 //! @SYMTestType				CIT
       
   446 //! @SYMREQ
       
   447 //! @SYMPREQ					1540
       
   448 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
       
   449 //!								2. Start playing and read recorded data from file.
       
   450 //!								3. Call EmptyBuffers after the first BTBF state
       
   451 //! @SYMTestExpectedResults		EmptyBuffers while playing should return with KErrNone
       
   452 
       
   453 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0029 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   454 TEST_COMPLETE
       
   455 
       
   456 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0030
       
   457 //! @SYMTestCaseDesc			Negative: Call InitializeL while playback is in progress (-ve)
       
   458 //! @SYMTestPriority			High
       
   459 //! @SYMTestType				CIT
       
   460 //! @SYMREQ 					7927
       
   461 //! @SYMPREQ					1540
       
   462 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
       
   463 //!								2. Start playing and read recorded data from file.
       
   464 //!								3. After 10 seconds have passed, and playback is still in progress, initialise DevSound again
       
   465 //!								4. Error code should be received
       
   466 //! @SYMTestExpectedResults		Second call to InitializeL must return with KErrNotReady
       
   467 
       
   468 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0030 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   469 TEST_COMPLETE
       
   470 
       
   471 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0031
       
   472 //! @SYMTestCaseDesc			Negative: Initialize DevSound HwDeviceUID (-ve)
       
   473 //! @SYMTestPriority			High
       
   474 //! @SYMTestType				CIT
       
   475 //! @SYMREQ
       
   476 //! @SYMPREQ					1540
       
   477 //! @SYMTestActions				1. Initialise DevSound using a HwDeviceUID instead of a FourCC code
       
   478 //!								2. Error code should be received
       
   479 //! @SYMTestExpectedResults		InitializeL must return with KErrNotSupported
       
   480 
       
   481 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0031 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   482 TEST_COMPLETE
       
   483 
       
   484 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0032
       
   485 //! @SYMTestCaseDesc			Positive: Set Play balance during playback and get it to confirm balance set correctly (+ve)
       
   486 //! @SYMTestPriority			High
       
   487 //! @SYMTestType				CIT
       
   488 //! @SYMREQ
       
   489 //! @SYMPREQ					1540
       
   490 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
       
   491 //!								2. Start playing and read recorded data from file.
       
   492 //!								3. In the BuffertoBeFilled callback set the playback balance
       
   493 //!								4. Get the balance and check that it's the same as the one that was set
       
   494 //! @SYMTestExpectedResults		SetPlayBalanceL returns with KErrNone
       
   495 //!								GetPlayBalanceL returns with KErrNone and the left and right balance values match the ones previously set
       
   496 
       
   497 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0032 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   498 TEST_COMPLETE
       
   499 
       
   500 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0033
       
   501 //! @SYMTestCaseDesc			Positive: Get the number of samples played after stopping the playback (+ve)
       
   502 //! @SYMTestPriority			High
       
   503 //! @SYMTestType				CIT
       
   504 //! @SYMREQ
       
   505 //! @SYMPREQ					1540
       
   506 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
       
   507 //!								2. Start playing and read recorded data from file.
       
   508 //!								3. Stop playback after 10 seconds and get the number of samples played
       
   509 //!								4. Samples Played should be more than 0
       
   510 //! @SYMTestExpectedResults		SamplesPlayed should return a value greater than 0
       
   511 
       
   512 RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0033 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   513 TEST_COMPLETE
       
   514 
       
   515 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0034
       
   516 //! @SYMTestCaseDesc			Negative: Call second InitializeL before the first InitializeL has completed (-ve)
       
   517 //! @SYMTestPriority			High
       
   518 //! @SYMTestType				CIT
       
   519 //! @SYMREQ 					7927
       
   520 //! @SYMPREQ					1540
       
   521 //! @SYMTestActions				1. Initialise DevSound for playback
       
   522 //!								2. Initialise DevSound again without waiting for the InitializeComplete callback
       
   523 //! @SYMTestExpectedResults		The first initialisation should complete correctly, the second one should fail with KErrNotReady
       
   524 
       
   525 RUN_TEST_STEP 600000  TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0034 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   526 TEST_COMPLETE
       
   527 
       
   528 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0035
       
   529 //! @SYMTestCaseDesc			Negative: Call second PlayInitL before the first PlayInitL has completed (-ve)
       
   530 //! @SYMTestPriority			High
       
   531 //! @SYMTestType				CIT
       
   532 //! @SYMREQ 					7927
       
   533 //! @SYMPREQ					1540
       
   534 //! @SYMTestActions				1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
       
   535 //!								2. Call PlayInitL twice.
       
   536 //!								3. In the BufferToBeFilled callback check the error codes of both PlayInitL calls
       
   537 //! @SYMTestExpectedResults		The first PlayInitL should complete correctly, the second one should fail with KErrNotReady
       
   538 
       
   539 RUN_TEST_STEP 600000  TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0035 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   540 TEST_COMPLETE
       
   541 
       
   542 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0036
       
   543 //! @SYMTestCaseDesc			Negative: Set the volume beyond the maximum and minimum supported values and get the set volume to check if volume is cropped (-ve)
       
   544 //! @SYMTestPriority			High
       
   545 //! @SYMTestType				CIT
       
   546 //! @SYMREQ 					7927
       
   547 //! @SYMPREQ					1540
       
   548 //! @SYMTestActions				1. Initialise DevSound for playback
       
   549 //!								2. Get the Max Volume supported
       
   550 //!								3. Set the volume higher than the Max Volume
       
   551 //!								4. Verify the volume was cropped to the Max Volume
       
   552 //!								5. Set the volume lower than zero
       
   553 //!								6. Verify the volume was cropped to zero
       
   554 //! @SYMTestExpectedResults		Setting the volume to a value beyond the maximum supported volume will crop it to the maximum supported volume.
       
   555 //!								Setting the volume to a value below the minimum supported volume will crop ot to the minimum supported volume
       
   556 
       
   557 RUN_TEST_STEP 600000  TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0036 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   558 TEST_COMPLETE
       
   559 
       
   560 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0037
       
   561 //! @SYMTestCaseDesc			Negative: Initialize the DevSound in TMMFState EMMFStateConverting (-ve)
       
   562 //! @SYMTestPriority			High
       
   563 //! @SYMTestType				CIT
       
   564 //! @SYMREQ 					7927
       
   565 //! @SYMPREQ					1540
       
   566 //! @SYMTestActions				1. Initialise DevSound in converting state
       
   567 //! @SYMTestExpectedResults		InitializeL must return with KErrNotSupported. DevSound is not initialised
       
   568 
       
   569 RUN_TEST_STEP 600000  TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0037 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   570 TEST_COMPLETE
       
   571 
       
   572 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0038
       
   573 //! @SYMTestCaseDesc			Positive: Call CMMFDevSound::CancelInitialize before the InitializeComplete callback. (+ve)
       
   574 //! 							
       
   575 //! @SYMTestPriority			High
       
   576 //! @SYMTestType				CIT
       
   577 //! @SYMREQ 					????
       
   578 //! @SYMPREQ					1540
       
   579 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data.
       
   580 //! 							2.	Initialize DevSound via CMMFDevSound::InitializeL in play mode using TMMFState::EMMFStatePlaying.
       
   581 //! 							3.	Call CMMFDevSound::CancelInitialize before the InitializeComplete callback is received
       
   582 //! 							4.	Wait 10 seconds to ensure the InitializeComplete callback is not received.
       
   583 //! 							5.	Call SetConfig to verify DevSound is not initialized.
       
   584 //!
       
   585 //! @SYMTestExpectedResults 	The CMMFDevSound::CancelInitialize call cancels the InitializeComplete callback. DevSound is not Initialized
       
   586 
       
   587 RUN_TEST_STEP 600000  TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0038 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   588 TEST_COMPLETE
       
   589 
       
   590 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0039
       
   591 //! @SYMTestCaseDesc			Negative: Call CMMFDevSound::CancelInitialize after the InitializeComplete callback. (-ve)
       
   592 //! 							
       
   593 //! @SYMTestPriority			High
       
   594 //! @SYMTestType				CIT
       
   595 //! @SYMREQ 					????
       
   596 //! @SYMPREQ					1540
       
   597 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data.
       
   598 //! 							2.	Initialize DevSound via CMMFDevSound::InitializeL in record mode using TMMFState::EMMFStateRecording.
       
   599 //! 							3.	Call CMMFDevSound::CancelInitialize after the InitializeComplete callback is received
       
   600 //!
       
   601 //! @SYMTestExpectedResults 	The CMMFDevSound::CancelInitialize call returns with KErrNotReady. DevSound is Initialized
       
   602 
       
   603 RUN_TEST_STEP 600000  TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0039 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   604 TEST_COMPLETE
       
   605 
       
   606 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0040
       
   607 //! @SYMTestCaseDesc			Negative: Call CMMFDevSound::EmptyBuffers after creating the DevSound object. (-ve)
       
   608 //! 							
       
   609 //! @SYMTestPriority			High
       
   610 //! @SYMTestType				CIT
       
   611 //! @SYMREQ 					????
       
   612 //! @SYMPREQ					1540
       
   613 //! @SYMTestActions 			1.	Create the DevSound object
       
   614 //! 							2.	Call CMMFDevSound::EmptyBuffers
       
   615 //!
       
   616 //! @SYMTestExpectedResults 	The CMMFDevSound::EmptyBuffers call returns with KErrNotReady.
       
   617 
       
   618 RUN_TEST_STEP 600000  TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0040
       
   619 TEST_COMPLETE
       
   620 
       
   621 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0041
       
   622 //! @SYMTestCaseDesc			Negative: Call CMMFDevSound::EmptyBuffers after the InitializeComplete callback. (-ve)
       
   623 //! 							
       
   624 //! @SYMTestPriority			High
       
   625 //! @SYMTestType				CIT
       
   626 //! @SYMREQ 					????
       
   627 //! @SYMPREQ					1540
       
   628 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data.
       
   629 //! 							2.	Initialize DevSound via CMMFDevSound::InitializeL in play mode using TMMFState::EMMFStatePlaying.
       
   630 //! 							3.	Call CMMFDevSound::EmptyBuffers after the InitializeComplete callback is received
       
   631 //!
       
   632 //! @SYMTestExpectedResults 	The CMMFDevSound::EmptyBuffers call returns with KErrNotReady.
       
   633 
       
   634 RUN_TEST_STEP 600000  TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0041 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   635 TEST_COMPLETE
       
   636 
       
   637 //! @SYMTestCaseID				MM-A3F-DEVSOUND-PLAY-PCM-I-0042
       
   638 //! @SYMTestCaseDesc			Negative: Call CMMFDevSound::EmptyBuffers before the InitializeComplete callback. (-ve)
       
   639 //! 							
       
   640 //! @SYMTestPriority			High
       
   641 //! @SYMTestType				CIT
       
   642 //! @SYMREQ 					????
       
   643 //! @SYMPREQ					1540
       
   644 //! @SYMTestActions 			1.	Configure DevSound to play PCM16 raw audio data.
       
   645 //! 							2.	Initialize DevSound via CMMFDevSound::InitializeL in play mode using TMMFState::EMMFStatePlaying.
       
   646 //! 							3.	Call CMMFDevSound::EmptyBuffers before the InitializeComplete callback is received
       
   647 //!
       
   648 //! @SYMTestExpectedResults 	The CMMFDevSound::EmptyBuffers call returns with KErrNotReady.
       
   649 
       
   650 RUN_TEST_STEP 600000  TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0042 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
       
   651 TEST_COMPLETE