audiostubs/devsoundextensions_stubs/audioinputcistub/src/AudioInputCIStub.cpp
changeset 0 0ce1b5ce9557
child 9 f935d51494d1
equal deleted inserted replaced
-1:000000000000 0:0ce1b5ce9557
       
     1 /*
       
     2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Audio Stubs -  AudioInput CI Stub
       
    15 *
       
    16 */
       
    17 
       
    18 #include <e32svr.h>
       
    19 #include "AudioInputCI.h"
       
    20 
       
    21 
       
    22 EXPORT_C CAudioInputCI* CAudioInputCI::NewL(CMMFDevSound& aDevSound)
       
    23 	{
       
    24 	CAudioInputCI* self = new(ELeave) CAudioInputCI(aDevSound);
       
    25 	return self;
       
    26 	}
       
    27 
       
    28 EXPORT_C CAudioInputCI* CAudioInputCI::NewL()
       
    29 	{
       
    30 	CAudioInputCI* self = new(ELeave) CAudioInputCI();
       
    31 	return self;
       
    32 	}
       
    33 
       
    34 CAudioInputCI::CAudioInputCI(CMMFDevSound& aDevSound) :
       
    35 	iDevSound(&aDevSound),
       
    36 	iInputArray(4)
       
    37 	{
       
    38 	}
       
    39 
       
    40 CAudioInputCI::CAudioInputCI() :
       
    41 	iInputArray(4)
       
    42 	{
       
    43 	}
       
    44 
       
    45 CAudioInputCI::~CAudioInputCI()
       
    46 	{
       
    47 	}
       
    48 
       
    49 CAudioInput::TAudioInputArray CAudioInputCI::AudioInput()
       
    50 	{
       
    51 #ifdef _DEBUG
       
    52 	RDebug::Print(_L("CAudioInputCI::AudioInput"));
       
    53 #endif
       
    54 	return iInputArray.Array();
       
    55 	}
       
    56 
       
    57 void CAudioInputCI::SetAudioInputL(TAudioInputArray aAudioInputs)
       
    58 	{
       
    59 #ifdef _DEBUG
       
    60 	RDebug::Print(_L("CAudioInputCI::SetAudioInputL"));
       
    61 #endif
       
    62 	iInputArray.Reset();
       
    63 	TInt count = aAudioInputs.Count();
       
    64 
       
    65 
       
    66 	for(int i=0; i<count; i++)
       
    67 		{
       
    68 		TAudioInputPreference audioInput = aAudioInputs[i];
       
    69 		iInputArray.AppendL(audioInput);
       
    70 		}
       
    71 	}
       
    72 
       
    73 
       
    74 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
    75 
       
    76 
       
    77 
       
    78 
       
    79 // End of File