os/mm/devsoundextensions/effects/StereoWidening/StereoWideningEffect/Src/StereoWideningBase.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) 2006 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:   Implementation of the StereoWidening effect class
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
sl@0
    20
sl@0
    21
// INCLUDE FILES
sl@0
    22
sl@0
    23
#ifdef _DEBUG
sl@0
    24
#include <e32svr.h>
sl@0
    25
#endif
sl@0
    26
sl@0
    27
#include <StereoWideningData.h>
sl@0
    28
#include <StereoWideningBase.h>
sl@0
    29
#include <CustomInterfaceUtility.h>
sl@0
    30
#include "StereoWideningProxy.h"
sl@0
    31
#include <DrmAudioSamplePlayer.h>
sl@0
    32
#include <mdaaudioinputstream.h>
sl@0
    33
#include <mdaaudiooutputstream.h>
sl@0
    34
#include <mdaaudiotoneplayer.h>
sl@0
    35
#include <mmf/server/sounddevice.h>
sl@0
    36
#include <videoplayer.h>
sl@0
    37
sl@0
    38
#ifdef _DEBUG
sl@0
    39
#define DEBPRN0         RDebug::Printf( "%s", __PRETTY_FUNCTION__);
sl@0
    40
#define DEBPRN1(str)    RDebug::Printf( "%s %s", __PRETTY_FUNCTION__, str );
sl@0
    41
#else
sl@0
    42
#define DEBPRN0
sl@0
    43
#define DEBPRN1(str)
sl@0
    44
#endif
sl@0
    45
sl@0
    46
// ============================ MEMBER FUNCTIONS ===============================
sl@0
    47
sl@0
    48
// -----------------------------------------------------------------------------
sl@0
    49
// CStereoWidening::CStereoWidening
sl@0
    50
// C++ default constructor can NOT contain any code, that
sl@0
    51
// might leave.
sl@0
    52
// -----------------------------------------------------------------------------
sl@0
    53
//
sl@0
    54
EXPORT_C CStereoWidening::CStereoWidening()
sl@0
    55
    : 	iStereoWideningData(0, 0),
sl@0
    56
    	iDataPckgTo(iStereoWideningData)
sl@0
    57
    {
sl@0
    58
    }
sl@0
    59
sl@0
    60
// Destructor
sl@0
    61
EXPORT_C CStereoWidening::~CStereoWidening()
sl@0
    62
    {
sl@0
    63
    }
sl@0
    64
sl@0
    65
// -----------------------------------------------------------------------------
sl@0
    66
// CStereoWidening::NewL
sl@0
    67
// Static function for creating an instance of the StereoWidening object.
sl@0
    68
// -----------------------------------------------------------------------------
sl@0
    69
//
sl@0
    70
EXPORT_C CStereoWidening* CStereoWidening::NewL()
sl@0
    71
	{
sl@0
    72
	User::Leave(KErrNotSupported);
sl@0
    73
	return NULL;
sl@0
    74
	}
sl@0
    75
sl@0
    76
// -----------------------------------------------------------------------------
sl@0
    77
// CStereoWidening::NewL
sl@0
    78
// Static function for creating an instance of the StereoWidening object.
sl@0
    79
// -----------------------------------------------------------------------------
sl@0
    80
//
sl@0
    81
EXPORT_C CStereoWidening* CStereoWidening::NewL(CMdaAudioConvertUtility& aUtility ,	TBool aEnable, TInt8 aInitialLevel)
sl@0
    82
	{
sl@0
    83
sl@0
    84
    DEBPRN0;
sl@0
    85
   	CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
sl@0
    86
    CleanupStack::PushL(customInterface);
sl@0
    87
sl@0
    88
	CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)customInterface->CustomInterface(KUidStereoWideningEffect);
sl@0
    89
sl@0
    90
	if ( !stereoWideningProxy )
sl@0
    91
		{
sl@0
    92
		DEBPRN1("No Adaptation Support - leaving");
sl@0
    93
		User::Leave(KErrNotSupported);
sl@0
    94
		}
sl@0
    95
sl@0
    96
	CleanupStack::Pop(customInterface);
sl@0
    97
sl@0
    98
	stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
    99
sl@0
   100
	if(aEnable)
sl@0
   101
	{
sl@0
   102
		stereoWideningProxy->EnableL();
sl@0
   103
	}
sl@0
   104
sl@0
   105
    return stereoWideningProxy;
sl@0
   106
	}
sl@0
   107
sl@0
   108
// -----------------------------------------------------------------------------
sl@0
   109
// CStereoWidening::NewL
sl@0
   110
// Static function for creating an instance of the StereoWidening object.
sl@0
   111
// -----------------------------------------------------------------------------
sl@0
   112
//
sl@0
   113
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   114
	CMdaAudioInputStream& aUtility, TBool aEnable, TInt8 aInitialLevel )
sl@0
   115
	{
sl@0
   116
sl@0
   117
	DEBPRN0;
sl@0
   118
    CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)aUtility.CustomInterface(KUidStereoWideningEffect);
sl@0
   119
sl@0
   120
	if (stereoWideningProxy == NULL)
sl@0
   121
		{
sl@0
   122
        DEBPRN1("No Adaptation Support - leaving");
sl@0
   123
    	User::Leave(KErrNotSupported);
sl@0
   124
		}
sl@0
   125
sl@0
   126
    stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   127
sl@0
   128
	if(aEnable)
sl@0
   129
	    {
sl@0
   130
		stereoWideningProxy->EnableL();
sl@0
   131
	    }
sl@0
   132
sl@0
   133
    return stereoWideningProxy;
sl@0
   134
	}
sl@0
   135
sl@0
   136
// -----------------------------------------------------------------------------
sl@0
   137
// CStereoWidening::NewL
sl@0
   138
// Static function for creating an instance of the StereoWidening object.
sl@0
   139
// -----------------------------------------------------------------------------
sl@0
   140
//
sl@0
   141
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   142
	CMdaAudioOutputStream& aUtility, TBool aEnable, TInt8 aInitialLevel )
sl@0
   143
	{
sl@0
   144
sl@0
   145
    DEBPRN0;
sl@0
   146
    CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)aUtility.CustomInterface(KUidStereoWideningEffect);
sl@0
   147
sl@0
   148
	if (stereoWideningProxy == NULL)
sl@0
   149
		{
sl@0
   150
        DEBPRN1("No Adaptation Support - leaving");
sl@0
   151
    	User::Leave(KErrNotSupported);
sl@0
   152
		}
sl@0
   153
sl@0
   154
    stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   155
sl@0
   156
	if(aEnable)
sl@0
   157
	    {
sl@0
   158
		stereoWideningProxy->EnableL();
sl@0
   159
	    }
sl@0
   160
sl@0
   161
    return stereoWideningProxy;
sl@0
   162
	}
sl@0
   163
sl@0
   164
// -----------------------------------------------------------------------------
sl@0
   165
// CStereoWidening::NewL
sl@0
   166
// Static function for creating an instance of the StereoWidening object.
sl@0
   167
// -----------------------------------------------------------------------------
sl@0
   168
//
sl@0
   169
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   170
	CMdaAudioPlayerUtility& aUtility , TBool aEnable, TInt8 aInitialLevel)
sl@0
   171
	{
sl@0
   172
sl@0
   173
    DEBPRN0;
sl@0
   174
   	CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
sl@0
   175
    CleanupStack::PushL(customInterface);
sl@0
   176
sl@0
   177
	CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)customInterface->CustomInterface(KUidStereoWideningEffect);
sl@0
   178
sl@0
   179
	if ( !stereoWideningProxy )
sl@0
   180
		{
sl@0
   181
		DEBPRN1("No Adaptation Support - leaving");
sl@0
   182
		User::Leave(KErrNotSupported);
sl@0
   183
		}
sl@0
   184
sl@0
   185
	CleanupStack::Pop(customInterface);
sl@0
   186
sl@0
   187
	stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   188
sl@0
   189
	if(aEnable)
sl@0
   190
	{
sl@0
   191
		stereoWideningProxy->EnableL();
sl@0
   192
	}
sl@0
   193
sl@0
   194
    return stereoWideningProxy;
sl@0
   195
	}
sl@0
   196
sl@0
   197
// -----------------------------------------------------------------------------
sl@0
   198
// CStereoWidening::NewL
sl@0
   199
// Static function for creating an instance of the StereoWidening object.
sl@0
   200
// -----------------------------------------------------------------------------
sl@0
   201
//
sl@0
   202
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   203
	CMdaAudioRecorderUtility& aUtility,
sl@0
   204
	TBool aRecordStream, TBool aEnable, TInt8 aInitialLevel)
sl@0
   205
	{
sl@0
   206
sl@0
   207
    DEBPRN0;
sl@0
   208
   	CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility, aRecordStream);
sl@0
   209
    CleanupStack::PushL(customInterface);
sl@0
   210
sl@0
   211
	CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)customInterface->CustomInterface(KUidStereoWideningEffect);
sl@0
   212
sl@0
   213
	if ( !stereoWideningProxy )
sl@0
   214
		{
sl@0
   215
		DEBPRN1("No Adaptation Support - leaving");
sl@0
   216
		User::Leave(KErrNotSupported);
sl@0
   217
		}
sl@0
   218
sl@0
   219
	CleanupStack::Pop(customInterface);
sl@0
   220
sl@0
   221
	stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   222
sl@0
   223
	if(aEnable)
sl@0
   224
	{
sl@0
   225
		stereoWideningProxy->EnableL();
sl@0
   226
	}
sl@0
   227
sl@0
   228
    return stereoWideningProxy;
sl@0
   229
	}
sl@0
   230
sl@0
   231
// -----------------------------------------------------------------------------
sl@0
   232
// CStereoWidening::NewL
sl@0
   233
// Static function for creating an instance of the StereoWidening object.
sl@0
   234
// -----------------------------------------------------------------------------
sl@0
   235
//
sl@0
   236
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   237
	CMdaAudioToneUtility& aUtility, TBool aEnable, TInt8 aInitialLevel)
sl@0
   238
	{
sl@0
   239
sl@0
   240
	DEBPRN0;
sl@0
   241
    CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)aUtility.CustomInterface(KUidStereoWideningEffect);
sl@0
   242
sl@0
   243
	if (stereoWideningProxy == NULL)
sl@0
   244
		{
sl@0
   245
        DEBPRN1("No Adaptation Support - leaving");
sl@0
   246
    	User::Leave(KErrNotSupported);
sl@0
   247
		}
sl@0
   248
sl@0
   249
    stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   250
sl@0
   251
	if(aEnable)
sl@0
   252
	    {
sl@0
   253
		stereoWideningProxy->EnableL();
sl@0
   254
	    }
sl@0
   255
sl@0
   256
    return stereoWideningProxy;
sl@0
   257
	}
sl@0
   258
sl@0
   259
sl@0
   260
// -----------------------------------------------------------------------------
sl@0
   261
// CStereoWidening::NewL
sl@0
   262
// Static function for creating an instance of the StereoWidening object.
sl@0
   263
// -----------------------------------------------------------------------------
sl@0
   264
//
sl@0
   265
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   266
	CMMFDevSound& aDevSound, TBool aEnable, TInt8 aInitialLevel)
sl@0
   267
	{
sl@0
   268
sl@0
   269
	DEBPRN0;
sl@0
   270
    CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)aDevSound.CustomInterface(KUidStereoWideningEffect);
sl@0
   271
sl@0
   272
	if (stereoWideningProxy == NULL)
sl@0
   273
		{
sl@0
   274
        DEBPRN1("No Adaptation Support - leaving");
sl@0
   275
    	User::Leave(KErrNotSupported);
sl@0
   276
		}
sl@0
   277
sl@0
   278
    stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   279
sl@0
   280
	if(aEnable)
sl@0
   281
	    {
sl@0
   282
		stereoWideningProxy->EnableL();
sl@0
   283
	    }
sl@0
   284
sl@0
   285
    return stereoWideningProxy;
sl@0
   286
	}
sl@0
   287
sl@0
   288
sl@0
   289
sl@0
   290
// -----------------------------------------------------------------------------
sl@0
   291
// CStereoWidening::NewL
sl@0
   292
// Static function for creating an instance of the StereoWidening object.
sl@0
   293
// -----------------------------------------------------------------------------
sl@0
   294
//
sl@0
   295
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   296
	CCustomCommandUtility* aUtility , TBool aEnable, TInt8 aInitialLevel)
sl@0
   297
	{
sl@0
   298
sl@0
   299
    DEBPRN0;
sl@0
   300
   	CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
sl@0
   301
    CleanupStack::PushL(customInterface);
sl@0
   302
sl@0
   303
	CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)customInterface->CustomInterface(KUidStereoWideningEffect);
sl@0
   304
sl@0
   305
	if ( !stereoWideningProxy )
sl@0
   306
		{
sl@0
   307
		DEBPRN1("No Adaptation Support - leaving");
sl@0
   308
		User::Leave(KErrNotSupported);
sl@0
   309
		}
sl@0
   310
sl@0
   311
	CleanupStack::Pop(customInterface);
sl@0
   312
sl@0
   313
	stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   314
sl@0
   315
	if(aEnable)
sl@0
   316
	{
sl@0
   317
		stereoWideningProxy->EnableL();
sl@0
   318
	}
sl@0
   319
sl@0
   320
    return stereoWideningProxy;
sl@0
   321
	}
sl@0
   322
sl@0
   323
// -----------------------------------------------------------------------------
sl@0
   324
// CStereoWidening::NewL
sl@0
   325
// Static function for creating an instance of the StereoWidening object.
sl@0
   326
// -----------------------------------------------------------------------------
sl@0
   327
//
sl@0
   328
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   329
	MCustomInterface& aCustomInterface , TBool aEnable, TInt8 aInitialLevel)
sl@0
   330
	{
sl@0
   331
sl@0
   332
    DEBPRN0;
sl@0
   333
	CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)aCustomInterface.CustomInterface(KUidStereoWideningEffect);
sl@0
   334
sl@0
   335
	if ( !stereoWideningProxy )
sl@0
   336
		{
sl@0
   337
		DEBPRN1("No Adaptation Support - leaving");
sl@0
   338
		User::Leave(KErrNotSupported);
sl@0
   339
		}
sl@0
   340
sl@0
   341
	stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   342
sl@0
   343
	if(aEnable)
sl@0
   344
    	{
sl@0
   345
		stereoWideningProxy->EnableL();
sl@0
   346
	    }
sl@0
   347
sl@0
   348
    return stereoWideningProxy;
sl@0
   349
	}
sl@0
   350
sl@0
   351
// -----------------------------------------------------------------------------
sl@0
   352
// CStereoWidening::NewL
sl@0
   353
// Static function for creating an instance of the StereoWidening object.
sl@0
   354
// -----------------------------------------------------------------------------
sl@0
   355
//
sl@0
   356
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   357
	CMidiClientUtility& aUtility , TBool aEnable, TInt8 aInitialLevel )
sl@0
   358
	{
sl@0
   359
sl@0
   360
    DEBPRN0;
sl@0
   361
   	CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
sl@0
   362
    CleanupStack::PushL(customInterface);
sl@0
   363
sl@0
   364
	CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)customInterface->CustomInterface(KUidStereoWideningEffect);
sl@0
   365
sl@0
   366
	if ( !stereoWideningProxy )
sl@0
   367
		{
sl@0
   368
		DEBPRN1("No Adaptation Support - leaving");
sl@0
   369
		User::Leave(KErrNotSupported);
sl@0
   370
		}
sl@0
   371
sl@0
   372
	CleanupStack::Pop(customInterface);
sl@0
   373
sl@0
   374
	stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   375
sl@0
   376
	if(aEnable)
sl@0
   377
	    {
sl@0
   378
		stereoWideningProxy->EnableL();
sl@0
   379
	    }
sl@0
   380
sl@0
   381
    return stereoWideningProxy;
sl@0
   382
	}
sl@0
   383
sl@0
   384
// -----------------------------------------------------------------------------
sl@0
   385
// CStereoWidening::NewL
sl@0
   386
// Static function for creating an instance of the StereoWidening object.
sl@0
   387
// -----------------------------------------------------------------------------
sl@0
   388
//
sl@0
   389
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   390
	CDrmPlayerUtility& aUtility , TBool aEnable, TInt8 aInitialLevel )
sl@0
   391
	{
sl@0
   392
    DEBPRN0;
sl@0
   393
   	CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
sl@0
   394
    CleanupStack::PushL(customInterface);
sl@0
   395
sl@0
   396
	CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)customInterface->CustomInterface(KUidStereoWideningEffect);
sl@0
   397
sl@0
   398
	if ( !stereoWideningProxy )
sl@0
   399
		{
sl@0
   400
		DEBPRN1("No Adaptation Support - leaving");
sl@0
   401
		User::Leave(KErrNotSupported);
sl@0
   402
		}
sl@0
   403
sl@0
   404
	CleanupStack::Pop(customInterface);
sl@0
   405
sl@0
   406
	stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   407
sl@0
   408
	if(aEnable)
sl@0
   409
	    {
sl@0
   410
		stereoWideningProxy->EnableL();
sl@0
   411
	    }
sl@0
   412
sl@0
   413
    return stereoWideningProxy;
sl@0
   414
	}
sl@0
   415
sl@0
   416
// -----------------------------------------------------------------------------
sl@0
   417
// CStereoWidening::NewL
sl@0
   418
// Static function for creating an instance of the StereoWidening object.
sl@0
   419
// -----------------------------------------------------------------------------
sl@0
   420
//
sl@0
   421
EXPORT_C CStereoWidening* CStereoWidening::NewL(
sl@0
   422
	CVideoPlayerUtility& aUtility , TBool aEnable, TInt8 aInitialLevel )
sl@0
   423
	{
sl@0
   424
    DEBPRN0;
sl@0
   425
   	CCustomInterfaceUtility* customInterface = CCustomInterfaceUtility::NewL(aUtility);
sl@0
   426
    CleanupStack::PushL(customInterface);
sl@0
   427
sl@0
   428
	CStereoWideningProxy* stereoWideningProxy = (CStereoWideningProxy*)customInterface->CustomInterface(KUidStereoWideningEffect);
sl@0
   429
sl@0
   430
	if ( !stereoWideningProxy )
sl@0
   431
		{
sl@0
   432
		DEBPRN1("No Adaptation Support - leaving");
sl@0
   433
		User::Leave(KErrNotSupported);
sl@0
   434
		}
sl@0
   435
sl@0
   436
	CleanupStack::Pop(customInterface);
sl@0
   437
sl@0
   438
	stereoWideningProxy->SetStereoWideningLevelL(aInitialLevel);
sl@0
   439
sl@0
   440
	if(aEnable)
sl@0
   441
	    {
sl@0
   442
		stereoWideningProxy->EnableL();
sl@0
   443
	    }
sl@0
   444
sl@0
   445
    return stereoWideningProxy;
sl@0
   446
	}
sl@0
   447
sl@0
   448
// -----------------------------------------------------------------------------
sl@0
   449
// CStereoWidening::BandLevel
sl@0
   450
// -----------------------------------------------------------------------------
sl@0
   451
//
sl@0
   452
sl@0
   453
EXPORT_C TBool CStereoWidening::IsContinuousLevelSupported() const
sl@0
   454
	{
sl@0
   455
		return iStereoWideningData.iContinuousLevelSupported;
sl@0
   456
	}
sl@0
   457
sl@0
   458
// -----------------------------------------------------------------------------
sl@0
   459
// CStereoWidening::BandWidth
sl@0
   460
// -----------------------------------------------------------------------------
sl@0
   461
//
sl@0
   462
sl@0
   463
EXPORT_C void CStereoWidening::SetStereoWideningLevelL( TUint8 aLevel )
sl@0
   464
	{
sl@0
   465
	iStereoWideningData.iLevel = aLevel;
sl@0
   466
	}
sl@0
   467
sl@0
   468
// -----------------------------------------------------------------------------
sl@0
   469
// CStereoWidening::CenterFrequency
sl@0
   470
// -----------------------------------------------------------------------------
sl@0
   471
//
sl@0
   472
EXPORT_C TUint8 CStereoWidening::StereoWideningLevel() const
sl@0
   473
	{
sl@0
   474
		return iStereoWideningData.iLevel;
sl@0
   475
	}
sl@0
   476
sl@0
   477
sl@0
   478
// -----------------------------------------------------------------------------
sl@0
   479
// CStereoWidening::Uid
sl@0
   480
// -----------------------------------------------------------------------------
sl@0
   481
//
sl@0
   482
EXPORT_C TUid CStereoWidening::Uid() const
sl@0
   483
	{
sl@0
   484
	return KUidStereoWideningEffect;
sl@0
   485
	}
sl@0
   486
sl@0
   487
sl@0
   488
// -----------------------------------------------------------------------------
sl@0
   489
// CStereoWidening::DoEffectData
sl@0
   490
// -----------------------------------------------------------------------------
sl@0
   491
//
sl@0
   492
EXPORT_C const TDesC8& CStereoWidening::DoEffectData()
sl@0
   493
	{
sl@0
   494
    DEBPRN0;
sl@0
   495
	iDataPckgTo = iStereoWideningData;
sl@0
   496
	return iDataPckgTo;
sl@0
   497
	}
sl@0
   498
sl@0
   499
// -----------------------------------------------------------------------------
sl@0
   500
// CStereoWidening::SetEffectData
sl@0
   501
// -----------------------------------------------------------------------------
sl@0
   502
//
sl@0
   503
EXPORT_C void CStereoWidening::SetEffectData(
sl@0
   504
	const TDesC8& aEffectDataBuffer )
sl@0
   505
	{
sl@0
   506
    DEBPRN0;
sl@0
   507
	TEfStereoWideningDataPckg dataPckg;
sl@0
   508
	dataPckg.Copy(aEffectDataBuffer);
sl@0
   509
	iStereoWideningData = dataPckg();
sl@0
   510
	iEnabled = iStereoWideningData.iEnabled;
sl@0
   511
	iEnforced = iStereoWideningData.iEnforced;
sl@0
   512
	iHaveUpdateRights = iStereoWideningData.iHaveUpdateRights;
sl@0
   513
	}
sl@0
   514
sl@0
   515
sl@0
   516
// ========================== OTHER EXPORTED FUNCTIONS =========================
sl@0
   517
sl@0
   518
// End of File
sl@0
   519