os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/advancedaacencodesettingstestdevice.cpp
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/advancedaacencodesettingstestdevice.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,135 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#include <mmf/server/mmfswcodecwrappercustominterfacesuids.hrh>
1.20 +#include "advancedaacencodesettingstestdevice.h"
1.21 +#include "cidefine.h"
1.22 +
1.23 +/*****************************************************************************/
1.24 +// Implementation
1.25 +
1.26 +CMMFHwDevice* CAdvancedAacEncodeSettingsTestDevice::NewL()
1.27 + {
1.28 + CAdvancedAacEncodeSettingsTestDevice* self = new(ELeave) CAdvancedAacEncodeSettingsTestDevice();
1.29 + CleanupStack::PushL(self);
1.30 + self->ConstructL();
1.31 + CleanupStack::Pop(self);
1.32 + return self;
1.33 + }
1.34 +
1.35 +/*****************************************************************************/
1.36 +CAdvancedAacEncodeSettingsTestDevice::~CAdvancedAacEncodeSettingsTestDevice()
1.37 + {
1.38 + }
1.39 +
1.40 +/*****************************************************************************/
1.41 +CAdvancedAacEncodeSettingsTestDevice::CAdvancedAacEncodeSettingsTestDevice()
1.42 + {
1.43 + }
1.44 +
1.45 +/*****************************************************************************/
1.46 +void CAdvancedAacEncodeSettingsTestDevice::ConstructL()
1.47 + {
1.48 + }
1.49 +
1.50 +/*****************************************************************************/
1.51 +TInt CAdvancedAacEncodeSettingsTestDevice::Start(TDeviceFunc /*aFuncCmd*/, TDeviceFlow /*aFlowCmd*/)
1.52 + {
1.53 + return 0;
1.54 + }
1.55 +
1.56 +/*****************************************************************************/
1.57 +TInt CAdvancedAacEncodeSettingsTestDevice::Stop()
1.58 + {
1.59 + return 0;
1.60 + }
1.61 +
1.62 +/*****************************************************************************/
1.63 +TInt CAdvancedAacEncodeSettingsTestDevice::Pause()
1.64 + {
1.65 + return 0;
1.66 + }
1.67 +
1.68 +/*****************************************************************************/
1.69 +TInt CAdvancedAacEncodeSettingsTestDevice::Init(THwDeviceInitParams& /*aDevInfo*/)
1.70 + {
1.71 + return 0;
1.72 + }
1.73 +
1.74 +/*****************************************************************************/
1.75 +TAny* CAdvancedAacEncodeSettingsTestDevice::CustomInterface(TUid aInterfaceId)
1.76 + {
1.77 + MMMFAdvancedAACEncodeSettings* interface = NULL;
1.78 +
1.79 + // DevSound initialisation requires something to be returned for both of
1.80 + // these two uids: KMmfPlaySettingsCustomInterface, KMmfRecordSettingsCustomInterface
1.81 + if ((aInterfaceId == KUidAdvancedAACEncoderSettings) || // This interface
1.82 + (aInterfaceId.iUid == KMmfPlaySettingsCustomInterface) ||
1.83 + (aInterfaceId.iUid == KMmfRecordSettingsCustomInterface))
1.84 + {
1.85 + interface = this;
1.86 + }
1.87 +
1.88 + return interface;
1.89 + }
1.90 +
1.91 +/*****************************************************************************/
1.92 +TInt CAdvancedAacEncodeSettingsTestDevice::ThisHwBufferFilled(CMMFBuffer& /*aFillBufferPtr*/)
1.93 + {
1.94 + return 0;
1.95 + }
1.96 +
1.97 +/*****************************************************************************/
1.98 +TInt CAdvancedAacEncodeSettingsTestDevice::ThisHwBufferEmptied(CMMFBuffer& /*aEmptyBufferPtr*/)
1.99 + {
1.100 + return 0;
1.101 + }
1.102 +
1.103 +/*****************************************************************************/
1.104 +TInt CAdvancedAacEncodeSettingsTestDevice::SetConfig(TTaskConfig& /*aConfig*/)
1.105 + {
1.106 + return 0;
1.107 + }
1.108 +
1.109 +/*****************************************************************************/
1.110 +TInt CAdvancedAacEncodeSettingsTestDevice::StopAndDeleteCodec()
1.111 + {
1.112 + return 0;
1.113 + }
1.114 +
1.115 +/*****************************************************************************/
1.116 +TInt CAdvancedAacEncodeSettingsTestDevice::DeleteCodec()
1.117 + {
1.118 + return 0;
1.119 + }
1.120 +
1.121 +/*****************************************************************************/
1.122 +CMMFSwCodec& CAdvancedAacEncodeSettingsTestDevice::Codec()
1.123 + {
1.124 + return *iCodec;
1.125 + }
1.126 +
1.127 +/*****************************************************************************/
1.128 +TInt CAdvancedAacEncodeSettingsTestDevice::SetAACEncodeBitrateMode(TAACBitrateMode aBitrateMode)
1.129 + {
1.130 + iBitrateMode = aBitrateMode;
1.131 + return KErrNone;
1.132 + }
1.133 +
1.134 +TInt CAdvancedAacEncodeSettingsTestDevice::GetAACEncodeBitrateMode(TAACBitrateMode& aBitrateMode)
1.135 + {
1.136 + aBitrateMode = iBitrateMode;
1.137 + return KErrNone;
1.138 + }