audiostubs/devsoundextensions_stubs/audioeffectscistubs/roomlevelcistub/src/RoomLevelCIStub.cpp
changeset 43 e71858845f73
parent 40 b7e5ed8c1342
child 46 e1758cbb96ac
equal deleted inserted replaced
40:b7e5ed8c1342 43:e71858845f73
     1 /*
       
     2 * Copyright (c) 2004 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 -  Implementation of the RoomLevel effect Custom Interface class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifdef _DEBUG
       
    20 #include <e32svr.h>
       
    21 #endif
       
    22 #include "RoomLevelCI.h"
       
    23 
       
    24 
       
    25 EXPORT_C CRoomLevelCI* CRoomLevelCI::NewL(
       
    26 	CMMFDevSound& aDevSound )
       
    27 	{
       
    28 	CRoomLevelCI* self = new(ELeave) CRoomLevelCI(aDevSound);
       
    29 	return self;
       
    30 	}
       
    31 
       
    32 CRoomLevelCI::CRoomLevelCI(
       
    33 	CMMFDevSound& aDevSound )
       
    34 	:	iDevSound(&aDevSound )
       
    35 	{
       
    36     iRoomLevelData.iEnvironmentalReverbId = 123456;
       
    37 	iRoomLevelData.iStreamRoomLevel = 0;
       
    38 	iRoomLevelData.iStreamMinRoomLevel = 0;
       
    39 	iRoomLevelData.iStreamMaxRoomLevel = 1000;
       
    40 
       
    41 	}
       
    42 
       
    43 EXPORT_C CRoomLevelCI* CRoomLevelCI::NewL()
       
    44 	{
       
    45 	CRoomLevelCI* self = new(ELeave) CRoomLevelCI();
       
    46 	return self;
       
    47 	}
       
    48 
       
    49 CRoomLevelCI::CRoomLevelCI()
       
    50 	{
       
    51     iRoomLevelData.iEnvironmentalReverbId = 123456;
       
    52 	iRoomLevelData.iStreamRoomLevel = 0;
       
    53 	iRoomLevelData.iStreamMinRoomLevel = 0;
       
    54 	iRoomLevelData.iStreamMaxRoomLevel = 1000;
       
    55 	}
       
    56 
       
    57 CRoomLevelCI::~CRoomLevelCI()
       
    58 	{
       
    59 	}
       
    60 
       
    61 void CRoomLevelCI::ApplyL()
       
    62 	{
       
    63 #ifdef _DEBUG
       
    64     RDebug::Print(_L("CRoomLevelCI::ApplyL"));
       
    65 #endif
       
    66 
       
    67 	if (iObservers.Count() > 0)
       
    68 		{
       
    69 		iRoomLevelData.iEnabled = ETrue;
       
    70 		iObservers[0]->EffectChanged(this, (TUint8)MAudioEffectObserver::KEnabled);
       
    71 
       
    72 		}
       
    73 	}
       
    74 
       
    75 
       
    76 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
    77 
       
    78 
       
    79 
       
    80 // End of File