os/mm/devsound/devsoundrefplugin/src/plugin/audio/MMFAudioCodecImplementationProxy.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 1997-2002 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description:
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
#include <ecom/ecom.h>
sl@0
    19
#include <ecom/implementationproxy.h> // For making it ECom plugin
sl@0
    20
#include <mmf/plugin/mmfhwdeviceimplementationuids.hrh>
sl@0
    21
#include "MMFpcm16ToPcm16HwDevice.h"
sl@0
    22
#include "MMFpcm16ToPcmU8HwDevice.h"
sl@0
    23
#include "MMFpcmU8ToPcm16HwDevice.h"
sl@0
    24
#include "MmfMuLawToPcm16hwDevice.h"
sl@0
    25
#include "MmfALawToPcm16HwDevice.h"
sl@0
    26
#include "MmfPcm16toAlawhwDevice.h"
sl@0
    27
#include "mmfpcm16toMulawhwdevice.h"
sl@0
    28
#include "mmfpcm16SwapEndianhwdevice.h"
sl@0
    29
#include "MMFpcm16ToPcmU8HwDevice.h"
sl@0
    30
#include "mmfpcmU16TopcmS16HwDevice.h"
sl@0
    31
#include "mmfpcmU16BeToPcmS16HwDevice.h"
sl@0
    32
#include "mmfpcmS8ToPcmS16HwDevice.h"
sl@0
    33
#include "mmfpcmS16topcmU16Codec.h"
sl@0
    34
#include "mmfpcmS16PcmS8HwDevice.h"
sl@0
    35
#include "mmfpcm16topcmU16BEHwDevice.h"
sl@0
    36
#include "MmfImaAdpcmtopcm16hwdevice.h"
sl@0
    37
#include "mmfpcmU16BeToPcmS16HwDevice.h"
sl@0
    38
#include "mmfpcm16ToImaAdpcm.h"
sl@0
    39
sl@0
    40
sl@0
    41
sl@0
    42
// _________________________________________________________________________
sl@0
    43
// Exported proxy for instantiation method resolution
sl@0
    44
// Define the interface UIDs
sl@0
    45
//
sl@0
    46
const TImplementationProxy ImplementationTable[] =
sl@0
    47
	{
sl@0
    48
        IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDevicePCM16ToPCM16,    CMMFPcm16ToPcm16HwDevice::NewL),
sl@0
    49
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDevicePCM16ToPCMU8,    CMMFPcm16ToPcmU8HwDevice::NewL),
sl@0
    50
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDevicePCMU8ToPCM16,    CMMFPcmU8ToPcm16HwDevice::NewL),
sl@0
    51
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDeviceMulawToPCM16,    CMMFMulawToPcm16CodecHwDevice::NewL),
sl@0
    52
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDeviceAlawToPCM16,     CMMFAlawToPcm16CodecHwDevice::NewL),
sl@0
    53
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDevicePCM16ToMuLaw,    CMMFPcm16ToMulawHwDevice::NewL),
sl@0
    54
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDevicePCM16ToALaw,     CMMFPcm16ToAlawHwDevice::NewL),
sl@0
    55
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDevicePCM16toPCM16B,   CMMFPcm16SwapEndianHwDevice::NewL ),		
sl@0
    56
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDeviceS16ToPCMU8,      CMMFPcm16ToPcmU8HwDevice::NewL ),
sl@0
    57
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDeviceS16ToPCMU16,     CMMFPcm16ToPcmU16HwDevice::NewL ),	
sl@0
    58
		IMPLEMENTATION_PROXY_ENTRY(KMMFUidHwDevicePCM16toPCMU16B,  CMMFPcm16ToPcmU16BEHwDevice::NewL),
sl@0
    59
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDevicePCM8ToPCM16,     CMMFPcm8ToPcm16HwDevice::NewL ),
sl@0
    60
		IMPLEMENTATION_PROXY_ENTRY(KMMFUidHwDevicePCM16toPCMU16B,  CMMFPcm16ToPcmU16BEHwDevice::NewL ),
sl@0
    61
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDeviceS16ToPCMU16,     CMMFPcm16ToPcmU16HwDevice::NewL ),
sl@0
    62
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDeviceU16ToPCMS16,     CMMFPcmU16ToPcm16HwDevice::NewL ),
sl@0
    63
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDeviceS16ToPCMS8,      CMMFPcmS16ToPcmS8HwDevice::NewL ),
sl@0
    64
		IMPLEMENTATION_PROXY_ENTRY(KMMFUidHwDevicePCM16BtoPCM16,   CMMFPcm16SwapEndianHwDevice::NewL),
sl@0
    65
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDeviceU16BEToPCMS16,   CMMFPcmU16BeToPcmS16HwDevice::NewL),
sl@0
    66
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDevicePCM16ToIMAADPCM, CMMFPcm16ToImaAdpcmHwDevice::NewL),
sl@0
    67
		IMPLEMENTATION_PROXY_ENTRY(KMmfUidHwDeviceIMAADPCMToPCM16, CMMFImaAdpcmToPcm16CodecHwDevice::NewL),
sl@0
    68
		IMPLEMENTATION_PROXY_ENTRY(KMMFUidHwDevicePCMU16toPCMU16B, CMMFPcm16SwapEndianHwDevice::NewL),
sl@0
    69
		IMPLEMENTATION_PROXY_ENTRY(KMMFUidHwDevicePCMU16BtoPCMU16, CMMFPcm16SwapEndianHwDevice::NewL),
sl@0
    70
    };
sl@0
    71
sl@0
    72
/**
sl@0
    73
Exported function, returns a pointer to implemenation table.
sl@0
    74
sl@0
    75
@param  aTableCount
sl@0
    76
        Reference to table count.
sl@0
    77
sl@0
    78
@return	Pointer to the implementation table.
sl@0
    79
*/
sl@0
    80
EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
sl@0
    81
	{
sl@0
    82
	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
sl@0
    83
	return ImplementationTable;
sl@0
    84
    }