os/mm/devsound/sounddevbt/PlatSec/src/Server/AudioServer/MmfBtAudioClientServer.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) 2004-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 MMFAUDIOCLIENTSERVER_H
sl@0
    17
#define MMFAUDIOCLIENTSERVER_H
sl@0
    18
sl@0
    19
#include <mmf/common/mmfutilities.h>
sl@0
    20
#include <mmf/common/mmfbase.h>
sl@0
    21
#include <mmf/server/sounddevice.h>
sl@0
    22
sl@0
    23
// opcodes used in message passing between client and server
sl@0
    24
enum TMMFAudioServerRequest
sl@0
    25
	{
sl@0
    26
	EMMFAudioLaunchRequests,
sl@0
    27
	EMMFDevSoundServerNameLength,
sl@0
    28
	EMMFDevSoundServerName
sl@0
    29
	};
sl@0
    30
sl@0
    31
enum TMMFDevSoundProxyRequest
sl@0
    32
	{
sl@0
    33
	EMMFDevSoundProxyInitialize1,
sl@0
    34
	EMMFDevSoundProxyInitialize2,
sl@0
    35
	EMMFDevSoundProxyInitialize3,
sl@0
    36
	EMMFDevSoundProxyInitialize4,
sl@0
    37
	EMMFDevSoundProxyCapabilities,
sl@0
    38
	EMMFDevSoundProxyConfig,
sl@0
    39
	EMMFDevSoundProxySetConfig,
sl@0
    40
	EMMFDevSoundProxyMaxVolume,
sl@0
    41
	EMMFDevSoundProxyVolume,
sl@0
    42
	EMMFDevSoundProxySetVolume,
sl@0
    43
	EMMFDevSoundProxyMaxGain,
sl@0
    44
	EMMFDevSoundProxyGain,
sl@0
    45
	EMMFDevSoundProxySetGain,
sl@0
    46
	EMMFDevSoundProxyPlayBalance,
sl@0
    47
	EMMFDevSoundProxySetPlayBalance,
sl@0
    48
	EMMFDevSoundProxyRecordBalance,
sl@0
    49
	EMMFDevSoundProxySetRecordBalance,
sl@0
    50
	EMMFDevSoundProxyReceiveICEvent,
sl@0
    51
	EMMFDevSoundProxyCancelReceiveICEvent,
sl@0
    52
	EMMFDevSoundProxyReceiveBTBFEvent,
sl@0
    53
	EMMFDevSoundProxyCancelReceiveBTBFEvent,
sl@0
    54
	EMMFDevSoundProxyReceiveBTBEEvent,
sl@0
    55
	EMMFDevSoundProxyCancelReceiveBTBEEvent,
sl@0
    56
	EMMFDevSoundProxyReceivePEEvent,
sl@0
    57
	EMMFDevSoundProxyCancelReceivePEEvent,
sl@0
    58
	EMMFDevSoundProxyReceiveREEvent,
sl@0
    59
	EMMFDevSoundProxyCancelReceiveREEvent,
sl@0
    60
	EMMFDevSoundProxyReceiveTFEvent,
sl@0
    61
	EMMFDevSoundProxyCancelReceiveTFEvent,
sl@0
    62
	EMMFDevSoundProxyReceiveSETCEvent,
sl@0
    63
	EMMFDevSoundProxyCancelReceiveSETCEvent,
sl@0
    64
	EMMFDevSoundProxyPlayInit,
sl@0
    65
	EMMFDevSoundProxyRecordInit,
sl@0
    66
	EMMFDevSoundProxyPlayData,
sl@0
    67
	EMMFDevSoundProxyRecordData,
sl@0
    68
	EMMFDevSoundProxyStop,
sl@0
    69
	EMMFDevSoundProxyPause,
sl@0
    70
	EMMFDevSoundProxyPlayTone,
sl@0
    71
	EMMFDevSoundProxyPlayDualTone,
sl@0
    72
	EMMFDevSoundProxyPlayDTMFString,
sl@0
    73
	EMMFDevSoundProxyPlayDTMFStringLength,
sl@0
    74
	EMMFDevSoundProxyPlayToneSequence,
sl@0
    75
	EMMFDevSoundProxyPlayFixedSequence,
sl@0
    76
	EMMFDevSoundProxySetDTMFLengths,
sl@0
    77
	EMMFDevSoundProxySetVolumeRamp,
sl@0
    78
	EMMFDevSoundProxyGetSupportedInputDataTypes,
sl@0
    79
	EMMFDevSoundProxyGetSupportedOutputDataTypes,
sl@0
    80
	EMMFDevSoundProxyCopyFourCCArrayData,
sl@0
    81
	EMMFDevSoundProxyGetRecordedBuffer,
sl@0
    82
	EMMFDevSoundProxySamplesRecorded,
sl@0
    83
	EMMFDevSoundProxySamplesPlayed,
sl@0
    84
	EMMFDevSoundProxySetToneRepeats,
sl@0
    85
	EMMFDevSoundProxySetPrioritySettings,
sl@0
    86
	EMMFDevSoundProxyFixedSequenceName,
sl@0
    87
	EMMFDevSoundProxyConvertInit,
sl@0
    88
	EMMFDevSoundProxyConvertData,
sl@0
    89
	EMMFDevSoundProxyCustomInterface,
sl@0
    90
	EMMFDevSoundProxyFixedSequenceCount,
sl@0
    91
	EMMFDevSoundProxyRequestResourceNotification,
sl@0
    92
	EMMFDevSoundProxyCancelRequestResourceNotification,
sl@0
    93
	EMMFDevSoundProxyGetResourceNotificationData,	
sl@0
    94
	EMMFDevSoundProxyWillResumePlay,
sl@0
    95
	EMMFDevSoundProxySetClientThreadInfo
sl@0
    96
	};
sl@0
    97
sl@0
    98
class TMMFDevSoundProxyHwBuf
sl@0
    99
/**
sl@0
   100
*@internalTechnology
sl@0
   101
*/
sl@0
   102
	{
sl@0
   103
public:
sl@0
   104
	TUid iBufferType;
sl@0
   105
	TInt iRequestSize;
sl@0
   106
	TBool iLastBuffer;
sl@0
   107
	TUint iBufferSize;
sl@0
   108
	TBufC8<1024> iData;
sl@0
   109
	};
sl@0
   110
sl@0
   111
typedef TPckgBuf<TMMFDevSoundProxyHwBuf> TMMFDevSoundProxyHwBufPckg;
sl@0
   112
sl@0
   113
sl@0
   114
class TMMFDevSoundProxySettings
sl@0
   115
/**
sl@0
   116
*@internalTechnology
sl@0
   117
*/
sl@0
   118
	{
sl@0
   119
public:
sl@0
   120
	TMMFState iMode;
sl@0
   121
	TUid iHWDev;
sl@0
   122
	TFourCC iDesiredFourCC;
sl@0
   123
	TMMFCapabilities iCaps;
sl@0
   124
	TMMFCapabilities iConfig;
sl@0
   125
	TInt iMaxVolume;
sl@0
   126
	TInt iVolume;
sl@0
   127
	TInt iMaxGain;
sl@0
   128
	TInt iGain;
sl@0
   129
	TInt iLeftPercentage;
sl@0
   130
	TInt iRightPercentage;
sl@0
   131
	TInt iFrequencyOne;
sl@0
   132
	TInt iFrequencyTwo;
sl@0
   133
	TTimeIntervalMicroSeconds iDuration;
sl@0
   134
	TTimeIntervalMicroSeconds32 iToneOnLength;
sl@0
   135
	TTimeIntervalMicroSeconds32 iToneOffLength;
sl@0
   136
	TTimeIntervalMicroSeconds32 iPauseLength;
sl@0
   137
	TUid iNotificationEventUid;
sl@0
   138
	};
sl@0
   139
sl@0
   140
sl@0
   141
typedef TPckgBuf<TMMFDevSoundProxySettings> TMMFDevSoundProxySettingsPckg;
sl@0
   142
const TInt KMaxFixedSequenceNameLength = 1024;
sl@0
   143
sl@0
   144
#endif