os/mm/devsound/devsoundpluginsupport/inc/plugin/devsoundplugin.h
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
sl@0
     2
// Copyright (c) 2001-2009 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
 @file
sl@0
    19
 @publishedPartner
sl@0
    20
 @released
sl@0
    21
*/
sl@0
    22
sl@0
    23
#ifndef DEVSOUNDPLUGIN_H
sl@0
    24
#define DEVSOUNDPLUGIN_H
sl@0
    25
sl@0
    26
_LIT8(KDevSoundPluginMatchString, "*"); // ECom insists on something
sl@0
    27
sl@0
    28
/**
sl@0
    29
Interface class used in the plugin implementation of DevSound.
sl@0
    30
The CMMFDevSound implementation loads a plugin based on this interface class. 
sl@0
    31
Once this has been constructed, calls to method functions of CMMFDevSound are passed
sl@0
    32
verbatim to this interface. For further description of required functionality, 
sl@0
    33
see CMMFDevSound.
sl@0
    34
sl@0
    35
@see CMMFDevSound
sl@0
    36
*/
sl@0
    37
sl@0
    38
class MMMFDevSoundPlugin
sl@0
    39
	{
sl@0
    40
public:
sl@0
    41
	/**	
sl@0
    42
	This must provide an implementation as defined by CMMFDevSound::~CMMFDevSound()
sl@0
    43
	
sl@0
    44
	@see CMMFDevSound::~CMMFDevSound()
sl@0
    45
	*/
sl@0
    46
	virtual ~MMMFDevSoundPlugin() {}
sl@0
    47
sl@0
    48
	/**
sl@0
    49
	This must provide an implementation as defined by 
sl@0
    50
	CMMFDevSound::InitializeL(MDevSoundObserver& aDevSoundObserver, TMMFState aMode)
sl@0
    51
	
sl@0
    52
	@param  aDevSoundObserver
sl@0
    53
	        A reference to DevSound Observer instance.
sl@0
    54
	@param  aMode
sl@0
    55
	        The mode for which this object will be used.
sl@0
    56
	        
sl@0
    57
	@see CMMFDevSound::InitializeL(MDevSoundObserver& aDevSoundObserver, TMMFState aMode)
sl@0
    58
	*/
sl@0
    59
    virtual void InitializeL(MDevSoundObserver& aDevSoundObserver, TMMFState aMode)=0;
sl@0
    60
sl@0
    61
sl@0
    62
	/**
sl@0
    63
	This must provide an implementation as defined by 
sl@0
    64
	CMMFDevSound::InitializeL(MDevSoundObserver& aDevSoundObserver, TUid aHWDev, TMMFState aMode)
sl@0
    65
	
sl@0
    66
	@param  aDevSoundObserver
sl@0
    67
	        A reference to DevSound Observer instance.
sl@0
    68
	@param  aHWDev
sl@0
    69
	        The CMMFHwDevice implementation identifier.
sl@0
    70
	@param  aMode
sl@0
    71
	        The mode for which this object will be used.
sl@0
    72
	        
sl@0
    73
	@see CMMFDevSound::InitializeL(MDevSoundObserver& aDevSoundObserver, TUid aHWDev, TMMFState aMode)
sl@0
    74
	*/
sl@0
    75
	virtual void InitializeL(MDevSoundObserver& aDevSoundObserver, TUid aHWDev, TMMFState aMode)=0;
sl@0
    76
sl@0
    77
	/**
sl@0
    78
	This must provide an implementation as defined by 
sl@0
    79
	CMMFDevSound::InitializeL(MDevSoundObserver& aDevSoundObserver, TFourCC aDesiredFourCC, TMMFState aMode)
sl@0
    80
sl@0
    81
	@param  aDevSoundObserver
sl@0
    82
	        A reference to DevSound Observer instance.
sl@0
    83
	@param  aDesiredFourCC
sl@0
    84
	        The CMMFHwDevice implementation FourCC code.
sl@0
    85
	@param  aMode
sl@0
    86
	        The mode for which this object will be used.
sl@0
    87
	        
sl@0
    88
	@see CMMFDevSound::InitializeL(MDevSoundObserver& aDevSoundObserver, TFourCC aDesiredFourCC, TMMFState aMode)
sl@0
    89
	*/
sl@0
    90
	virtual void InitializeL(MDevSoundObserver& aDevSoundObserver, TFourCC aDesiredFourCC, TMMFState aMode)=0;
sl@0
    91
sl@0
    92
	/**
sl@0
    93
	This must provide an implementation as defined by CMMFDevSound::Capabilities()
sl@0
    94
	
sl@0
    95
	@return	The device settings.
sl@0
    96
	
sl@0
    97
	@see CMMFDevSound::Capabilities()
sl@0
    98
	*/
sl@0
    99
	virtual TMMFCapabilities Capabilities()=0;
sl@0
   100
sl@0
   101
	/**
sl@0
   102
	This must provide an implementation as defined by CMMFDevSound::Config()
sl@0
   103
	
sl@0
   104
	@return	The device settings.
sl@0
   105
	
sl@0
   106
	@see CMMFDevSound::Config()
sl@0
   107
	*/
sl@0
   108
	virtual TMMFCapabilities Config() const=0;
sl@0
   109
sl@0
   110
	/**
sl@0
   111
	This must provide an implementation as defined by CMMFDevSound::SetConfigL(const TMMFCapabilities& aCaps)
sl@0
   112
sl@0
   113
	@param  aCaps The attribute values to which CMMFDevSound object will be configured to.
sl@0
   114
	        
sl@0
   115
	@see CMMFDevSound::SetConfigL(const TMMFCapabilities& aCaps)
sl@0
   116
	*/
sl@0
   117
	virtual void SetConfigL(const TMMFCapabilities& aCaps)=0;
sl@0
   118
sl@0
   119
	/**
sl@0
   120
	This must provide an implementation as defined by CMMFDevSound::MaxVolume()
sl@0
   121
	
sl@0
   122
	@return	The maximum volume. This value is platform dependent but is always greater than or equal
sl@0
   123
	to one.
sl@0
   124
	
sl@0
   125
	@see CMMFDevSound::MaxVolume()
sl@0
   126
	*/
sl@0
   127
	virtual TInt MaxVolume()=0;
sl@0
   128
sl@0
   129
	/**
sl@0
   130
	This must provide an implementation as defined by CMMFDevSound::Volume()
sl@0
   131
	
sl@0
   132
	@return The current volume level.
sl@0
   133
		
sl@0
   134
	@see CMMFDevSound::Volume()
sl@0
   135
	*/
sl@0
   136
	virtual TInt Volume()=0;
sl@0
   137
sl@0
   138
	/**
sl@0
   139
	This must provide an implementation as defined by CMMFDevSound::SetVolume()
sl@0
   140
	
sl@0
   141
	@param  aVolume
sl@0
   142
	        The volume setting. This can be any value from 0 to the value
sl@0
   143
	        returned by a call to CMMFDevSound::MaxVolume(). If the
sl@0
   144
	        volume is not within this range, the volume is automatically set to
sl@0
   145
	        minimum or maximum value based on the value that is being passed.
sl@0
   146
	        Setting a zero value mutes the sound. Setting the maximum value
sl@0
   147
	        results in the loudest possible sound.
sl@0
   148
        
sl@0
   149
	@see CMMFDevSound::SetVolume()
sl@0
   150
	*/
sl@0
   151
	virtual void SetVolume(TInt aVolume)=0;
sl@0
   152
sl@0
   153
	/**
sl@0
   154
	This must provide an implementation as defined by CMMFDevSound::MaxGain()
sl@0
   155
	
sl@0
   156
	@return The maximum gain. This value is platform dependent but is always greater than or equal
sl@0
   157
	to one.
sl@0
   158
	
sl@0
   159
	@see CMMFDevSound::MaxGain()
sl@0
   160
	*/
sl@0
   161
	virtual TInt MaxGain()=0;
sl@0
   162
sl@0
   163
	/**
sl@0
   164
	This must provide an implementation as defined by CMMFDevSound::Gain()
sl@0
   165
	
sl@0
   166
	@return The current gain level.
sl@0
   167
	
sl@0
   168
	@see CMMFDevSound::Gain()
sl@0
   169
	*/
sl@0
   170
	virtual TInt Gain()=0;
sl@0
   171
sl@0
   172
	/**
sl@0
   173
	This must provide an implementation as defined by CMMFDevSound::SetGain()
sl@0
   174
	
sl@0
   175
	@param  aGain
sl@0
   176
		    The gain setting. This can be any value from zero to the value
sl@0
   177
		    returned by a call to CMMFDevSound::MaxGain(). If the
sl@0
   178
		    volume is not within this range, the gain is automatically set to
sl@0
   179
		    minimum or maximum value based on the value that is being passed.
sl@0
   180
		    Setting a zero value mutes the sound. Setting the maximum value
sl@0
   181
		    results in the loudest possible sound.
sl@0
   182
	@see CMMFDevSound::SetGain()
sl@0
   183
	*/
sl@0
   184
	virtual void SetGain(TInt aGain)=0;
sl@0
   185
sl@0
   186
	/**
sl@0
   187
	This must provide an implementation as defined by 
sl@0
   188
	CMMFDevSound::GetPlayBalanceL(TInt& aLeftPercentage, TInt& aRightPercentage)
sl@0
   189
	
sl@0
   190
	@param  aLeftPercentage
sl@0
   191
	        On return contains the left speaker volume percentage.
sl@0
   192
	@param  aRightPercentage
sl@0
   193
	        On return contains the right speaker volume percentage.
sl@0
   194
	        
sl@0
   195
	@see CMMFDevSound::GetPlayBalanceL(TInt& aLeftPercentage, TInt& aRightPercentage)
sl@0
   196
	*/
sl@0
   197
	virtual void GetPlayBalanceL(TInt& aLeftPercentage, TInt& aRightPercentage)=0;
sl@0
   198
sl@0
   199
	/**
sl@0
   200
	This must provide an implementation as defined by 
sl@0
   201
	CMMFDevSound::SetPlayBalanceL(TInt aLeftPercentage, TInt aRightPercentage)
sl@0
   202
	
sl@0
   203
	@param  aLeftPercentage
sl@0
   204
	        On return contains left speaker volume perecentage. This can be any
sl@0
   205
	        value from zero to 100. Setting a zero value mutes the sound on left
sl@0
   206
	        speaker.
sl@0
   207
	@param  aRightPercentage
sl@0
   208
	        On return contains right speaker volume perecentage. This can be any
sl@0
   209
	        value from zero to 100. Setting a zero value mutes the sound on
sl@0
   210
	        right speaker.
sl@0
   211
	        
sl@0
   212
	@see CMMFDevSound::SetPlayBalanceL(TInt aLeftPercentage, TInt aRightPercentage)
sl@0
   213
	*/
sl@0
   214
	virtual void SetPlayBalanceL(TInt aLeftPercentage, TInt aRightPercentage)=0;
sl@0
   215
sl@0
   216
	/**
sl@0
   217
	This must provide an implementation as defined by 
sl@0
   218
	CMMFDevSound::GetRecordBalanceL(TInt& aLeftPercentage, TInt& aRightPercentage)
sl@0
   219
	
sl@0
   220
	@param  aLeftPercentage
sl@0
   221
	        On return contains the left microphone gain percentage.
sl@0
   222
	@param  aRightPercentage
sl@0
   223
	        On return contains the right microphone gain percentage.
sl@0
   224
	        
sl@0
   225
	@see CMMFDevSound::GetRecordBalanceL(TInt& aLeftPercentage, TInt& aRightPercentage)
sl@0
   226
	*/
sl@0
   227
	virtual void GetRecordBalanceL(TInt& aLeftPercentage, TInt& aRightPercentage)=0;
sl@0
   228
sl@0
   229
	/**
sl@0
   230
	This must provide an implementation as defined by 
sl@0
   231
	CMMFDevSound::GetRecordBalanceL(TInt aLeftPercentage, TInt aRightPercentage)
sl@0
   232
	
sl@0
   233
	@param  aLeftPercentage
sl@0
   234
	        The left microphone gain precentage. This can be any value from zero to
sl@0
   235
	        100. Setting a zero value mutes the gain on left microphone.
sl@0
   236
	@param  aRightPercentage
sl@0
   237
	        The right microphone gain precentage. This can be any value from zero to
sl@0
   238
	        100. Setting a zero value mutes the gain on right microphone.
sl@0
   239
	        
sl@0
   240
	@see CMMFDevSound::GetRecordBalanceL(TInt aLeftPercentage, TInt aRightPercentage)
sl@0
   241
	*/
sl@0
   242
	virtual void SetRecordBalanceL(TInt aLeftPercentage, TInt aRightPercentage)=0;
sl@0
   243
sl@0
   244
	/**
sl@0
   245
	This must provide an implementation as defined by CMMFDevSound::PlayInitL()
sl@0
   246
	
sl@0
   247
	@see CMMFDevSound::PlayInitL()
sl@0
   248
	*/
sl@0
   249
	virtual void PlayInitL()=0;
sl@0
   250
sl@0
   251
	/**
sl@0
   252
	This must provide an implementation as defined by CMMFDevSound::RecordInitL()
sl@0
   253
sl@0
   254
	@see CMMFDevSound::RecordInitL()
sl@0
   255
	*/
sl@0
   256
	virtual void RecordInitL()=0;
sl@0
   257
sl@0
   258
	/**
sl@0
   259
	This must provide an implementation as defined by CMMFDevSound::PlayData()
sl@0
   260
	
sl@0
   261
	@see CMMFDevSound::PlayData()
sl@0
   262
	*/
sl@0
   263
	virtual void PlayData()=0;
sl@0
   264
sl@0
   265
	/**
sl@0
   266
	This must provide an implementation as defined by CMMFDevSound::RecordData()
sl@0
   267
	
sl@0
   268
	@see CMMFDevSound::RecordData()
sl@0
   269
	*/
sl@0
   270
	virtual void RecordData()=0;
sl@0
   271
sl@0
   272
	/**
sl@0
   273
	This must provide an implementation as defined by CMMFDevSound::Stop()
sl@0
   274
	
sl@0
   275
	@see CMMFDevSound::Stop()
sl@0
   276
	*/
sl@0
   277
	virtual void Stop()=0;
sl@0
   278
sl@0
   279
	/**
sl@0
   280
	This must provide an implementation as defined by CMMFDevSound::Pause()
sl@0
   281
	
sl@0
   282
	@see CMMFDevSound::Pause()
sl@0
   283
	*/
sl@0
   284
	virtual void Pause()=0;
sl@0
   285
sl@0
   286
	/**
sl@0
   287
	This must provide an implementation as defined by CMMFDevSound::SamplesRecorded()
sl@0
   288
	
sl@0
   289
	@return The samples recorded.
sl@0
   290
	
sl@0
   291
	@see CMMFDevSound::SamplesRecorded()
sl@0
   292
	*/
sl@0
   293
	virtual TInt SamplesRecorded()=0;
sl@0
   294
sl@0
   295
	/**
sl@0
   296
	This must provide an implementation as defined by CMMFDevSound::SamplesPlayed()
sl@0
   297
	
sl@0
   298
	@return The samples played.
sl@0
   299
	
sl@0
   300
	@see CMMFDevSound::SamplesPlayed()
sl@0
   301
	*/
sl@0
   302
	virtual TInt SamplesPlayed()=0;
sl@0
   303
sl@0
   304
	/**
sl@0
   305
	This must provide an implementation as defined by 
sl@0
   306
	CMMFDevSound::PlayToneL(TInt aFrequency, const TTimeIntervalMicroSeconds& aDuration)
sl@0
   307
	
sl@0
   308
	@param  aFrequency
sl@0
   309
	        The frequency at which the tone will be played.
sl@0
   310
	@param  aDuration
sl@0
   311
	        The period over which the tone will be played. A zero value causes
sl@0
   312
	        the no tone to be played.
sl@0
   313
	        
sl@0
   314
	@see CMMFDevSound::PlayToneL(TInt aFrequency, const TTimeIntervalMicroSeconds& aDuration)
sl@0
   315
	*/
sl@0
   316
	virtual void PlayToneL(TInt aFrequency, const TTimeIntervalMicroSeconds& aDuration)=0;
sl@0
   317
sl@0
   318
	/**
sl@0
   319
	This must provide an implementation as defined by 
sl@0
   320
	CMMFDevSound::PlayDualToneL(TInt aFrequencyOne, TInt aFrequencyTwo, const TTimeIntervalMicroSeconds& aDuration)
sl@0
   321
	
sl@0
   322
	@param  aFrequencyOne
sl@0
   323
	        The first frequency of dual tone.
sl@0
   324
	@param  aFrequencyTwo
sl@0
   325
	        The second frequency of dual tone
sl@0
   326
	@param  aDuration
sl@0
   327
	        The period over which the tone will be played. A zero value causes
sl@0
   328
	        the no tone to be played (Verify this with test app).
sl@0
   329
	        
sl@0
   330
	@see CMMFDevSound::PlayDualToneL(TInt aFrequencyOne, TInt aFrequencyTwo, const TTimeIntervalMicroSeconds& aDuration)
sl@0
   331
	*/
sl@0
   332
	virtual void PlayDualToneL(TInt aFrequencyOne, TInt aFrequencyTwo, const TTimeIntervalMicroSeconds& aDuration)=0;
sl@0
   333
sl@0
   334
	/**
sl@0
   335
	This must provide an implementation as defined by CMMFDevSound::PlayDTMFStringL(const TDesC& aDTMFString)
sl@0
   336
	
sl@0
   337
	@param  aDTMFString The DTMF sequence in a descriptor.
sl@0
   338
	
sl@0
   339
	@see CMMFDevSound::PlayDTMFStringL(const TDesC& aDTMFString)
sl@0
   340
	*/
sl@0
   341
	virtual void PlayDTMFStringL(const TDesC& aDTMFString)=0;
sl@0
   342
sl@0
   343
	/**
sl@0
   344
	This must provide an implementation as defined by CMMFDevSound::PlayToneSequenceL(const TDesC8& aData)
sl@0
   345
sl@0
   346
	@param  aData The tone sequence in a descriptor.
sl@0
   347
	
sl@0
   348
	@see CMMFDevSound::PlayToneSequenceL(const TDesC8& aData)
sl@0
   349
	*/
sl@0
   350
	virtual void PlayToneSequenceL(const TDesC8& aData)=0;
sl@0
   351
sl@0
   352
	/**
sl@0
   353
	This must provide an implementation as defined by CMMFDevSound::PlayFixedSequenceL(TInt aSequenceNumber)
sl@0
   354
	
sl@0
   355
	@param  aSequenceNumber
sl@0
   356
	        The index identifying the specific pre-defined tone sequence. Index
sl@0
   357
	        values are relative to zero.
sl@0
   358
	        This can be any value from zero to the value returned by a call to
sl@0
   359
	        FixedSequenceCount() - 1.
sl@0
   360
	        The function raises a panic if the sequence number is not within this
sl@0
   361
	        range.
sl@0
   362
	        
sl@0
   363
	@see CMMFDevSound::PlayFixedSequenceL(TInt aSequenceNumber)
sl@0
   364
	@see FixedSequenceCount()
sl@0
   365
	*/
sl@0
   366
	virtual void PlayFixedSequenceL(TInt aSequenceNumber)=0;
sl@0
   367
sl@0
   368
	/**
sl@0
   369
	This must provide an implementation as defined by 
sl@0
   370
	CMMFDevSound::SetToneRepeats(TInt aRepeatCount,
sl@0
   371
					const TTimeIntervalMicroSeconds& aRepeatTrailingSilence)
sl@0
   372
	
sl@0
   373
	@param  aRepeatCount
sl@0
   374
	        The number of times the tone, together with the trailing silence,
sl@0
   375
	        is to be repeated. If this is set to KMdaRepeatForever, then the
sl@0
   376
	        tone, together with the trailing silence, is repeated indefinitely
sl@0
   377
	        or until Stop() is called. If this is set to zero, then the tone is
sl@0
   378
	        not repeated.
sl@0
   379
	@param  aRepeatTrailingSilence
sl@0
   380
	        An interval of silence which will be played after each tone.
sl@0
   381
	        Supported only during tone playing.
sl@0
   382
	        
sl@0
   383
	@see CMMFDevSound::SetToneRepeats(TInt aRepeatCount,
sl@0
   384
					const TTimeIntervalMicroSeconds& aRepeatTrailingSilence)
sl@0
   385
	*/
sl@0
   386
	virtual void SetToneRepeats(TInt aRepeatCount,
sl@0
   387
					const TTimeIntervalMicroSeconds& aRepeatTrailingSilence)=0;
sl@0
   388
sl@0
   389
	/**
sl@0
   390
	This must provide an implementation as defined by 
sl@0
   391
	CMMFDevSound::(TTimeIntervalMicroSeconds32& aToneOnLength,
sl@0
   392
									TTimeIntervalMicroSeconds32& aToneOffLength,
sl@0
   393
									TTimeIntervalMicroSeconds32& aPauseLength)
sl@0
   394
sl@0
   395
	@param  aToneOnLength
sl@0
   396
	        The period over which the tone will be played. If this is set to
sl@0
   397
	        zero, then the tone is not played.
sl@0
   398
	@param  aToneOffLength
sl@0
   399
	        The period over which the no tone will be played.
sl@0
   400
	@param  aPauseLength
sl@0
   401
	        The period over which the tone playing will be paused.
sl@0
   402
	        
sl@0
   403
	@see CMMFDevSound::(TTimeIntervalMicroSeconds32& aToneOnLength,
sl@0
   404
									TTimeIntervalMicroSeconds32& aToneOffLength,
sl@0
   405
									TTimeIntervalMicroSeconds32& aPauseLength)
sl@0
   406
	*/
sl@0
   407
	virtual void SetDTMFLengths(TTimeIntervalMicroSeconds32& aToneOnLength,
sl@0
   408
									TTimeIntervalMicroSeconds32& aToneOffLength,
sl@0
   409
									TTimeIntervalMicroSeconds32& aPauseLength)=0;
sl@0
   410
sl@0
   411
	/**
sl@0
   412
	This must provide an implementation as defined by 
sl@0
   413
	CMMFDevSound::SetVolumeRamp(const TTimeIntervalMicroSeconds& aRampDuration)
sl@0
   414
	
sl@0
   415
	@param  aRampDuration
sl@0
   416
	        The period over which the volume is to rise. A zero value causes
sl@0
   417
	        the tone sample to be played at the normal level for the full
sl@0
   418
	        duration of the playback. A value, which is longer than the duration
sl@0
   419
	        of the tone sample means that the sample never reaches its normal
sl@0
   420
	        volume level.
sl@0
   421
	        
sl@0
   422
	@see CMMFDevSound::SetVolumeRamp(const TTimeIntervalMicroSeconds& aRampDuration)
sl@0
   423
	*/
sl@0
   424
	virtual void SetVolumeRamp(const TTimeIntervalMicroSeconds& aRampDuration)=0;
sl@0
   425
sl@0
   426
	/**
sl@0
   427
	This must provide an implementation as defined by 
sl@0
   428
	CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings& aPrioritySettings)
sl@0
   429
sl@0
   430
	@param	aPrioritySettings 
sl@0
   431
			A class type representing the client's priority, priority preference and state.
sl@0
   432
			
sl@0
   433
	@see CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings& aPrioritySettings)
sl@0
   434
	*/
sl@0
   435
	virtual void SetPrioritySettings(const TMMFPrioritySettings& aPrioritySettings)=0;
sl@0
   436
sl@0
   437
	/**
sl@0
   438
	This must provide an implementation as defined by CMMFDevSound::CustomInterface(TUid aInterfaceId)
sl@0
   439
	
sl@0
   440
	@param  aInterfaceId
sl@0
   441
	        The interface UID, defined with the custom interface.
sl@0
   442
	
sl@0
   443
	@return A pointer to the interface implementation, or NULL if the device does not
sl@0
   444
	        implement the interface requested. The return value must be cast to the
sl@0
   445
	        correct type by the user.The user should be careful while caching the custom interface pointer,
sl@0
   446
	        as in some situations the lower level custom interface pointer may become NULL
sl@0
   447
	        
sl@0
   448
	@see CMMFDevSound::CustomInterface(TUid aInterfaceId)
sl@0
   449
	*/
sl@0
   450
	virtual TAny* CustomInterface(TUid aInterfaceId)=0;
sl@0
   451
sl@0
   452
	/**
sl@0
   453
	This must provide an implementation as defined by CMMFDevSound::FixedSequenceCount()
sl@0
   454
	
sl@0
   455
	@return The fixed sequence count. This value is implementation dependent but is always greater 
sl@0
   456
	        than or equal to zero.
sl@0
   457
	        
sl@0
   458
	@see CMMFDevSound::FixedSequenceCount()
sl@0
   459
	*/
sl@0
   460
	virtual TInt FixedSequenceCount()=0;
sl@0
   461
sl@0
   462
	/**
sl@0
   463
	This must provide an implementation as defined by CMMFDevSound::FixedSequenceName(TInt aSequenceNumber)
sl@0
   464
	
sl@0
   465
	@param  aSequenceNumber
sl@0
   466
	        The index identifying the specific pre-defined tone sequence. Index values are relative 
sl@0
   467
	        to zero. This can be any value from zero to the value returned by a call to
sl@0
   468
	        FixedSequenceCount() - 1.
sl@0
   469
	        The function raises a panic if sequence number is not within this
sl@0
   470
	        range.
sl@0
   471
sl@0
   472
	@return A reference to a Descriptor containing the fixed sequence name indexed by
sl@0
   473
	        aSequenceNumber.
sl@0
   474
	        
sl@0
   475
	@see CMMFDevSound::FixedSequenceName(TInt aSequenceNumber)
sl@0
   476
	@see FixedSequenceCount()
sl@0
   477
	*/
sl@0
   478
	virtual const TDesC& FixedSequenceName(TInt aSequenceNumber)=0;
sl@0
   479
sl@0
   480
	/**
sl@0
   481
	This must provide an implementation as defined by 
sl@0
   482
	CMMFDevSound::GetSupportedInputDataTypesL(RArray<TFourCC>& aSupportedDataTypes,
sl@0
   483
													const TMMFPrioritySettings& aPrioritySettings) const
sl@0
   484
	
sl@0
   485
	@param  aSupportedDataTypes
sl@0
   486
	        The array of supported data types that will be filled in by this function.
sl@0
   487
	        The supported data types of the DevSound are in the form of an array
sl@0
   488
	        of TFourCC codes. Any existing entries in the array will be overwritten on 
sl@0
   489
	        calling this function. If no supported data types are found given the priority 
sl@0
   490
	        settings, then the aSupportedDatatypes array will have zero entries.
sl@0
   491
	@param  aPrioritySettings
sl@0
   492
	        The priority settings used to determine the supported datatypes.  Note this
sl@0
   493
	        does not set the priority settings. For input datatypes the iState member
sl@0
   494
	        of the priority settings would be expected to be either
sl@0
   495
	        EMMFStatePlaying or EMMFStatePlayingRecording. The priority settings may
sl@0
   496
	        effect the supported datatypes depending on the audio routing.
sl@0
   497
	        
sl@0
   498
	@see CMMFDevSound::GetSupportedInputDataTypesL(RArray<TFourCC>& aSupportedDataTypes,
sl@0
   499
													const TMMFPrioritySettings& aPrioritySettings) const
sl@0
   500
	*/
sl@0
   501
	virtual void GetSupportedInputDataTypesL(RArray<TFourCC>& aSupportedDataTypes, const TMMFPrioritySettings& aPrioritySettings) const=0;
sl@0
   502
sl@0
   503
	/**
sl@0
   504
	This must provide an implementation as defined by 
sl@0
   505
	CMMFDevSound::GetSupportedOutputDataTypesL(RArray<TFourCC>& aSupportedDataTypes, const TMMFPrioritySettings& aPrioritySettings) const
sl@0
   506
	
sl@0
   507
	@param  aSupportedDataTypes
sl@0
   508
	        The array of supported data types that will be filled in by this function.
sl@0
   509
	        The supported datatypes of the DevSound are in the form of an array
sl@0
   510
	        of TFourCC codes.
sl@0
   511
	        Any existing entries in the array will be overwritten on calling this function.
sl@0
   512
	        If no supported datatypes are found given the priority settings, then
sl@0
   513
	        the aSupportedDatatypes array will have zero entries.
sl@0
   514
	@param  aPrioritySettings
sl@0
   515
	        The priority settings used to determine the supported data types.  Note this
sl@0
   516
	        does not set the priority settings. For output data types the iState member
sl@0
   517
	        of the priority settings would expected to be either
sl@0
   518
	        EMMFStateRecording or EMMFStatePlayingRecording. The priority settings may
sl@0
   519
	        effect the supported datatypes depending on the audio routing.
sl@0
   520
	        
sl@0
   521
	@see CMMFDevSound::GetSupportedOutputDataTypesL(RArray<TFourCC>& aSupportedDataTypes, const TMMFPrioritySettings& aPrioritySettings) const
sl@0
   522
	*/
sl@0
   523
	virtual void GetSupportedOutputDataTypesL(RArray<TFourCC>& aSupportedDataTypes, const TMMFPrioritySettings& aPrioritySettings) const=0;
sl@0
   524
	
sl@0
   525
	};
sl@0
   526
sl@0
   527
#endif // DEVSOUNDPLUGIN_H