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.
sl@0
     1
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
sl@0
    17
sl@0
    18
#include "logicalaudiodevicesink.h"
sl@0
    19
#include <a3f/audioprocessingunittypeuids.h>
sl@0
    20
sl@0
    21
#include <ecom/implementationproxy.h> // For making it ECom plugin
sl@0
    22
sl@0
    23
// Map the interface implementation UIDs to implementation factory functions
sl@0
    24
const TImplementationProxy ImplementationTable[] =
sl@0
    25
	{
sl@0
    26
	IMPLEMENTATION_PROXY_ENTRY(KAudioDeviceSinkUid,  CLogicalAudioDeviceSink::NewL),
sl@0
    27
	};
sl@0
    28
sl@0
    29
// Exported proxy for instantiation method resolution.
sl@0
    30
EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
sl@0
    31
	{
sl@0
    32
	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
sl@0
    33
	return ImplementationTable;
sl@0
    34
	}
sl@0
    35
sl@0
    36
// ---------------------------------------------------------------------------
sl@0
    37
// Constructor
sl@0
    38
// ---------------------------------------------------------------------------
sl@0
    39
CLogicalAudioDeviceSink::CLogicalAudioDeviceSink(TAny* aParam) : CAudioProcessingUnit(aParam)
sl@0
    40
	{
sl@0
    41
	TRACE_CREATE();
sl@0
    42
	DP_CONTEXT(CLogicalAudioDeviceSink::CLogicalAudioDeviceSink *CD1*, CtxDevSound, DPLOCAL);
sl@0
    43
	DP_IN();
sl@0
    44
	DP_OUT();
sl@0
    45
	}
sl@0
    46
sl@0
    47
// ---------------------------------------------------------------------------
sl@0
    48
// Factory method
sl@0
    49
// ---------------------------------------------------------------------------
sl@0
    50
//
sl@0
    51
CLogicalAudioDeviceSink* CLogicalAudioDeviceSink::NewL(TAny* aParam)
sl@0
    52
	{
sl@0
    53
	DP_STATIC_CONTEXT(CLogicalAudioDeviceSink::NewL *CD0*, CtxDevSound, DPLOCAL);
sl@0
    54
	DP_IN();
sl@0
    55
	CLogicalAudioDeviceSink* self = new(ELeave)CLogicalAudioDeviceSink(aParam);
sl@0
    56
	DP0_RET(self, "0x%x");
sl@0
    57
	}
sl@0
    58
sl@0
    59
// ---------------------------------------------------------------------------
sl@0
    60
// Destructor
sl@0
    61
// ---------------------------------------------------------------------------
sl@0
    62
CLogicalAudioDeviceSink::~CLogicalAudioDeviceSink()
sl@0
    63
	{
sl@0
    64
	DP_CONTEXT(CLogicalAudioDeviceSink::RegisterComponentObserver *CD1*, CtxDevSound, DPLOCAL);
sl@0
    65
	DP_IN();
sl@0
    66
	DP_OUT();
sl@0
    67
	}
sl@0
    68
sl@0
    69
// ---------------------------------------------------------------------------
sl@0
    70
// CLogicalAudioDeviceSink::IsTypeOf
sl@0
    71
// ---------------------------------------------------------------------------
sl@0
    72
TBool CLogicalAudioDeviceSink::IsTypeOf(TUid aTypeId) const
sl@0
    73
	{
sl@0
    74
	DP_CONTEXT(CLogicalAudioDeviceSink::IsTypeOf *CD1*, CtxDevSound, DPLOCAL);
sl@0
    75
	DP_IN();
sl@0
    76
	TBool result = EFalse;
sl@0
    77
	if (iType == aTypeId)
sl@0
    78
		{
sl@0
    79
		result = ETrue;
sl@0
    80
		}
sl@0
    81
	DP0_RET(result, "%d");
sl@0
    82
	}
sl@0
    83
	
sl@0
    84
// end of file