//
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description: 
//
//


// IID numbers for interfaces to mention during object creation
//	 XA_IID_NULL                    	1
//	 XA_IID_OBJECT                    	2
//	 XA_IID_CONFIGEXTENSION             3
//	 XA_IID_DYNAMICINTERFACEMANAGEMENT  4
//	 XA_IID_ENGINE                    	5
//	 XA_IID_THREADSYNC                  6
//	 XA_IID_PLAY                    	7
//	 XA_IID_PLAYBACKRATE                8
//	 XA_IID_PREFETCHSTATUS              9
//	 XA_IID_SEEK                    	10
//	 XA_IID_VOLUME                    	11
//	 XA_IID_IMAGECONTROLS               12
//	 XA_IID_IMAGEEFFECTS                13
//	 XA_IID_VIDEOPOSTPROCESSING         14
//	 XA_IID_RECORD                    	15
//	 XA_IID_SNAPSHOT                    16
//	 XA_IID_METADATAEXTRACTION          17
//	 XA_IID_METADATAINSERTION           18
//	 XA_IID_METADATATRAVERSAL           19
//	 XA_IID_DYNAMICSOURCE               20
//	 XA_IID_CAMERACAPABILITIES          21
//	 XA_IID_CAMERA                    	22
//	 XA_IID_AUDIOIODEVICECAPABILITIES   23
//	 XA_IID_DEVICEVOLUME                24
//	 XA_IID_EQUALIZER                   25
//	 XA_IID_OUTPUTMIX                   26
//	 XA_IID_RADIO                    	27
//	 XA_IID_RDS                         28
//	 XA_IID_VIBRA                    	29
//	 XA_IID_LED                         30
//	 XA_IID_AUDIODECODERCAPABILITIES    31
//	 XA_IID_AUDIOENCODER                32
//	 XA_IID_AUDIOENCODERCAPABILITIES    33
//	 XA_IID_IMAGEENCODERCAPABILITIES    34
//	 XA_IID_IMAGEDECODERCAPABILITIES    35
//	 XA_IID_IMAGEENCODER                36
//	 XA_IID_VIDEODECODERCAPABILITIES    37
//	 XA_IID_VIDEOENCODER                38
//	 XA_IID_VIDEOENCODERCAPABILITIES    39
//	 XA_IID_STREAMINFORMATION           40

[Test]
title 7.1 AudioEncoderItf GetEncoderSettings
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/record.wav
ALImpl al_SetDataFormat 1 audio/wav 15
ALImpl al_SetDataSink 1 1 5
ALImpl al_SetDataLocator 3 1 2910736385 1
ALImpl al_SetDataSource 3 1 1
ALImpl al_engitf_CreateMediaRecorder
ALImpl al_objitf_Realize 5 0
ALImpl al_objitf_GetInterface 5 32
ALImpl al_audioencoderitf_GetEncoderSettings
ALImpl al_objitf_Destroy 5
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 

[Test]
title 7.2 AudioEncoderItf SetEncoderSettings
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize 1 0
ALImpl al_objitf_GetInterface 1 5
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/record.wav
ALImpl al_SetDataFormat 1 audio/wav 15
ALImpl al_SetDataSink 1 1 5
ALImpl al_SetDataLocator 3 1 2910736385 1
ALImpl al_SetDataSource 3 1 1
ALImpl al_engitf_CreateMediaRecorder
ALImpl al_objitf_Realize 5 0
ALImpl al_objitf_GetInterface 5 32
ALImpl al_audioencoderitf_SetEncoderSettings 13 1 2 2 44100 128 8 0 0 0 0 0 0 0
ALImpl al_objitf_Destroy 5
ALImpl al_objitf_Destroy 1
delete ALImpl
[Endtest] 