os/mm/devsound/sounddevbt/inc/SwCodecWrapper/mmfbtswcodecwrapperinterface.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef __MMFBTSWCODECWRAPPERINTERFACE_H__
sl@0
    17
#define __MMFBTSWCODECWRAPPERINTERFACE_H__
sl@0
    18
sl@0
    19
#include <mmfbthwdevice2.h>
sl@0
    20
sl@0
    21
class CMMFSwCodecDataPath; //forward reference
sl@0
    22
sl@0
    23
class CRoutingSoundPlayDevice;
sl@0
    24
class CRoutingSoundRecordDevice;
sl@0
    25
sl@0
    26
/**
sl@0
    27
@publishedPartner
sl@0
    28
@prototype
sl@0
    29
sl@0
    30
Custom interface class for play functionality created by the
sl@0
    31
CMMFSwCodecWrapper::CustomInterface() method. It provides
sl@0
    32
access to miscellaneous functionality such as volume settings.
sl@0
    33
Ports of the sw codec wrapper may do this differently eg. via EAP.
sl@0
    34
Note Users should not use RMdaDevSound::TCurrentSoundFormatBuf to send
sl@0
    35
across the sample rate and channels because 1) it would mean
sl@0
    36
MmfBtSwCodecWrapper.h would have to include mdasound.h 2)
sl@0
    37
the buffer size and encoding members are not required and 3) 3rd party ports
sl@0
    38
may not use RMdaDevSound.
sl@0
    39
sl@0
    40
Note also that this interface is just a simple interface to get
sl@0
    41
and set values. No checking is perfomed on the values sent (hence the
sl@0
    42
Set methods do not return an error code).
sl@0
    43
*/
sl@0
    44
class MPlayCustomInterface
sl@0
    45
	{
sl@0
    46
public:
sl@0
    47
	virtual void SetVolume(TUint aVolume) = 0;
sl@0
    48
	virtual TUint Volume() = 0;
sl@0
    49
	virtual TUint BytesPlayed() = 0;
sl@0
    50
	virtual void SetVolumeRamp(const TTimeIntervalMicroSeconds& aRampDuration) = 0;
sl@0
    51
	virtual TTimeIntervalMicroSeconds& VolumeRamp() = 0;
sl@0
    52
	virtual TTaskConfig Caps() = 0;
sl@0
    53
	};
sl@0
    54
sl@0
    55
sl@0
    56
/**
sl@0
    57
@publishedPartner
sl@0
    58
@prototype
sl@0
    59
sl@0
    60
Custom interface class for record functionality created by the
sl@0
    61
CMMFSwCodecWrapper::CustomInterface() method. It provides
sl@0
    62
access to miscelaneous functionality such as volume settings.
sl@0
    63
Ports of the sw codec wrapper may do this differently eg. via EAP.
sl@0
    64
Note: Users shoule not use RMdaDevSound::TCurrentSoundFormatBuf so send
sl@0
    65
across the sample rate and channels because 1) it would mean
sl@0
    66
MmfBtSwCodecWrapper.h would have to include mdasound.h 2)
sl@0
    67
the buffer size and encoding members are not required and 3) 3rd party ports
sl@0
    68
may not use RMdaDevSound.
sl@0
    69
sl@0
    70
Note also that this interface is just a simple interface to get
sl@0
    71
and set values. No checking is perfomed on the values sent (hence the
sl@0
    72
Set methods do not return an error code).
sl@0
    73
*/
sl@0
    74
class MRecordCustomInterface
sl@0
    75
	{
sl@0
    76
public:
sl@0
    77
	virtual void SetGain(TUint aGain) = 0;
sl@0
    78
	virtual TUint Gain() = 0;
sl@0
    79
	virtual TUint BytesRecorded() = 0; 
sl@0
    80
	};
sl@0
    81
sl@0
    82
#endif //__MMFBTSWCODECWRAPPERINTERFACE_H__
sl@0
    83