First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // MM_A3F_DEVSOUND_CHRTZ_RAW_PLAY.script
16 // RUN_TEST_STEP <timeout>, <test suite>, <test step>, <configuration file.ini>
19 LOAD_SUITE char_a3f_devsound.dll
22 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0001
25 //!@SYMTestCaseDec: Play Audio Configure - Call SetConfigL(..) method to set Sampling Rate and Channel
26 //!@SYMTestPriority: Normal
27 //!@SYMTestType: Normal Usecase
29 //1. Create and Initialize a DevSound instance to play audio.
30 //1.1 Wait for InitializeComplete(KErrNone) callback response.
31 //2. Call SetConfigL(..) method to set Sampling Rate to 16kHz and iChannel to Stereo Mode.
32 //!@SYMTestExpectedResults:
33 //SetConfigL(..) method shall be executed without error message.
34 PRINT Play Audio Configure - Call SetConfigL(..) method to set Sampling Rate and Channel
35 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0001, c:\mm_a3f_devsound_play_raw.ini
38 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0002
41 //!@SYMTestCaseDec: Play Audio Configure - Call SetVolume(..) method during audio playing
42 //!@SYMTestPriority: Normal
43 //!@SYMTestType: Alternative Usecase
45 //1. Create a Devsound instance.
46 //2. Open the file to be played.
47 //3. Create a CPeriodic instance.
48 //4. Initialise a DevSound instance to play audio.
49 //4.1 Wait for InitializeComplete(KErrNone) callback response.
50 //5. Play an audio file by calling PlayInitL().
51 //6. Start CPeriodic to trigger timed events every 2 seconds.
52 //7. On timer event call SetVolume(..) method to set volume to valid values during playback.
53 //8. Call Volume() method to verify current device volume value during the playback.
54 //!@SYMTestExpectedResults:
55 //SetVolume(..) method shall be executed without error message.
56 //Value returned from Volume() method shall be equal to the value set by SetVolume(..).
57 PRINT Play Audio Configure - Call SetVolume(..) method during audio playing
58 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0002, c:\mm_a3f_devsound_play_raw.ini
61 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0003
64 //!@SYMTestCaseDec: Play Audio Configure - Call SetVolume(..) method to set volume
65 //!@SYMTestPriority: Normal
66 //!@SYMTestType: Normal Usecase
68 //1. Create and initialise a DevSound instance to play audio.
69 //1.1 Wait for InitializeComplete(KErrNone) callback response.
70 //2. Call SetVolume(..) method to set volume to a valid value.
71 //3. Call Volume() method to verify applied settings.
72 //!@SYMTestExpectedResults:
73 //SetVolume(..) method shall be executed without error message.
74 //Value returned by Volume() method shall be equal to the value set by SetVolume(..).
75 PRINT Play Audio Configure - Call SetVolume(..) method to set volume
76 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0003, c:\mm_a3f_devsound_play_raw.ini
80 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0004
83 //!@SYMTestCaseDec: Play tone configuration - Call SetVolume(..) method during paused playing tone
84 //!@SYMTestPriority: Normal
85 //!@SYMTestType: Alternative Usecase
87 //1. Create a Devsound instance.
88 //2. Open the file to be played.
89 //3. Create a CPeriodic instance.
90 //4. Initialise a DevSound instance to play audio files.
91 //4.1 Wait for InitializeComplete(KErrNone) callback response.
92 //5. Play audio.(For testing purposes, the audio file should last more than the first timer event)
93 //6. Start CPeriodic to trigger timed events every 2 seconds.
94 //7. On timer event pause DevSound client by calling Pause(), then call call SetVolume(..).
95 //8. Call Volume() method to verify current device volume value during the playback.
96 //!@SYMTestExpectedResults:
97 //SetVolume(..) method shall be executed without error message.
98 //Value returned from Volume() method shall be equal to the value set by SetVolume(..).
99 PRINT Play tone configuration - Call SetVolume(..) method during paused playing tone
100 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0004, c:\mm_a3f_devsound_play_raw.ini
103 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0005
106 //!@SYMTestCaseDec: Play Audio Configure - Call SetVolume(..) method to set volume and reinitialise for tones.
107 //!@SYMTestPriority: Normal
108 //!@SYMTestType: Normal Usecase
110 //1. Create a DevSound instance.
111 //2. Initialise the devsound instance to to play audio and call SetVoulme method.
112 //2.1 Wait for InitializeComplete(KErrNone) callback response.
113 //3. After InitializeComplete() callback is received, initialise DevSound to play tones.
114 //4. Call Volume method to confirm wheter or not the first value is kept. (When the next InitializeComplete() is in context).
115 //!@SYMTestExpectedResults:
116 //SetVolume(..) method shall be executed without error message.
117 //After reinitialisation of Devsound client, the calling of Volume() method shall return the value which was set by using SetVolume() method.
118 //(Volume settings shall not be modified despite DevSound client reinitialisation).
119 PRINT Play Audio Configure - Call SetVolume(..) method to set volume and reinitialise.
120 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0005, c:\mm_a3f_devsound_play_raw.ini
123 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0006
126 //!@SYMTestCaseDec: Play Audio Configure - Call SetVolumeRamp(..) method to set volume ramp
127 //!@SYMTestPriority: Normal
128 //!@SYMTestType: Normal Usecase
130 //1. Create a Devsound instance.
131 //2. Open the file to be played.
132 //3. Create a CPeriodic instance.
133 //4. Initialise a DevSound instance to play audio.
134 //4.1 Wait for InitializeComplete(KErrNone) callback response.
135 //5. Play an audio file by calling PlayInitL().
136 //6. Start CPeriodic to trigger timed events with a period of 2 seconds.
137 //7. On timer event call SetVolumeRamp(..) method to set volume ramp to valid value
138 //8. Wait for play error callback and again play an audio file.
139 //!@SYMTestExpectedResults:
140 //SetVolumeRamp(..) method shall be executed without error message and the its settings shall be reflected the next time PlayInitL() is called.
141 PRINT Play Audio Configure - Call SetVolumeRamp(..) method to set volume ramp
142 RUN_TEST_STEP 20000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0006, c:\mm_a3f_devsound_play_raw.ini
145 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0007
148 //!@SYMTestCaseDec: Play Audio Configure - Call SetVolume(..) method to set volume to a value bigger than MaxVolume()
149 //!@SYMTestPriority: Normal
150 //!@SYMTestType: Normal Usecase
152 //1. Create and initialise a DevSound instance to play audio.
153 //1.1 Wait for InitializeComplete(KErrNone) callback response.
154 //2. Call SetVolume(..) method to set volume to a value beyond MaxVolume().
155 //3. Call Volume() method to confirm volume value.
156 //!@SYMTestExpectedResults:
157 //SetVolume(..) method shall be executed without error message. Value returned by Volume() method shall be equal to MaxVolume.
158 PRINT Play Audio Configure - Call SetVolume(..) method to set volume to a value bigger than MaxVolume()
159 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0007, c:\mm_a3f_devsound_play_raw.ini
162 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0008
165 //!@SYMTestCaseDec: Play Audio Configure - Call SetVolume(..) method to set volume to a negative value
166 //!@SYMTestPriority: Normal
167 //!@SYMTestType: Alternative Usecase
169 //1. Create and initialise a DevSound instance to play audio.
170 //1.1 Wait for InitializeComplete(KErrNone) callback response.
171 //2. Call SetVolume(..) method to set volume using a value lower than zero.
172 //4. Call Volume() method to retrieve current device volume.
173 //!@SYMTestExpectedResults:
174 //SetVolume(..) method shall be executed without error message. Value returned by Volume() method shall be zero.
175 PRINT Play Audio Configure - Call SetVolume(..) method to set volume to a negative value
176 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0008, c:\mm_a3f_devsound_play_raw.ini
179 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0009
182 //!@SYMTestCaseDec: Play Audio Configure - Call SetPlayBalanceL(..) method to set LeftPercentage and aRightPercentage to values greater than 100
183 //!@SYMTestPriority: Normal
184 //!@SYMTestType: Alternative Usecase
186 //1. Create and initialise a DevSound instance to play audio.
187 //1.1 Wait for InitializeComplete(KErrNone) callback response.
188 //2. Call SetPlayBalanceL(..) method to set speaker balance values to values greater than 100.
189 //3. Call GetPlayBalance() method to verify the speaker values.
190 //!@SYMTestExpectedResults:
191 //SetPlayBalanceL(..) method shall be executed without error message.
192 //Data returned by GetPlayBalanceL() method shall be 100.
193 PRINT Play Audio Configure - Call SetPlayBalanceL(..) method to set LeftPercentage and aRightPercentage to values greater than 100
194 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0009, c:\mm_a3f_devsound_play_raw.ini
197 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0010
200 //!@SYMTestCaseDec: Play Audio Configure - Call SetPlayBalanceL(..) method to set LeftPercentage and aRightPercentage to values less than 0
201 //!@SYMTestPriority: Normal
202 //!@SYMTestType: Alternative Usecase
204 //1. Create and initialise a DevSound instance to play audio.
205 //1.1 Wait for InitializeComplete(KErrNone) callback response.
206 //2. Call SetPlayBalanceL(..) method to set speaker balance values to values less than 0.
207 //3. Call GetPlayBalance() method to verify the speaker values.
208 //!@SYMTestExpectedResults:
209 //SetPlayBalanceL(..) method shall be executed without error message.
210 //Data returned by GetPlayBalanceL() method shall be 0.
211 PRINT Play Audio Configure - Call SetPlayBalanceL(..) method to set LeftPercentage and aRightPercentage to values less than 0
212 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0010, c:\mm_a3f_devsound_play_raw.ini
215 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0011
218 //!@SYMTestCaseDec: Play Audio Configure - Call SetPrioritySettings(..) method to set priority
219 //!@SYMTestPriority: Normal
220 //!@SYMTestType: Normal Usecase
222 //1. Create and Initialize DevSound instance to play audio.
223 //1.1 Wait for InitializeComplete(KErrNone) callback response.
224 //2. Call SetPrioritySettings(..) method to set iPriority to a valid value.
225 //!@SYMTestExpectedResults:
226 //SetPrioritySettings(..) method shall be executed without error message.
227 PRINT Play Audio Configure - Call SetPrioritySettings(..) method to set priority
228 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0011, c:\mm_a3f_devsound_play_raw.ini
231 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0012
234 //!@SYMTestCaseDec: Play Audio query - Call Capabilities() method to get device - supported capabilities
235 //!@SYMTestPriority: Normal
236 //!@SYMTestType: Normal Usecase
238 //1. Create and initialise a DevSound instance to play audio.
239 //1.1 Wait for InitializeComplete(KErrNone) callback response.
240 //2. Call Capabilities() method to get the supported capabilities of devsound.
241 //!@SYMTestExpectedResults:
242 //Capabilities() method shall returns all supported Sampling Rates and all supported Channels by current device.
243 PRINT Play Audio query - Call Capabilities() method to get device - supported capabilities
244 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0012, c:\mm_a3f_devsound_play_raw.ini
247 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0013
250 //!@SYMTestCaseDec: Play Audio query - Call Config() method to get Sampling Rate and iChannel
251 //!@SYMTestPriority: Normal
252 //!@SYMTestType: Normal Usecase
254 //1. Create and initialise a DevSound instance to play audio.
255 //1.1 Wait for InitializeComplete(KErrNone) callback response.
256 //2. Call Config() method to get Sampling Rate and iChannel.
257 //!@SYMTestExpectedResults:
258 //Config() method shall return current Sampling Rate and iChannel values.
259 PRINT Play Audio query - Call Config() method to get Sampling Rate and iChannel
260 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0013, c:\mm_a3f_devsound_play_raw.ini
263 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0014
266 //!@SYMTestCaseDec: Play Audio query - Call GetPlayBalanceL() method to retrieve current device balance value
267 //!@SYMTestPriority: Normal
268 //!@SYMTestType: Normal Usecase
270 //1. Create and initialise a DevSound instance to play audio.
271 //1.1 Wait for InitializeComplete(KErrNone) callback response.
272 //2. Call GetPlayBalanceL() method to retrieve current device balance value.
273 //!@SYMTestExpectedResults:
274 //GetPlayBalanceL(..) method shall return current device play balance values.
275 PRINT Play Audio query - Call GetPlayBalanceL() method to retrieve current device balance value
276 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0014, c:\mm_a3f_devsound_play_raw.ini
279 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0015
282 //!@SYMTestCaseDec: Play Audio query - Call GetSupportedInputDataTypesL(..) method to get device's supported inputs
283 //!@SYMTestPriority: Normal
284 //!@SYMTestType: Normal Usecase
286 //1. Create and initialise a DevSound instance to play audio.
287 //1.1 Wait for InitializeComplete(KErrNone) callback response.
288 //2. Call GetSupportedInputDataTypesL(..) method to get device's supported inputs.
289 //!@SYMTestExpectedResults:
290 //GetSupportedInputDataTypesL() method shall return a list with the supported values.
291 PRINT Play Audio query - Call GetSupportedInputDataTypesL(..) method to get device's supported inputs
292 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0015, c:\mm_a3f_devsound_play_raw.ini
295 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0016
298 //!@SYMTestCaseDec: Play Audio query - Call MaxVolume() method to get maximum supported volume
299 //!@SYMTestPriority: Normal
300 //!@SYMTestType: Normal Usecase
302 //1. Create and Initialize a DevSound instance to play audio.
303 //1.1 Wait for InitializeComplete(KErrNone) callback response.
304 //2. Call MaxVolume() method to get maximum device supported volume.
305 //!@SYMTestExpectedResults:
306 //MaxVolume() method shall return the maximum device volume value.
307 PRINT Play Audio query - Call MaxVolume() method to get maximum supported volume
308 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0016, c:\mm_a3f_devsound_play_raw.ini
311 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0017
314 //!@SYMTestCaseDec: Play Audio query - Call SamplesPlayed() method to get samples played so far
315 //!@SYMTestPriority: Normal
316 //!@SYMTestType: Normal Usecase
318 //1. Create and Initialize a DevSound instance to play audio.
319 //1.1 Wait for InitializeComplete(KErrNone) callback response.
320 //2. Call SamplesPlayed() method to get samples played so far.
321 //!@SYMTestExpectedResults:
322 //SamplesPlayed() shall return the amount of samples played. In this case, it shall be 0.
323 PRINT Play Audio query - Call SamplesPlayed() method to get samples played so far
324 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0017, c:\mm_a3f_devsound_play_raw.ini
327 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0018
330 //!@SYMTestCaseDec: Play Audio query - Call Volume(..) method to get volume value
331 //!@SYMTestPriority: Normal
332 //!@SYMTestType: Normal Usecase
334 //1. Create and Initialize a DevSound instance to play audio.
335 //1.1 Wait for InitializeComplete(KErrNone) callback response.
336 //2. Call Volume(..) method to get current volume value.
337 //!@SYMTestExpectedResults:
338 //Volume(..) method shall return current device volume value.
339 PRINT Play Audio query - Call Volume(..) method to get current volume value
340 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0018, c:\mm_a3f_devsound_play_raw.ini
343 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0019
346 //!@SYMTestCaseDec: Play Audio query - Call Capabilities() method to get device - supported capabilities while audio play is in progress.
347 //!@SYMTestPriority: Normal
348 //!@SYMTestType: Normal Usecase
350 //1. Create a DevSound instance.
351 //2. Open file to play.
352 //3. Initialise the Devsound instance to play audio.
353 //3.1 Wait for InitializeComplete(KErrNone) callback response.
354 //4. Create and start a CPeriodic object.
355 //5. Call PlayInitL() method. (For testing purposes, the audio play should last more than the first timer event)
356 //6. Wait for BufferToBeFilled(..) callback to fill CMMFBuffer with data to play. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
357 //7. On timer event call Capabilities() method to get the supported capabilities of devsound.
358 //!@SYMTestExpectedResults:
359 //Capabilities() method shall returns all supported Sampling Rates and all supported Channels by current device.
360 PRINT Play Audio query - Call Capabilities() method to get device - supported capabilities while audio play is in progress.
361 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0019, c:\mm_a3f_devsound_play_raw.ini
364 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0020
367 //!@SYMTestCaseDec: Play Audio query - Call Config() method to get Sampling Rate and iChannel while audio play is in progress.
368 //!@SYMTestPriority: Normal
369 //!@SYMTestType: Normal Usecase
371 //1. Create a DevSound instance.
372 //2. Open file to play.
373 //3. Initialise the Devsound instance to play audio.
374 //3.1 Wait for InitializeComplete(KErrNone) callback response.
375 //4. Create and start a CPeriodic object.
376 //5. Call PlayInitL() method. (For testing purposes, the audio play should last more than the first timer event)
377 //6. Wait for BufferToBeFilled(..) callback to fill CMMFBuffer with data to play. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
378 //7. On timer event call Config() method to get Sampling Rate and iChannel.
379 //!@SYMTestExpectedResults:
380 //Config() method shall return current Sampling Rate and iChannel values.
381 PRINT Play Audio query - Call Config() method to get Sampling Rate and iChannel while audio play is in progress.
382 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0020, c:\mm_a3f_devsound_play_raw.ini
385 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0021
388 //!@SYMTestCaseDec: Play Audio query - Call GetPlayBalanceL() method to retrieve current device balance value while audio play is in progress.
389 //!@SYMTestPriority: Normal
390 //!@SYMTestType: Normal Usecase
392 //1. Create a DevSound instance.
393 //2. Open file to play.
394 //3. Initialise the Devsound instance to play audio.
395 //3.1 Wait for InitializeComplete(KErrNone) callback response.
396 //4. Create and start a CPeriodic object.
397 //5. Call PlayInitL() method. (For testing purposes, the audio play should last more than the first timer event)
398 //6. Wait for BufferToBeFilled(..) callback to fill CMMFBuffer with data to play. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
399 //7. On timer event call GetPlayBalanceL() method to retrieve current device balance value.
400 //!@SYMTestExpectedResults:
401 //GetPlayBalanceL(..) method shall return current device play balance values.
402 PRINT Play Audio query - Call GetPlayBalanceL() method to retrieve current device balance value while audio play is in progress.
403 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0021, c:\mm_a3f_devsound_play_raw.ini
406 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0022
409 //!@SYMTestCaseDec: Play Audio query - Call GetSupportedInputDataTypesL(..) method to get device's supported inputs while audio play is in progress.
410 //!@SYMTestPriority: Normal
411 //!@SYMTestType: Normal Usecase
413 //1. Create a DevSound instance.
414 //2. Open file to play.
415 //3. Initialise the Devsound instance to play audio.
416 //3.1 Wait for InitializeComplete(KErrNone) callback response.
417 //4. Create and start a CPeriodic object.
418 //5. Call PlayInitL() method. (For testing purposes, the audio play should last more than the first timer event)
419 //6. Wait for BufferToBeFilled(..) callback to fill CMMFBuffer with data to play. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
420 //7. On timer event call GetSupportedInputDataTypesL(..) method to get device's supported inputs.
421 //!@SYMTestExpectedResults:
422 //GetSupportedInputDataTypesL() method shall return a list with the supported values.
423 PRINT Play Audio query - Call GetSupportedInputDataTypesL(..) method to get device's supported inputs while audio play is in progress.
424 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0022, c:\mm_a3f_devsound_play_raw.ini
427 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0023
430 //!@SYMTestCaseDec: Play Audio query - Call MaxVolume() method to get maximum supported volume while audio play is in progress.
431 //!@SYMTestPriority: Normal
432 //!@SYMTestType: Normal Usecase
434 //1. Create a DevSound instance.
435 //2. Open file to play.
436 //3. Initialise the Devsound instance to play audio.
437 //3.1 Wait for InitializeComplete(KErrNone) callback response.
438 //4. Create and start a CPeriodic object.
439 //5. Call PlayInitL() method. (For testing purposes, the audio play should last more than the first timer event)
440 //6. Wait for BufferToBeFilled(..) callback to fill CMMFBuffer with data to play. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
441 //7. On timer event call MaxVolume() method to get maximum device supported volume.
442 //!@SYMTestExpectedResults:
443 //MaxVolume() method shall return the maximum device volume value.
444 PRINT Play Audio query - Call MaxVolume() method to get maximum supported volume while audio play is in progress.
445 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0023, c:\mm_a3f_devsound_play_raw.ini
448 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0024
451 //!@SYMTestCaseDec: Play Audio query - Call SamplesPlayed() method to get samples played so far while audio play is in progress.
452 //!@SYMTestPriority: Normal
453 //!@SYMTestType: Normal Usecase
455 //1. Create a DevSound instance.
456 //2. Open file to play.
457 //3. Initialise the Devsound instance to play audio.
458 //3.1 Wait for InitializeComplete(KErrNone) callback response.
459 //4. Create and start a CPeriodic object.
460 //5. Call PlayInitL() method. (For testing purposes, the audio play should last more than the first timer event)
461 //6. Wait for BufferToBeFilled(..) callback to fill CMMFBuffer with data to play. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
462 //7. On timer event call SamplesPlayed() method to get samples played so far.
463 //!@SYMTestExpectedResults:
464 //SamplesPlayed() shall return the amount of samples played. In this case, it shall be 0.
465 PRINT Play Audio query - Call SamplesPlayed() method to get samples played so far while audio play is in progress.
466 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0024, c:\mm_a3f_devsound_play_raw.ini
469 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0025
472 //!@SYMTestCaseDec: Play Audio query - Call Volume(..) method to get volume value while audio play is in progress.
473 //!@SYMTestPriority: Normal
474 //!@SYMTestType: Normal Usecase
476 //1. Create a DevSound instance.
477 //2. Open file to play.
478 //3. Initialise the Devsound instance to play audio.
479 //3.1 Wait for InitializeComplete(KErrNone) callback response.
480 //4. Create and start a CPeriodic object.
481 //5. Call PlayInitL() method. (For testing purposes, the audio play should last more than the first timer event)
482 //6. Wait for BufferToBeFilled(..) callback to fill CMMFBuffer with data to play. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
483 //7. On timer event call Volume(..) method to get current volume value.
484 //!@SYMTestExpectedResults:
485 //Volume(..) method shall return current device volume value.
486 PRINT Play Audio query - Call Volume(..) method to get current volume value while audio play is in progress.
487 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0025, c:\mm_a3f_devsound_play_raw.ini
490 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0026
493 //!@SYMTestCaseDec: Play Audio
494 //!@SYMTestPriority: Normal
495 //!@SYMTestType: Normal Usecase
497 //1. Create a DevSound instance.
498 //2. Open file to play.
499 //3. Initialise the Devsound instance to play audio.
500 //3.1 Wait for InitializeComplete(KErrNone) callback response.
501 //4. Call PlayInitL() method.
502 //5. Wait for BufferToBeFilled(..) callback to fill CMMFBuffer with data to play. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
503 //6. Repeat step 5 until the last buffer flag is set, meaning that the length of the buffer read from the file is less than the expected buffer size. Then , in PlayError(..) callback, you should check for KErrUnderflow and last buffer flag.
504 //!@SYMTestExpectedResults:
505 //PlayError(ErrUnderFlow) callback shall be received.
507 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0026, c:\mm_a3f_devsound_play_raw.ini
510 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0027
513 //!@SYMTestCaseDec: Play Audio - Call EmptyBuffers() during PlayData()/BTBF loop
514 //!@SYMTestPriority: Normal
515 //!@SYMTestType: Alternative Usecase
517 //1. Create a DevSound instance.
518 //2. Open files to be played by DevSound instances.
519 //3. Create a CPeriodic instance.
520 //3.1 Wait for InitializeComplete(KErrNone) callback response.
521 //4. Call PlayInitL() method and start timer events each 2 seconds.
522 //5. Wait for BufferToBeFilled(..) callback to fill the buffer with data. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
523 //6. On timer event, call EmptyBuffers().
524 //!@SYMTestExpectedResults:
525 //EmptyBuffers() returns KErrNone. Any buffers in transit are thrown away, so data ceases to be played immediately. The client must have stopped any read activity into a buffer prior to making this call since new BufferToBeFilled() callback will be made.
526 PRINT Play Audio - Call EmptyBuffers() during PlayData()/BTBF loop
527 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0027, c:\mm_a3f_devsound_play_raw.ini
530 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0028
533 //!@SYMTestCaseDec: Play Audio - EmptyBuffers() is called when not playing
534 //!@SYMTestPriority: Normal
535 //!@SYMTestType: Exception Usecase
537 //1. Create and Initialize a DevSound instance to play audio.
538 //1.1 Wait for InitializeComplete(KErrNone) callback response.
539 //2. Call EmptyBuffers()
540 //!@SYMTestExpectedResults:
541 //EmptyBuffers() returns KErrNotReady.
542 PRINT Play Audio - EmptyBuffers() is called when not playing
543 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0028, c:\mm_a3f_devsound_play_raw.ini
546 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0029
549 //!@SYMTestCaseDec: Pause or Stop while Playing Audio from a File - Call Stop() while playing the audio
550 //!@SYMTestPriority: Normal
551 //!@SYMTestType: Normal Usecase
553 //1. Create a Devsound instance.
554 //2. Open the file to be played.
555 //3. Create a CPeriodic instance.
556 //4. Initialise a DevSound instance to play audio.
557 //4.1 Wait for InitializeComplete(KErrNone) callback response.
558 //5. Call PlayInitL() and start timer events every 2 seconds.
559 //6. Wait for BufferToBeFilled(..) callback of first DevSound instance to fill the buffer with data. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
560 //7. On timer event Pause() method.
561 //!@SYMTestExpectedResults:
562 //Associated audio is no longer playing through output device.
563 PRINT Pause or Stop while Playing Audio from a File - Call Stop() while playing the audio
564 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0029, c:\mm_a3f_devsound_play_raw.ini
567 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0030
570 //!@SYMTestCaseDec: Pause or Stop while Playing Audio from a File - Call Stop() while playing the audio
571 //!@SYMTestPriority: Normal
572 //!@SYMTestType: Normal Usecase
574 //1. Create a Devsound instance.
575 //2. Open the file to be played.
576 //3. Create a CPeriodic instance.
577 //4. Initialise a DevSound instance to play audio.
578 //4.1 Wait for InitializeComplete(KErrNone) callback response.
579 //5. Call PlayInitL() and start timer events every 2 seconds.
580 //6. Wait for BufferToBeFilled(..) callback of first DevSound instance to fill the buffer with data. To continue receiving BTBF callbacks, is mandatory to call PlayData() method.
581 //7. On timer event Stop() method.
582 //!@SYMTestExpectedResults:
583 //Associated audio is no longer playing through output device.
584 PRINT Pause or Stop while Playing Audio from a File - Call Stop() while playing the audio
585 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0030, c:\mm_a3f_devsound_play_raw.ini
588 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0037
591 //!@SYMTestCaseDec: PlayData() called out of sequence - Call PlayData() except in response to BufferToBeFilled()
592 //!@SYMTestPriority: Normal
593 //!@SYMTestType: Normal Usecase
595 //1. Create a DevSound instance.
596 //2. Initialise the Devsound instance to play audio.
597 //2.1 Wait for InitializeComplete(KErrNone) callback response.
598 //3. Call PlayData() method.
599 //!@SYMTestExpectedResults:
600 //Devsound client shall panic.
601 PRINT PlayData() called out of sequence - Call PlayData() except in response to BufferToBeFilled()
602 RUN_PANIC_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0037, MmfDevSoundProxy 0, c:\mm_a3f_devsound_play_raw.ini
605 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0038
608 //!@SYMTestCaseDec: PlayInitL() called more than once - Re-call PlayInitL() without Stop() or PlayError() being called.
609 //!@SYMTestPriority: Normal
610 //!@SYMTestType: Normal Usecase
612 //1. Create a DevSound instance.
613 //2. Initialise the Devsound instance to play audio.
614 //2.1 Wait for InitializeComplete(KErrNone) callback response.
615 //3. Call PlayInitL() method.
616 //4. Again call PlayInitL() method.
617 //!@SYMTestExpectedResults:
618 //The second or subsequent PlayInitL() calls leave with KErrNotReady error.
619 PRINT PlayInitL() called more than once - Re-call PlayInitL() without Stop() or PlayError() being called.
620 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0038, c:\mm_a3f_devsound_play_raw.ini
623 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0040
626 //!@SYMTestCaseDec: Pause called immediately after creating a DevSound instance
627 //!@SYMTestPriority: Normal
628 //!@SYMTestType: Normal Usecase
630 //1. Create a DevSound instance with medium priority
631 //2. Call Pause on the DevSound instance
632 //!@SYMTestExpectedResults:
633 //The DevSound instance should not panic
634 PRINT Pause called immediately after creating a DevSound instance
635 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0040, c:\mm_a3f_devsound_play_raw.ini
638 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0041
641 //!@SYMTestCaseDec: Call empty buffers on receipt of the third buffer to be filled request
642 //!@SYMTestPriority: Normal
643 //!@SYMTestType: Normal Usecase
645 //1. Create a DevSound instance with medium priority
646 //2. Call empty buffers on receipt of the third buffer to be filled request
647 //!@SYMTestExpectedResults:
648 //A BufferToBeFilled callback should be received by DevSound indicating a new BTBF cycle.
649 PRINT Call empty buffers on receipt of the third buffer to be filled request
650 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-PLAY-RAW-0041, c:\mm_a3f_devsound_play_raw.ini