diff -r e71858845f73 -r e1758cbb96ac audiostubs/devsoundextensions_stubs/audioinputcistub/src/AudioInputCIStub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audiostubs/devsoundextensions_stubs/audioinputcistub/src/AudioInputCIStub.cpp Mon Oct 04 00:04:35 2010 +0300 @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2005-2006 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: Audio Stubs - AudioInput CI Stub +* +*/ + +#include +#include "AudioInputCI.h" + + +EXPORT_C CAudioInputCI* CAudioInputCI::NewL(CMMFDevSound& aDevSound) + { + CAudioInputCI* self = new(ELeave) CAudioInputCI(aDevSound); + return self; + } + +EXPORT_C CAudioInputCI* CAudioInputCI::NewL() + { + CAudioInputCI* self = new(ELeave) CAudioInputCI(); + return self; + } + +CAudioInputCI::CAudioInputCI(CMMFDevSound& aDevSound) : + iDevSound(&aDevSound), + iInputArray(4) + { + } + +CAudioInputCI::CAudioInputCI() : + iInputArray(4) + { + } + +CAudioInputCI::~CAudioInputCI() + { + } + +CAudioInput::TAudioInputArray CAudioInputCI::AudioInput() + { +#ifdef _DEBUG + RDebug::Print(_L("CAudioInputCI::AudioInput")); +#endif + return iInputArray.Array(); + } + +void CAudioInputCI::SetAudioInputL(TAudioInputArray aAudioInputs) + { +#ifdef _DEBUG + RDebug::Print(_L("CAudioInputCI::SetAudioInputL")); +#endif + iInputArray.Reset(); + TInt count = aAudioInputs.Count(); + + + for(int i=0; i