sl@0: // sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: // sl@0: //! @file sl@0: //! @SYMTestSuiteName multimedia-mmf-devsoundext-validation-automated-comb_pr sl@0: //! @SYMScriptTestEnvironment This test script requires a basic ROM. sl@0: // sl@0: // Tests all public elements of the CMMFDevSound sl@0: // classes as a means of confidence that the APIs work as expected. sl@0: // sl@0: // The purpose is to provide a regression test suite of PublishedAll sl@0: // APIs for: CMMFDevSound sl@0: // The tests are fully automated. sl@0: // sl@0: sl@0: sl@0: sl@0: LOAD_SUITE t_devsoundext sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0002 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0002 sl@0: //!@SYMAPI sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CAudioOutput::SetAudioOutputL( TAudioOutputPreference aAudioOutput = ENoPreference ) sl@0: //! CAudioInput::SetAudioInputL(TAudioInputArray ) sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CAudioOutput::SetAudioOutputL( TAudioOutputPreference aAudioOutput = ENoPreference ) sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CAudioInput::SetAudioInputL(TAudioInputArray ) sl@0: //!@SYMAuthor jguillermo sl@0: //!@SYMCreationDate 8/11/2008 sl@0: //!@SYMTestCaseDesc Audio recording during secured audio playback when recording has higher priority sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioOutput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Set secure output (SecureOutput = 1) sl@0: //! 4. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) sl@0: //! 5. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying) sl@0: //! 6. Capabilities sl@0: //! 7. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz) sl@0: //! 8. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test2.mp3) sl@0: //! 9. Play sl@0: //! 10. Close file sl@0: //! 11. Delete AudioOutput instance sl@0: //! 12. Delete DevSound instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityIncomingCall}; Preference = {PriorityPreference,PriorityPreferenceAudioRecording};PriorityState=EMMFStateRecording) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration and delay for 10 seconds (Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RecHigherDuringSecPlay.pcm) sl@0: //! 8. Set audio input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 9. Record 10 seconds sl@0: //! 10. Stop sl@0: //! 11. Close file sl@0: //! 12. Delete AudioOutput instance sl@0: //! 13. Delete DevSound instance sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! Audio recording during secured audio playback when recording has higher priority sl@0: //! TEST_BLOCK 001 sl@0: //! Audio recording during secured audio playback when recording has higher priority_1 sl@0: //! TEST_BLOCK 002 sl@0: //! Audio recording during secured audio playback when recording has higher priority_2 sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 100 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioOutput audiooutput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audiooutput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0001-NewL_command02 sl@0: COMMAND audiooutput1 SetSecureOutput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0001-SetSecureOutput_command03 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0001-InitializeL_command04 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0001-SetPrioritySettings_command05 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0001-SetConfigL_command07 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0001-OpenFile_command08 sl@0: COMMAND devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audiooutput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 100 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0002-NewL_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0002-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0002-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0002-SetConfigL_command06 sl@0: DELAY 10000000 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0002-ReplaceFile_command07 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0002-0002-SetAudioInput_command08 sl@0: COMMAND devsound1 RecordInitL sl@0: ASYNC_DELAY 10000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0002 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0003 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0003 sl@0: //!@SYMAPI sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CAudioOutput::SetAudioOutputL( TAudioOutputPreference aAudioOutput = ENoPreference ) sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //!@SYMAuthor jpacho sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Recording with visualization preferences during secured audio playback sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create DevSound instance sl@0: //! 2. CreateAudioOutput instance (DevSoundInstanceName=devsound1) sl@0: //! 3. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\PCM\PCM_48k_16b_signed_st_Test1.pcm) sl@0: //! 4. Set secure output (SecureOutput=1) sl@0: //! 5. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}) sl@0: //! 6. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying) sl@0: //! 7. Capabilities sl@0: //! 8. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz) sl@0: //! 9.Start play 20s sl@0: //! 10.Stop sl@0: //! 11. Close file sl@0: //! 12. Destroy AudioOutput instance sl@0: //! 13. Destroy DevSound instance sl@0: //! sl@0: sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\VisRecordDuringSecPlay.pcm) sl@0: //! 3. Initialize DevSound (Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityVisualization}; Preference = {PriorityPreference,PriorityPreferenceVisualization};PriorityState=EMMFStateRecording) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration delay 10s (Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Start record 20s sl@0: //! 8. Close file sl@0: //! 9.Destroy DevSound instance sl@0: //! sl@0: sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults 1, in TestBlock 001, step 9, Play without error. sl@0: //! 2, in TestBlock 002, step 7, record return expected error -21. sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 90 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioOutput audiooutput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audiooutput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0003-0001-NewL_command02 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0003-0001-OpenFile_command03 sl@0: COMMAND audiooutput1 SetSecureOutput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0003-0001-SetSecureOutput_command04 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0003-0001-InitializeL_command05 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0003-0001-SetPrioritySettings_command06 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0003-0001-SetConfigL_command08 sl@0: COMMAND devsound1 PlayInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audiooutput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 90 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0003-0002-ReplaceFile_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0003-0002-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0003-0002-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0003-0002-SetConfigL_command06 sl@0: DELAY 10000000 sl@0: COMMAND !AsyncError=-21 devsound1 RecordInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0003 sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0004 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0004 sl@0: //!@SYMAPI sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! CAudioInput::SetAudioInputL(TAudioInputArray ) sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! CAudioInput::SetAudioInputL(TAudioInputArray ) sl@0: //! TEST_BLOCK 003 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CAudioOutput::SetAudioOutputL( TAudioOutputPreference aAudioOutput = ENoPreference ) sl@0: //!@SYMAuthor jguillermo sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Secured audio playback during multiple recordings sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityVisualization}; Preference = {PriorityPreference,PriorityPreferenceAudioRecording} ; PriorityState=EMMFStateRecording) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\SecPlayDuringMultipleRecordings1.pcm) sl@0: //! 8. Set audio input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 9. Record 30 seconds sl@0: //! 10. Close file sl@0: //! 11. Delete AudioInput instance sl@0: //! 12. Delete DevSound instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityVisualization}; Preference = {PriorityPreference,PriorityPreferenceAudioRecording} ; PriorityState=EMMFStateRecording) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration and delay 10 seconds(Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\SecPlayDuringMultipleRecordings2.pcm) sl@0: //! 8. Set audio input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 9. Record 20 seconds sl@0: //! 10. Close file sl@0: //! 11. Delete AudioInput instance sl@0: //! 12. Delete DevSound instance sl@0: //! TEST_BLOCK 003 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioOutput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceSWISPlayback} ; PriorityState=EMMFStatePlaying) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration and delay 20 seconds(Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz) sl@0: //! 7. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test2.mp3) sl@0: //! 8. Set secure output (SecureOutput = 1) sl@0: //! 9. Play 10 seconds sl@0: //! 10. Stop sl@0: //! 11. Close file sl@0: //! 12. Delete AudioOutput instance sl@0: //! 13. Delete DevSound instance sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! AA_Secured audio playback during multiple recordings sl@0: //! TEST_BLOCK 001 sl@0: //! AA_Secured audio playback during multiple recordings sl@0: //! TEST_BLOCK 002 sl@0: //! AA_Secured audio playback during multiple recordings sl@0: //! TEST_BLOCK 003 sl@0: //! AA_Secured audio playback during multiple recordings sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 300 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound2 sl@0: CREATE_OBJECT CAudioInput audioinput2 sl@0: COMMAND devsound2 NewL sl@0: COMMAND audioinput2 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0001-NewL_command02 sl@0: COMMAND devsound2 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0001-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound2 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0001-SetPrioritySettings_command04 sl@0: COMMAND devsound2 Capabilities sl@0: COMMAND devsound2 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0001-SetConfigL_command06 sl@0: COMMAND devsound2 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0001-ReplaceFile_command07 sl@0: COMMAND audioinput2 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0001-SetAudioInput_command08 sl@0: COMMAND !AsyncError=-13 devsound2 RecordInitL sl@0: ASYNC_DELAY 30000000 sl@0: COMMAND devsound2 Stop sl@0: COMMAND devsound2 CloseFile sl@0: COMMAND audioinput2 ~ sl@0: COMMAND devsound2 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 300 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound3 sl@0: CREATE_OBJECT CAudioInput audioinput3 sl@0: COMMAND devsound3 NewL sl@0: COMMAND audioinput3 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0002-NewL_command02 sl@0: COMMAND devsound3 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0002-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound3 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0002-SetPrioritySettings_command04 sl@0: COMMAND devsound3 Capabilities sl@0: COMMAND devsound3 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0002-SetConfigL_command06 sl@0: DELAY 10000000 sl@0: COMMAND devsound3 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0002-ReplaceFile_command07 sl@0: COMMAND audioinput3 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0002-SetAudioInput_command08 sl@0: COMMAND !AsyncError=-21 devsound3 RecordInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound3 CloseFile sl@0: COMMAND audioinput3 ~ sl@0: COMMAND devsound3 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 300 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioOutput audiooutput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audiooutput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0003-NewL_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0003-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0003-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0003-SetConfigL_command06 sl@0: DELAY 20000000 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0003-OpenFile_command07 sl@0: COMMAND audiooutput1 SetSecureOutput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0004-0003-SetSecureOutput_command08 sl@0: COMMAND devsound1 PlayInitL sl@0: ASYNC_DELAY 10000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audiooutput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0004 sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0006 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0006 sl@0: //!@SYMAPI sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! CAudioInput::SetAudioInputL(TAudioInputArray ) sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CAudioOutput::SetAudioOutputL( TAudioOutputPreference aAudioOutput = ENoPreference ) sl@0: //!@SYMAuthor jguillermo sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Secured SWIS playback during audio recording when recording has higher priority sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStateRecording; FourCC ={SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityIncomingCall}; Preference = {PriorityPreference,PriorityPreferenceAudioRecording};PriorityState=EMMFStateRecording) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\SecPlayDuringRecHigher.pcm) sl@0: //! 8. Set audio input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 9. Record 20 seconds sl@0: //! 10. Stop sl@0: //! 11. Close file sl@0: //! 12. Delete AudioInput instance sl@0: //! 13. Delete DevSound instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioOutput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3 ) sl@0: //! 4. Set Priority (Priority = {Priority,PrioritySWISPlayback}; Preference = {PriorityPreference,PriorityPreferenceSWISPlayback};PriorityState=EMMFStatePlaying) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration and delay 10 seconds(Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz) sl@0: //! 7. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test2.mp3) sl@0: //! 8. Set secure output (SecureOutput = 1) sl@0: //! 9. Play EOF sl@0: //! 10. Close file sl@0: //! 11. Delete AudioOutput instance sl@0: //! 12. Delete DevSound instance sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! AA_Secured SWIS playback during audio recording when recording has higher priority sl@0: //! TEST_BLOCK 001 sl@0: //! AA_Secured SWIS playback during audio recording when recording has higher priority sl@0: //! TEST_BLOCK 002 sl@0: //! AA_Secured SWIS playback during audio recording when recording has higher priority sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 100 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0001-NewL_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0001-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0001-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0001-SetConfigL_command06 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0001-ReplaceFile_command07 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0001-SetAudioInput_command08 sl@0: COMMAND devsound1 RecordInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 100 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioOutput audiooutput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audiooutput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0002-NewL_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0002-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0002-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0002-SetConfigL_command06 sl@0: DELAY 10000000 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0002-OpenFile_command07 sl@0: COMMAND audiooutput1 SetSecureOutput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0006-0002-SetSecureOutput_command08 sl@0: COMMAND !AsyncError=-21 devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audiooutput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0006 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0007 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0007 sl@0: //!@SYMAPI sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState) sl@0: //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref}) sl@0: //! CMMFDevSound::Capabilities() sl@0: //! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref}) sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! CMMFDevSound::Stop() sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState) sl@0: //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref}) sl@0: //! CMMFDevSound::Capabilities() sl@0: //! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref}) sl@0: //! CMMFAudioInput::SetAudioInputL(TAudioInputArray{ref}) sl@0: //! CMMFDevSound::RecordInitL() sl@0: //! CMMFDevSound::Stop() sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! sl@0: //!@SYMAuthor myanez sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Audio routing - Audio playback 16k mono recording from speaker sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create Devsound Instance sl@0: //! 2. Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_48k_256kbps_st_1kHzsine_st2mono.mp3) sl@0: //! 3. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone};PriorityState=EMMFStatePlaying) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Start Play for 20 seconds sl@0: //! 8. Stop sl@0: //! 9. Close File sl@0: //! 10. Destroy Devsound Instance sl@0: //! sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound Instance sl@0: //! 2. Create AudioInput Instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlay16kMonoRecSpeaker.pcm) sl@0: //! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = P16) sl@0: //! 5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording) sl@0: //! 6. Capabilities sl@0: //! 7. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate16000Hz) sl@0: //! 8. Stop for 10 seconds sl@0: //! 9. Set Audio Input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 10. Start Record for 20 seconds sl@0: //! 11. Stop for 5 seconds sl@0: //! 12. Close File sl@0: //! 13. Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlay16kMonoRecSpeaker.pcm) sl@0: //! 14. 12. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = P16) sl@0: //! 15. 13. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying) sl@0: //! 16. 14. Capabilities sl@0: //! 17. 15. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate16000Hz) sl@0: //! 18. 17. Start Play sl@0: //! 19. 18. Close File sl@0: //! 20. 19. Destroy AudioInput Instance sl@0: //! 21. Destroy DevSound Instance sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! Audio playback 16k mono recording from speaker sl@0: //! TEST_BLOCK 001 sl@0: //! Play MP3 File with Audio Playback Priority and NonePreference, Expecting Error -13 sl@0: //! TEST_BLOCK 002 sl@0: //! Record with Voice Recording Priority and Voice Recording Preference; Play with Audio PLayback Priority and Audio PLayback Preference sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0001-OpenFile_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0001-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0001-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0001-SetConfigL_command06 sl@0: COMMAND !AsyncError=-13 devsound1 PlayInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 65 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0002-NewL_command02 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0002-ReplaceFile_command03 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0002-InitializeL_command04 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0002-SetPrioritySettings_command05 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0002-SetConfigL_command07 sl@0: COMMAND devsound1 Stop sl@0: DELAY 10000000 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0002-SetAudioInput_command09 sl@0: COMMAND devsound1 RecordInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 5000000 sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0002-OpenFile_command13 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0002-InitializeL_command14 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0002-SetPrioritySettings_command15 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0007-0002-SetConfigL_command17 sl@0: COMMAND devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0007 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0008 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0008 sl@0: //!@SYMAPI sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC{ref}, TMMFState) sl@0: //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref}) sl@0: //! CMMFDevSound::Capabilities() sl@0: //! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref}) sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! CMMFDevSound::Stop() sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState) sl@0: //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref}) sl@0: //! CMMFDevSound::Capabilities() sl@0: //! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref}) sl@0: //! CMMFAudioInput::SetAudioInputL(TAudioInputArray) sl@0: //! CMMFDevSound::RecordInitL() sl@0: //! CMMFDevSound::Stop() sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! sl@0: //!@SYMAuthor myanez sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Audio routing - Audio playback 16k stereo recording from speaker sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create Devsound Instance sl@0: //! 2. Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test2.mp3) sl@0: //! 3. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone} ; PriorityState=EMMFStatePlaying) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Play for 20 seconds sl@0: //! 8. Stop sl@0: //! 9. Close File sl@0: //! 10. Destroy Devsound Instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound Instance sl@0: //! 2. Create AudioInput Instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlay16kStereoRecSpeaker.pcm) sl@0: //! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = P16) sl@0: //! 5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState=EMMFStateRecording) sl@0: //! 6. Capabilities sl@0: //! 7. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate16000Hz) sl@0: //! 8. Stop for 10 seconds sl@0: //! 9. Set Audio Input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 10. Start Record for 20 seconds sl@0: //! 11. Stop for 5 seconds sl@0: //! 12. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = P16) sl@0: //! 13. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback} ; PriorityState=EMMFStatePlaying) sl@0: //! 14. Capabilities sl@0: //! 15. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate16000Hz) sl@0: //! 16. Start File Positions sl@0: //! 17. Start Play sl@0: //! 18.Close File sl@0: //! 19. Destroy AudioInput Instance sl@0: //! 20. Destroy DevSound Instance sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! Audio playback 16k stereo recording from speaker sl@0: //! TEST_BLOCK 001 sl@0: //! Play MP3 File with Audio Playback Priority and NonePreference. sl@0: //! TEST_BLOCK 002 sl@0: //! Record with Voice Recording Priority and Voice Recording Preference; Play with Audio PLayback Priority and Audio PLayback Preference sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0001-OpenFile_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0001-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0001-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0001-SetConfigL_command06 sl@0: COMMAND !AsyncError=-13 devsound1 PlayInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 65 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0002-NewL_command02 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0002-ReplaceFile_command03 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0002-InitializeL_command04 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0002-SetPrioritySettings_command05 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0002-SetConfigL_command07 sl@0: COMMAND devsound1 Stop sl@0: DELAY 10000000 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0002-SetAudioInput_command09 sl@0: COMMAND devsound1 RecordInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 5000000 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0002-InitializeL_command12 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0002-SetPrioritySettings_command13 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0008-0002-SetConfigL_command15 sl@0: COMMAND devsound1 FileStartPosition sl@0: COMMAND devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0008 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0009 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0009 sl@0: //!@SYMAPI sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState) sl@0: //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref}) sl@0: //! CMMFDevSound::Capabilities() sl@0: //! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref}) sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! CMMFDevSound::Stop() sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState) sl@0: //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref}) sl@0: //! CMMFDevSound::Capabilities() sl@0: //! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref}) sl@0: //! CMMFAudioInput::SetAudioInputL(TAudioInputArray) sl@0: //! CMMFDevSound::RecordInitL() sl@0: //! CMMFDevSound::Stop() sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! sl@0: //!@SYMAuthor myanez sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Audio routing - Audio playback 48k mono recording from speaker sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create Devsound Instance sl@0: //! 2. Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_48k_256kbps_st_1kHzsine_st2mono.mp3) sl@0: //! 3. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone};PriorityState=EMMFStatePlaying) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Play for 20 seconds sl@0: //! 8. Stop sl@0: //! 9. Close File sl@0: //! 10. Destroy Devsound Instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound Instance sl@0: //! 2. Create AudioInput Instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlay48kMonoRecSpeaker.pcm) sl@0: //! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = P16) sl@0: //! 5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording) sl@0: //! 6. Capabilities sl@0: //! 7. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 8. Stop for 10 seconds sl@0: //! 9. Set Audio Input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 10.Record for 20 seconds sl@0: //! 11. Stop for 5 seconds sl@0: //! 12. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = P16) sl@0: //! 13. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying) sl@0: //! 14. Capabilities sl@0: //! 15. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 16. Start File Positions sl@0: //! 17. Start Play sl@0: //! 18. Close File sl@0: //! 19. Destroy AudioInput Instance sl@0: //! 20. Destroy DevSound Instance sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! Audio playback 48k mono recording from speaker sl@0: //! TEST_BLOCK 001 sl@0: //! Play MP3 File with Audio Playback Priority and NonePreference. sl@0: //! TEST_BLOCK 002 sl@0: //! Record with Voice Recording Priority and Voice Recording Preference; Play with Audio PLayback Priority and Audio PLayback Preference sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0001-OpenFile_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0001-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0001-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0001-SetConfigL_command06 sl@0: COMMAND !AsyncError=-13 devsound1 PlayInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 65 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0002-NewL_command02 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0002-ReplaceFile_command03 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0002-InitializeL_command04 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0002-SetPrioritySettings_command05 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0002-SetConfigL_command07 sl@0: COMMAND devsound1 Stop sl@0: DELAY 10000000 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0002-SetAudioInput_command09 sl@0: COMMAND devsound1 RecordInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 5000000 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0002-InitializeL_command12 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0002-SetPrioritySettings_command13 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0009-0002-SetConfigL_command15 sl@0: COMMAND devsound1 FileStartPosition sl@0: COMMAND devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0009 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0011 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0011 sl@0: //!@SYMAPI sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState ) sl@0: //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} ) sl@0: //! CMMFDevSound::Capabilities() sl@0: //! CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} ) sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! CMMFDevSound::Stop() sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState ) sl@0: //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} ) sl@0: //! CMMFDevSound::Capabilities() sl@0: //! CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} ) sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! CMMFDevSound::RecordInitL() sl@0: //! CMMFDevSound::Stop() sl@0: //! CMMFDevsound::PlayToneSequenceL(const TDesC8 {ref}) sl@0: //! CMMFDevSound::SetGain() sl@0: //! CMMFAudioInput::SetAudioInputL(TAudioInputArray) sl@0: //!@SYMAuthor etorres sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Gain control of audio playback recording sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create Devsound Instance sl@0: //! 2. Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test2.mp3) sl@0: //! 3. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone};PriorityState=EMMFStatePlaying) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz) sl@0: //! 7. Play for 20 seconds sl@0: //! 8. Stop sl@0: //! 9.Close File sl@0: //! 10.Destroy Devsound Instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound Instance sl@0: //! 2. Create AudioInput Instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\GainPlayRec.amr) sl@0: //! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR) sl@0: //! 5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording) sl@0: //! 6. Capabilities sl@0: //! 7. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz) sl@0: //! 8. Stop for 5 seconds sl@0: //! 9. Set Audio Input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 10. Record for 10 seconds sl@0: //! 11. SetGain(Gain= 0) sl@0: //! 12. SetGain(Gain=1) sl@0: //! 13. Stop for 10 seconds sl@0: //! 14. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = AMR) sl@0: //! 15. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying) sl@0: //! 16. Capabilities sl@0: //! 17. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz) sl@0: //! 18. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\GainPlayRec.amr) sl@0: //! 19. Start Play sl@0: //! 20.Close File sl@0: //! 21.Destroy AudioInput Instance sl@0: //! 22.Destroy DevSound Instance sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! TEST_BLOCK 001 sl@0: //! MP3 playback sl@0: //! TEST_BLOCK 002 sl@0: //! AMR recording {ref} playback with expected error=-21 sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0001-OpenFile_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0001-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0001-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0001-SetConfigL_command06 sl@0: COMMAND devsound1 PlayInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-NewL_command02 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-ReplaceFile_command03 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-InitializeL_command04 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-SetPrioritySettings_command05 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-SetConfigL_command07 sl@0: COMMAND devsound1 Stop sl@0: DELAY 5000000 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-SetAudioInput_command09 sl@0: COMMAND !AsyncError=-21 devsound1 RecordInitL sl@0: ASYNC_DELAY 10000000 sl@0: COMMAND devsound1 SetGain MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-SetGain_command12 sl@0: ASYNC_DELAY 10000000 sl@0: COMMAND devsound1 SetGain MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-SetGain_command13 sl@0: ASYNC_DELAY 10000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 10000000 sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-InitializeL_command15 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-SetPrioritySettings_command16 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-SetConfigL_command18 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0011-0002-OpenFile_command19 sl@0: COMMAND devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0011 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0012 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0012 sl@0: //!@SYMAPI sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! CAudioInput::SetAudioInputL(TAudioInputArray ) sl@0: //!@SYMAuthor jguillermo sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Audio routing - Audio playback 48k mono recording from speaker when accessory is used sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) sl@0: //! 3. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone};PriorityState=EMMFStatePlaying) sl@0: //! 4. Capabilities sl@0: //! 5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz) sl@0: //! 6. Open file (Filename= {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test3.mp3) sl@0: //! 7. Play 20 seconds sl@0: //! 8. Stop sl@0: //! 9. Close file sl@0: //! 10. Delete DevSound instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStateRecording; FourCC ={SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration and delay 10 seconds(Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlayRecSpeakerAcc.pcm) sl@0: //! 8. Set audio input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 9. Record 20 seconds sl@0: //! 10. Stop 5 seconds sl@0: //! 11. Close file sl@0: //! 12. Initialize DevSound (Mode = EMMFStatePlaying; FourCC ={SpecialFourCC,RAW}) sl@0: //! 13. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying) sl@0: //! 14. Set Configuration(Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 15. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlayRecSpeakerAcc.pcm) sl@0: //! 16. Play EOF sl@0: //! 17. Close file sl@0: //! 18. Delete AudioInput instance sl@0: //! 19. Delete DevSound instance sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! AA_Audio routing - Audio playback 48k mono recording from speaker when accessory is used sl@0: //! TEST_BLOCK 001 sl@0: //! AA_Audio routing - Audio playback 48k mono recording from speaker when accessory is used sl@0: //! TEST_BLOCK 002 sl@0: //! AA_Audio routing - Audio playback 48k mono recording from speaker when accessory is used sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0001-InitializeL_command02 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0001-SetPrioritySettings_command03 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0001-SetConfigL_command05 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0001-OpenFile_command06 sl@0: COMMAND !AsyncError=-13 devsound1 PlayInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0002-NewL_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0002-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0002-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0002-SetConfigL_command06 sl@0: DELAY 10000000 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0002-ReplaceFile_command07 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0002-SetAudioInput_command08 sl@0: COMMAND devsound1 RecordInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 5000000 sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0002-InitializeL_command12 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0002-SetPrioritySettings_command13 sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0002-SetConfigL_command14 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0012-0002-OpenFile_command15 sl@0: COMMAND devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0012 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0013 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0013 sl@0: //!@SYMAPI sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! CAudioInput::SetAudioInputL(TAudioInputArray ) sl@0: //!@SYMAuthor jguillermo sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Audio routing - Audio playback 48k stereo recording from speaker sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) sl@0: //! 3. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone} ; PriorityState=EMMFStatePlaying) sl@0: //! 4. Capabilities sl@0: //! 5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz) sl@0: //! 6. Open file (Filename= {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test3.mp3) sl@0: //! 7. Play 20 seconds sl@0: //! 9. Stop sl@0: //! 9. Close file sl@0: //! 10. Delete DevSound instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStateRecording; FourCC ={SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState=EMMFStateRecording) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration and delay 10 seconds(Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlay48kStereoRecSpeaker.pcm) sl@0: //! 8. Set audio input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 9. Record 20 seconds sl@0: //! 10. Stop 5 seconds sl@0: //! 11. Close file sl@0: //! 12. Initialize DevSound (Mode = EMMFStatePlaying; FourCC ={SpecialFourCC,RAW}) sl@0: //! 13. Set Priority (Priority = {Priority,PriorityAudioPlayback} ; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback} ; PriorityState=EMMFStatePlaying) sl@0: //! 14. Set Configuration(Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz) sl@0: //! 15. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlay48kStereoRecSpeaker.pcm) sl@0: //! 16. Play EOF sl@0: //! 17. Close file sl@0: //! 18. Delete AudioInput instance sl@0: //! 19. Delete DevSound instance sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! AA_Audio routing - Audio playback 48k stereo recording from speaker sl@0: //! TEST_BLOCK 001 sl@0: //! AA_Audio routing - Audio playback 48k stereo recording from speaker sl@0: //! TEST_BLOCK 002 sl@0: //! AA_Audio routing - Audio playback 48k stereo recording from speaker sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0001-InitializeL_command02 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0001-SetPrioritySettings_command03 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0001-SetConfigL_command05 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0001-OpenFile_command06 sl@0: COMMAND !AsyncError=-13 devsound1 PlayInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0002-NewL_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0002-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0002-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0002-SetConfigL_command06 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0002-ReplaceFile_command07 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0002-SetAudioInput_command08 sl@0: COMMAND !AsyncError=-21 devsound1 RecordInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 5000000 sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0002-InitializeL_command13 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0002-SetPrioritySettings_command14 sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0002-SetConfigL_command15 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0013-0002-OpenFile_command16 sl@0: COMMAND devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0013 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0015 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0015 sl@0: //!@SYMAPI sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! CAudioInput::SetAudioInputL(TAudioInputArray ) sl@0: //!@SYMAuthor jguillermo sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Audio routing - Audio playback 8k mono recording from speaker sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) sl@0: //! 3. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone};PriorityState=EMMFStatePlaying) sl@0: //! 4. Capabilities sl@0: //! 5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz) sl@0: //! 6. Open file (Filename= {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_48k_256kbps_st_1kHzsine_st2mono.mp3) sl@0: //! 7. Play 20 seconds sl@0: //! 8. Stop sl@0: //! 9. Close file sl@0: //! 10. Delete DevSound instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStateRecording; FourCC ={SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration and delay 10 seconds(Channels = EMMFMono; Rate = EMMFSampleRate8000Hz) sl@0: //! 7. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlay8kMonoRecSpeaker.pcm) sl@0: //! 8. Set audio input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 9. Record 20 seconds sl@0: //! 10. Stop 5 seconds sl@0: //! 11. Close file sl@0: //! 12. Initialize DevSound (Mode = EMMFStatePlaying; FourCC ={SpecialFourCC,RAW}) sl@0: //! 13. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying) sl@0: //! 14. Set Configuration(Channels = EMMFMono; Rate = EMMFSampleRate8000Hz) sl@0: //! 15. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlay8kMonoRecSpeaker.pcm) sl@0: //! 16. Play EOF sl@0: //! 17. Close file sl@0: //! 18. Delete AudioInput instance sl@0: //! 19. Delete DevSound instance sl@0: //!@SYMTestStatus Implemented sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! AA_Audio routing - Audio playback 8k mono recording from speaker sl@0: //! TEST_BLOCK 001 sl@0: //! AA_Audio routing - Audio playback 8k mono recording from speaker sl@0: //! TEST_BLOCK 002 sl@0: //! AA_Audio routing - Audio playback 8k mono recording from speaker sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0001-InitializeL_command02 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0001-SetPrioritySettings_command03 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0001-SetConfigL_command05 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0001-OpenFile_command06 sl@0: COMMAND devsound1 PlayInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0002-NewL_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0002-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0002-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0002-SetConfigL_command06 sl@0: DELAY 10000000 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0002-ReplaceFile_command07 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0002-SetAudioInput_command08 sl@0: COMMAND !AsyncError=-21 devsound1 RecordInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 5000000 sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0002-InitializeL_command13 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0002-SetPrioritySettings_command14 sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0002-SetConfigL_command15 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0015-0002-OpenFile_command16 sl@0: COMMAND devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0015 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0016 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0016 sl@0: //!@SYMAPI sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! CAudioInput::SetAudioInputL(TAudioInputArray ) sl@0: //!@SYMAuthor jguillermo sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Audio routing - Audio playback 8k stereo recording from speaker sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) sl@0: //! 3. Set Priority (Priority = {Priority,PriorityAudioPlayback} ; Preference = {PriorityPreference,PriorityPreferenceNone};PriorityState=EMMFStatePlaying) sl@0: //! 4. Capabilities sl@0: //! 5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz) sl@0: //! 6. Open file (Filename= {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test3.mp3) sl@0: //! 7. Play 20 seconds sl@0: //! 8. Stop sl@0: //! 9. Close file sl@0: //! 10. Delete DevSound instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStateRecording; FourCC ={SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState=EMMFStateRecording) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration and delay 10 seconds(Channels = EMMFStereo; Rate = EMMFSampleRate8000Hz) sl@0: //! 7. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlay8kStereoRecSpeaker.pcm ) sl@0: //! 8. Set audio input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 9. Record 20 seconds sl@0: //! 10. Stop 5 seconds sl@0: //! 11. Close file sl@0: //! 12. Initialize DevSound (Mode = EMMFStatePlaying; FourCC ={SpecialFourCC,RAW}) sl@0: //! 13. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback} ; PriorityState=EMMFStatePlaying) sl@0: //! 14. Set Configuration(Channels = EMMFStereo; Rate = EMMFSampleRate8000Hz) sl@0: //! 15. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlay8kStereoRecSpeaker.pcm) sl@0: //! 16. Play EOF sl@0: //! 17. Close file sl@0: //! 18. Delete AudioInput instance sl@0: //! 19. Delete DevSound instance sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! AA_Audio routing - Audio playback 8k stereo recording from speaker sl@0: //! TEST_BLOCK 001 sl@0: //! AA_Audio routing - Audio playback 8k stereo recording from speaker sl@0: //! TEST_BLOCK 002 sl@0: //! AA_Audio routing - Audio playback 8k stereo recording from speaker sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0001-InitializeL_command02 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0001-SetPrioritySettings_command03 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0001-SetConfigL_command05 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0001-OpenFile_command06 sl@0: COMMAND devsound1 PlayInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0002-NewL_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0002-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0002-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0002-SetConfigL_command06 sl@0: DELAY 10000000 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0002-ReplaceFile_command07 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0002-SetAudioInput_command08 sl@0: COMMAND !AsyncError=-21 devsound1 RecordInitL sl@0: ASYNC_DELAY 20000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 5000000 sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0002-InitializeL_command13 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0002-SetPrioritySettings_command14 sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0002-SetConfigL_command15 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0016-0002-OpenFile_command16 sl@0: COMMAND devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0016 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0017 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0017 sl@0: //!@SYMAPI sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! TEST_BLOCK 001 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! TEST_BLOCK 002 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! TEST_BLOCK 003 sl@0: //! CMMFDevSound:: InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) sl@0: //! CMMFDevSound:: PlayInitL() sl@0: //! CMMFDevSound:: RecordInitL() sl@0: //! CAudioInput::SetAudioInputL(TAudioInputArray ) sl@0: //!@SYMAuthor jguillermo sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc Audio routing - Playback mixing 48k mono recording from speaker sl@0: //!@SYMTestActions sl@0: //! TEST_BLOCK 001 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) sl@0: //! 3. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone};PriorityState=EMMFStatePlaying) sl@0: //! 4. Capabilities sl@0: //! 5. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz) sl@0: //! 6. Open file (Filename= {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test3.mp3) sl@0: //! 7. Play 35 seconds sl@0: //! 8. Stop sl@0: //! 9. Close file sl@0: //! 10. Delete DevSound instance sl@0: //! TEST_BLOCK 002 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Initialize DevSound (Mode = EMMFStatePlaying; FourCC ={SpecialFourCC,RAW}) sl@0: //! 3. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone};PriorityState=EMMFStatePlaying) sl@0: //! 4. Capabilities sl@0: //! 5. Set Configuration and delay 5 seconds (Channels = EMMFStereo; Rate = EMMFSampleRate48000Hz) sl@0: //! 6. Open file (Filename= {drive,mmc}\multimedia\mmf\devsound\PCM\PCM_48k_16b_signed_st_Test1.pcm) sl@0: //! 7. Play 30 seconds sl@0: //! 8. Stop sl@0: //! 9. Close file sl@0: //! 10. Delete DevSound instance sl@0: //! sl@0: //! TEST_BLOCK 003 sl@0: //! 1. Create DevSound instance sl@0: //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1) sl@0: //! 3. Initialize DevSound (Mode = EMMFStateRecording; FourCC ={SpecialFourCC,RAW}) sl@0: //! 4. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording) sl@0: //! 5. Capabilities sl@0: //! 6. Set Configuration and delay 15 seconds(Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 7. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlayMixingRecSpeaker.pcm) sl@0: //! 8. Set audio input (AudioInput = Input_OutputtoSpeaker) sl@0: //! 9. Record 15 seconds sl@0: //! 10. Stop 15 seconds sl@0: //! 11. Close file sl@0: //! 12. Initialize DevSound (Mode = EMMFStatePlaying; FourCC ={SpecialFourCC,RAW}) sl@0: //! 13. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying) sl@0: //! 14. Set Configuration(Channels = EMMFMono; Rate = EMMFSampleRate48000Hz) sl@0: //! 15. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingPlayMixingRecSpeaker.pcm) sl@0: //! 16. Play EOF sl@0: //! 17. Close file sl@0: //! 18. Delete AudioInput instance sl@0: //! 19. Delete DevSound instance sl@0: //! sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! AA_Audio routing - Playback mixing 48k mono recording from speaker sl@0: //! TEST_BLOCK 001 sl@0: //! AA_Audio routing - Playback mixing 48k mono recording from speaker sl@0: //! TEST_BLOCK 002 sl@0: //! AA_Audio routing - Playback mixing 48k mono recording from speaker sl@0: //! TEST_BLOCK 003 sl@0: //! AA_Audio routing - Playback mixing 48k mono recording from speaker sl@0: //!@SYMTestType CIT sl@0: sl@0: sl@0: CONCURRENT sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0001-InitializeL_command02 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0001-SetPrioritySettings_command03 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0001-SetConfigL_command05 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0001-OpenFile_command06 sl@0: COMMAND !AsyncError=-13 devsound1 PlayInitL sl@0: ASYNC_DELAY 35000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0002-InitializeL_command02 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0002-SetPrioritySettings_command03 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0002-SetConfigL_command05 sl@0: DELAY 5000000 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0002-OpenFile_command06 sl@0: COMMAND !AsyncError=-13 devsound1 PlayInitL sl@0: ASYNC_DELAY 30000000 sl@0: COMMAND devsound1 Stop sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: sl@0: sl@0: sl@0: START_TEST_BLOCK 70 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_pr.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CAudioInput audioinput1 sl@0: COMMAND devsound1 NewL sl@0: COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0003-NewL_command02 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0003-InitializeL_command03 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0003-SetPrioritySettings_command04 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0003-SetConfigL_command06 sl@0: DELAY 15000000 sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0003-ReplaceFile_command07 sl@0: COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0003-SetAudioInput_command08 sl@0: COMMAND devsound1 RecordInitL sl@0: ASYNC_DELAY 15000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 15000000 sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0003-InitializeL_command12 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0003-SetPrioritySettings_command13 sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0003-SetConfigL_command14 sl@0: COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-Comb_Pr-0017-0003-OpenFile_command15 sl@0: COMMAND devsound1 PlayInitL sl@0: OUTSTANDING sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND audioinput1 ~ sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_PR-0017 sl@0: