os/mm/devsound/sounddevbt/PlatSec/src/Server/AudioServer/MmfBtAudioClientServer.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/sounddevbt/PlatSec/src/Server/AudioServer/MmfBtAudioClientServer.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,144 @@
1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef MMFAUDIOCLIENTSERVER_H
1.20 +#define MMFAUDIOCLIENTSERVER_H
1.21 +
1.22 +#include <mmf/common/mmfutilities.h>
1.23 +#include <mmf/common/mmfbase.h>
1.24 +#include <mmf/server/sounddevice.h>
1.25 +
1.26 +// opcodes used in message passing between client and server
1.27 +enum TMMFAudioServerRequest
1.28 + {
1.29 + EMMFAudioLaunchRequests,
1.30 + EMMFDevSoundServerNameLength,
1.31 + EMMFDevSoundServerName
1.32 + };
1.33 +
1.34 +enum TMMFDevSoundProxyRequest
1.35 + {
1.36 + EMMFDevSoundProxyInitialize1,
1.37 + EMMFDevSoundProxyInitialize2,
1.38 + EMMFDevSoundProxyInitialize3,
1.39 + EMMFDevSoundProxyInitialize4,
1.40 + EMMFDevSoundProxyCapabilities,
1.41 + EMMFDevSoundProxyConfig,
1.42 + EMMFDevSoundProxySetConfig,
1.43 + EMMFDevSoundProxyMaxVolume,
1.44 + EMMFDevSoundProxyVolume,
1.45 + EMMFDevSoundProxySetVolume,
1.46 + EMMFDevSoundProxyMaxGain,
1.47 + EMMFDevSoundProxyGain,
1.48 + EMMFDevSoundProxySetGain,
1.49 + EMMFDevSoundProxyPlayBalance,
1.50 + EMMFDevSoundProxySetPlayBalance,
1.51 + EMMFDevSoundProxyRecordBalance,
1.52 + EMMFDevSoundProxySetRecordBalance,
1.53 + EMMFDevSoundProxyReceiveICEvent,
1.54 + EMMFDevSoundProxyCancelReceiveICEvent,
1.55 + EMMFDevSoundProxyReceiveBTBFEvent,
1.56 + EMMFDevSoundProxyCancelReceiveBTBFEvent,
1.57 + EMMFDevSoundProxyReceiveBTBEEvent,
1.58 + EMMFDevSoundProxyCancelReceiveBTBEEvent,
1.59 + EMMFDevSoundProxyReceivePEEvent,
1.60 + EMMFDevSoundProxyCancelReceivePEEvent,
1.61 + EMMFDevSoundProxyReceiveREEvent,
1.62 + EMMFDevSoundProxyCancelReceiveREEvent,
1.63 + EMMFDevSoundProxyReceiveTFEvent,
1.64 + EMMFDevSoundProxyCancelReceiveTFEvent,
1.65 + EMMFDevSoundProxyReceiveSETCEvent,
1.66 + EMMFDevSoundProxyCancelReceiveSETCEvent,
1.67 + EMMFDevSoundProxyPlayInit,
1.68 + EMMFDevSoundProxyRecordInit,
1.69 + EMMFDevSoundProxyPlayData,
1.70 + EMMFDevSoundProxyRecordData,
1.71 + EMMFDevSoundProxyStop,
1.72 + EMMFDevSoundProxyPause,
1.73 + EMMFDevSoundProxyPlayTone,
1.74 + EMMFDevSoundProxyPlayDualTone,
1.75 + EMMFDevSoundProxyPlayDTMFString,
1.76 + EMMFDevSoundProxyPlayDTMFStringLength,
1.77 + EMMFDevSoundProxyPlayToneSequence,
1.78 + EMMFDevSoundProxyPlayFixedSequence,
1.79 + EMMFDevSoundProxySetDTMFLengths,
1.80 + EMMFDevSoundProxySetVolumeRamp,
1.81 + EMMFDevSoundProxyGetSupportedInputDataTypes,
1.82 + EMMFDevSoundProxyGetSupportedOutputDataTypes,
1.83 + EMMFDevSoundProxyCopyFourCCArrayData,
1.84 + EMMFDevSoundProxyGetRecordedBuffer,
1.85 + EMMFDevSoundProxySamplesRecorded,
1.86 + EMMFDevSoundProxySamplesPlayed,
1.87 + EMMFDevSoundProxySetToneRepeats,
1.88 + EMMFDevSoundProxySetPrioritySettings,
1.89 + EMMFDevSoundProxyFixedSequenceName,
1.90 + EMMFDevSoundProxyConvertInit,
1.91 + EMMFDevSoundProxyConvertData,
1.92 + EMMFDevSoundProxyCustomInterface,
1.93 + EMMFDevSoundProxyFixedSequenceCount,
1.94 + EMMFDevSoundProxyRequestResourceNotification,
1.95 + EMMFDevSoundProxyCancelRequestResourceNotification,
1.96 + EMMFDevSoundProxyGetResourceNotificationData,
1.97 + EMMFDevSoundProxyWillResumePlay,
1.98 + EMMFDevSoundProxySetClientThreadInfo
1.99 + };
1.100 +
1.101 +class TMMFDevSoundProxyHwBuf
1.102 +/**
1.103 +*@internalTechnology
1.104 +*/
1.105 + {
1.106 +public:
1.107 + TUid iBufferType;
1.108 + TInt iRequestSize;
1.109 + TBool iLastBuffer;
1.110 + TUint iBufferSize;
1.111 + TBufC8<1024> iData;
1.112 + };
1.113 +
1.114 +typedef TPckgBuf<TMMFDevSoundProxyHwBuf> TMMFDevSoundProxyHwBufPckg;
1.115 +
1.116 +
1.117 +class TMMFDevSoundProxySettings
1.118 +/**
1.119 +*@internalTechnology
1.120 +*/
1.121 + {
1.122 +public:
1.123 + TMMFState iMode;
1.124 + TUid iHWDev;
1.125 + TFourCC iDesiredFourCC;
1.126 + TMMFCapabilities iCaps;
1.127 + TMMFCapabilities iConfig;
1.128 + TInt iMaxVolume;
1.129 + TInt iVolume;
1.130 + TInt iMaxGain;
1.131 + TInt iGain;
1.132 + TInt iLeftPercentage;
1.133 + TInt iRightPercentage;
1.134 + TInt iFrequencyOne;
1.135 + TInt iFrequencyTwo;
1.136 + TTimeIntervalMicroSeconds iDuration;
1.137 + TTimeIntervalMicroSeconds32 iToneOnLength;
1.138 + TTimeIntervalMicroSeconds32 iToneOffLength;
1.139 + TTimeIntervalMicroSeconds32 iPauseLength;
1.140 + TUid iNotificationEventUid;
1.141 + };
1.142 +
1.143 +
1.144 +typedef TPckgBuf<TMMFDevSoundProxySettings> TMMFDevSoundProxySettingsPckg;
1.145 +const TInt KMaxFixedSequenceNameLength = 1024;
1.146 +
1.147 +#endif