os/mm/mmhais/a3facl/src/audiodevicesink/logicalaudiodevicesink.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2007-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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 
    18 #include "logicalaudiodevicesink.h"
    19 #include <a3f/audioprocessingunittypeuids.h>
    20 
    21 #include <ecom/implementationproxy.h> // For making it ECom plugin
    22 
    23 // Map the interface implementation UIDs to implementation factory functions
    24 const TImplementationProxy ImplementationTable[] =
    25 	{
    26 	IMPLEMENTATION_PROXY_ENTRY(KAudioDeviceSinkUid,  CLogicalAudioDeviceSink::NewL),
    27 	};
    28 
    29 // Exported proxy for instantiation method resolution.
    30 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
    31 	{
    32 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
    33 	return ImplementationTable;
    34 	}
    35 
    36 // ---------------------------------------------------------------------------
    37 // Constructor
    38 // ---------------------------------------------------------------------------
    39 CLogicalAudioDeviceSink::CLogicalAudioDeviceSink(TAny* aParam) : CAudioProcessingUnit(aParam)
    40 	{
    41 	TRACE_CREATE();
    42 	DP_CONTEXT(CLogicalAudioDeviceSink::CLogicalAudioDeviceSink *CD1*, CtxDevSound, DPLOCAL);
    43 	DP_IN();
    44 	DP_OUT();
    45 	}
    46 
    47 // ---------------------------------------------------------------------------
    48 // Factory method
    49 // ---------------------------------------------------------------------------
    50 //
    51 CLogicalAudioDeviceSink* CLogicalAudioDeviceSink::NewL(TAny* aParam)
    52 	{
    53 	DP_STATIC_CONTEXT(CLogicalAudioDeviceSink::NewL *CD0*, CtxDevSound, DPLOCAL);
    54 	DP_IN();
    55 	CLogicalAudioDeviceSink* self = new(ELeave)CLogicalAudioDeviceSink(aParam);
    56 	DP0_RET(self, "0x%x");
    57 	}
    58 
    59 // ---------------------------------------------------------------------------
    60 // Destructor
    61 // ---------------------------------------------------------------------------
    62 CLogicalAudioDeviceSink::~CLogicalAudioDeviceSink()
    63 	{
    64 	DP_CONTEXT(CLogicalAudioDeviceSink::RegisterComponentObserver *CD1*, CtxDevSound, DPLOCAL);
    65 	DP_IN();
    66 	DP_OUT();
    67 	}
    68 
    69 // ---------------------------------------------------------------------------
    70 // CLogicalAudioDeviceSink::IsTypeOf
    71 // ---------------------------------------------------------------------------
    72 TBool CLogicalAudioDeviceSink::IsTypeOf(TUid aTypeId) const
    73 	{
    74 	DP_CONTEXT(CLogicalAudioDeviceSink::IsTypeOf *CD1*, CtxDevSound, DPLOCAL);
    75 	DP_IN();
    76 	TBool result = EFalse;
    77 	if (iType == aTypeId)
    78 		{
    79 		result = ETrue;
    80 		}
    81 	DP0_RET(result, "%d");
    82 	}
    83 	
    84 // end of file