0
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#ifndef MMFDEVSOUNDSESSION_H
|
|
17 |
#define MMFDEVSOUNDSESSION_H
|
|
18 |
|
|
19 |
#include <e32base.h>
|
|
20 |
#include <e32std.h>
|
|
21 |
#include <e32msgqueue.h>
|
|
22 |
#include <mmf/common/mmfbase.h>
|
|
23 |
#include <mmf/common/mmfutilities.h>
|
|
24 |
#include <mmf/common/mmfipc.h>
|
|
25 |
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
|
|
26 |
#include <mmf/common/mmfipcserver.h>
|
|
27 |
#endif
|
|
28 |
#include <mmf/server/sounddevice.h>
|
|
29 |
#include <a3f/mmfdevsoundcustominterfaceextensions.h>
|
|
30 |
#include "mmfaudioclientserver.h"
|
|
31 |
#include "mmfdevsoundadaptation.h"
|
|
32 |
|
|
33 |
#include <mmf/server/mmfdevsoundcustominterface.h>
|
|
34 |
#include "MmfDevSoundCIDeMuxUtility.h"
|
|
35 |
#include <mmf/common/mcustominterface.h>
|
|
36 |
|
|
37 |
// FORWARD DECLARATIONS
|
|
38 |
class CMMFDevSoundServer;
|
|
39 |
class CMMFDevSoundAdaptation;
|
|
40 |
class MGlobalProperties;
|
|
41 |
|
|
42 |
/**
|
|
43 |
Panic category and codes that MMFDevSoundSession raises on the client
|
|
44 |
*/
|
|
45 |
_LIT(KMMFDevSoundSessionPanicCategory, "MMFDevSoundSession");
|
|
46 |
|
|
47 |
enum TMMFDevSoundSessionPanicCodes
|
|
48 |
{
|
|
49 |
EMsgQueueFailedToSendMsg =1,
|
|
50 |
EQueueRequestsFailedToAppend,
|
|
51 |
EUnexpectedAsyncOpCompleteHandlingCI,
|
|
52 |
ERequestBeingServicedMismatch
|
|
53 |
};
|
|
54 |
|
|
55 |
// CLASS DECLARATION
|
|
56 |
|
|
57 |
/*
|
|
58 |
This class is wrapper for RMmfIpcMessage
|
|
59 |
The main purpose of this class is to hold a messages and
|
|
60 |
keep the status of the process started with the request
|
|
61 |
This is not related to message status itself (if was completed or not)
|
|
62 |
|
|
63 |
@lib MmfDevSoundServer.lib
|
|
64 |
@since
|
|
65 |
*/
|
|
66 |
class TMMFDevSoundRequest
|
|
67 |
{
|
|
68 |
public:
|
|
69 |
|
|
70 |
enum TA3FDevSoundRequestType
|
|
71 |
{
|
|
72 |
EQuery_Synchronous, // Message completed immediately, doesn't involve commit cycle, can be serviced even when a commit operation is pending
|
|
73 |
EQuery_Asynchronous, // Message is not completed until operation is completed, doesn't involve commit cycle
|
|
74 |
EConfigure_Synchronous, // Message completed immediately, doesn't involve commit cycle, can be serviced even when a commit operation is pending
|
|
75 |
EConfigure_Asynchronous, // Message is not completed until operation is completed, cannot be serviced when a commit operation is pending
|
|
76 |
EAction_Asynchronous, // Message is not completed until operation is completed, cannot be serviced when a commit operation is pending
|
|
77 |
EAction_PseudoAsynchronous, // Message is completed, but all the incoming asynchronous request that involves commit are enqueued
|
|
78 |
EOther_Synchronous, // Message completed immediately, doesn't involve commit cycle, can be serviced even when a commit operation is pending
|
|
79 |
EBufferExchangeRelated, // Message completed immediately, doesn't involve commit cycle, can be serviced even when a commit operation is pending
|
|
80 |
ECustomInterfacesRelated, // Message completed immediately, doesn't involve commit cycle, can be serviced even when a commit operation is pending
|
|
81 |
EUndefinedType,
|
|
82 |
ECallBackType,
|
|
83 |
ESessionEvents,
|
|
84 |
};
|
|
85 |
|
|
86 |
public:
|
|
87 |
|
|
88 |
TMMFDevSoundRequest();
|
|
89 |
TMMFDevSoundRequest(TInt aIsCallBack);
|
|
90 |
TMMFDevSoundRequest(const TMMFDevSoundRequest& aRequest);
|
|
91 |
void SetMessage(const RMmfIpcMessage& aMessage);
|
|
92 |
void SetMessageCallback();
|
|
93 |
TBool operator==(const TMMFDevSoundRequest& aRequest) const;
|
|
94 |
const RMmfIpcMessage& Message();
|
|
95 |
TInt Function() const;
|
|
96 |
|
|
97 |
TA3FDevSoundRequestType Type() const;
|
|
98 |
TInt IsCallBack() const;
|
|
99 |
|
|
100 |
void Complete(TInt aError);
|
|
101 |
|
|
102 |
private:
|
|
103 |
TA3FDevSoundRequestType ResolveType();
|
|
104 |
|
|
105 |
private:
|
|
106 |
TBool iMessageCompleted;
|
|
107 |
|
|
108 |
/**
|
|
109 |
The encapsulated request message
|
|
110 |
*/
|
|
111 |
RMmfIpcMessage iMessage;
|
|
112 |
|
|
113 |
/**
|
|
114 |
The classification for this request
|
|
115 |
*/
|
|
116 |
TA3FDevSoundRequestType iRequestType;
|
|
117 |
|
|
118 |
TInt iCallBackPF;
|
|
119 |
};
|
|
120 |
|
|
121 |
// CLASS DECLARATION
|
|
122 |
|
|
123 |
/*
|
|
124 |
Server-side session implementation.
|
|
125 |
This class handles all the request from RMmfDevSoundProxy.
|
|
126 |
This classes uses MmfDevSoundAdaptation library and forwards all the reqeusts
|
|
127 |
to it. The main purpose of this class is to handle client server
|
|
128 |
communication.
|
|
129 |
|
|
130 |
@lib MmfDevSoundServer.lib
|
|
131 |
@since
|
|
132 |
*/
|
|
133 |
class CMMFDevSoundSession : public CMmfIpcSession,
|
|
134 |
public MDevSoundAdaptationObserver,
|
|
135 |
public MMMFDevSoundCustomInterfaceDeMuxInterface,
|
|
136 |
public MCustomInterface,
|
|
137 |
public MMMFDevSoundCustomInterfaceTarget
|
|
138 |
|
|
139 |
{
|
|
140 |
|
|
141 |
public: // Constructors and destructor
|
|
142 |
|
|
143 |
/**
|
|
144 |
Constructs, and returns a pointer to, a new CMMFDevSoundSession
|
|
145 |
object.
|
|
146 |
Leaves on failure.
|
|
147 |
@param MGlobalProperties a reference to global properties such as FourCC to format converter
|
|
148 |
@return CMMFDevSoundSession* A pointer to newly created object.
|
|
149 |
*/
|
|
150 |
static CMMFDevSoundSession* NewL(MGlobalProperties& aGlobalProperties);
|
|
151 |
|
|
152 |
/**
|
|
153 |
Destructor.
|
|
154 |
*/
|
|
155 |
~CMMFDevSoundSession();
|
|
156 |
|
|
157 |
public: // New functions
|
|
158 |
|
|
159 |
/**
|
|
160 |
Called by Client/Server framework when a new session is created.
|
|
161 |
Leaves on failure.
|
|
162 |
@since
|
|
163 |
@param const CMmfIpcServer& aServer A constant reference to server
|
|
164 |
creating this session.
|
|
165 |
@return void
|
|
166 |
*/
|
|
167 |
void CreateL(const CMmfIpcServer& aServer);
|
|
168 |
|
|
169 |
/**
|
|
170 |
Called by Client/Server framework when service request is made by the
|
|
171 |
corresponding RMmfDevSoundProxy.object.
|
|
172 |
Leaves on failure.
|
|
173 |
@since
|
|
174 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
175 |
containing request attributes.
|
|
176 |
@return void
|
|
177 |
*/
|
|
178 |
void ServiceL(const RMmfIpcMessage& aMessage);
|
|
179 |
|
|
180 |
/**
|
|
181 |
Function to handle DevSound session id request.
|
|
182 |
@since
|
|
183 |
@return TInt A integer assigned to this DevSound server.
|
|
184 |
*/
|
|
185 |
TInt DevSoundSessionId() {return iDevSoundSessionId;};
|
|
186 |
|
|
187 |
// TODO: Review if the parameter should be kept or not
|
|
188 |
void SendEventToClient(/*TMMFAudioServerEvent& aEvent*/);
|
|
189 |
|
|
190 |
/**
|
|
191 |
Method to service PostOpen request - 2nd phase async open.
|
|
192 |
Leaves on failure.
|
|
193 |
@since
|
|
194 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
195 |
containing request attributes.
|
|
196 |
@return ETrue if the request is serviced completely else EFalse.
|
|
197 |
*/
|
|
198 |
TBool DoPostOpenL(const RMmfIpcMessage& aMessage);
|
|
199 |
|
|
200 |
/**
|
|
201 |
Method to service Initialize1L request.
|
|
202 |
Leaves on failure.
|
|
203 |
@since
|
|
204 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
205 |
containing request attributes.
|
|
206 |
@return ETrue if the request is serviced completely else EFalse.
|
|
207 |
*/
|
|
208 |
TBool DoInitialize1L(const RMmfIpcMessage& aMessage);
|
|
209 |
|
|
210 |
/**
|
|
211 |
Method to service Initialize1L request that has already completed, but
|
|
212 |
not finished due to a pre-emption clash during its commit cycle(s).
|
|
213 |
Leaves on failure.
|
|
214 |
@return void
|
|
215 |
*/
|
|
216 |
void DoAlreadyCompletedInitialize1L();
|
|
217 |
|
|
218 |
/**
|
|
219 |
Method to service Initialize2L request.
|
|
220 |
Leaves on failure.
|
|
221 |
@since
|
|
222 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
223 |
containing request attributes.
|
|
224 |
@return ETrue if the request is serviced completely else EFalse.
|
|
225 |
*/
|
|
226 |
TBool DoInitialize2L(const RMmfIpcMessage& aMessage);
|
|
227 |
|
|
228 |
/**
|
|
229 |
Method to service Initialize2L request that has already completed, but
|
|
230 |
not finished due to a pre-emption clash during its commit cycle(s).
|
|
231 |
Leaves on failure.
|
|
232 |
@return void
|
|
233 |
*/
|
|
234 |
void DoAlreadyCompletedInitialize2L();
|
|
235 |
|
|
236 |
/**
|
|
237 |
Method to service Initialize3L request.
|
|
238 |
Leaves on failure.
|
|
239 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
240 |
containing request attributes.
|
|
241 |
@return ETrue if the request is serviced completely else EFalse.
|
|
242 |
*/
|
|
243 |
TBool DoInitialize3L(const RMmfIpcMessage& aMessage);
|
|
244 |
/**
|
|
245 |
Method to service Initialize4L request.
|
|
246 |
Leaves on failure.
|
|
247 |
@since
|
|
248 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
249 |
containing request attributes.
|
|
250 |
@return ETrue if the request is serviced completely else EFalse.
|
|
251 |
*/
|
|
252 |
TBool DoInitialize4L(const RMmfIpcMessage& aMessage);
|
|
253 |
|
|
254 |
/**
|
|
255 |
Method to service Initialize4L request that has already completed, but
|
|
256 |
not finished due to a pre-emption clash during its commit cycle(s).
|
|
257 |
Leaves on failure.
|
|
258 |
@return void
|
|
259 |
*/
|
|
260 |
void DoAlreadyCompletedInitialize4L();
|
|
261 |
|
|
262 |
/**
|
|
263 |
Method to service CancelInitialize request.
|
|
264 |
Leaves on failure.
|
|
265 |
@since
|
|
266 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
267 |
containing request attributes.
|
|
268 |
@return ETrue if the request is serviced completely else EFalse.
|
|
269 |
*/
|
|
270 |
TBool DoCancelInitializeL(const RMmfIpcMessage& aMessage);
|
|
271 |
|
|
272 |
/**
|
|
273 |
Method to service capabilities query request from
|
|
274 |
RMmfDevSoundProxy.
|
|
275 |
Leaves on failure.
|
|
276 |
@since
|
|
277 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
278 |
containing request attributes.
|
|
279 |
@return ETrue if the request is serviced completely else EFalse.
|
|
280 |
*/
|
|
281 |
TBool DoCapabilitiesL(const RMmfIpcMessage& aMessage);
|
|
282 |
|
|
283 |
/**
|
|
284 |
Method to service current configuration query request from
|
|
285 |
RMmfDevSoundProxy.
|
|
286 |
Leaves on failure.
|
|
287 |
@since
|
|
288 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
289 |
containing request attributes.
|
|
290 |
@return ETrue if the request is serviced completely else EFalse.
|
|
291 |
*/
|
|
292 |
TBool DoConfigL(const RMmfIpcMessage& aMessage);
|
|
293 |
|
|
294 |
/**
|
|
295 |
Method to service set current configuration request from
|
|
296 |
RMmfDevSoundProxy.
|
|
297 |
Leaves on failure.
|
|
298 |
@since
|
|
299 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
300 |
containing request attributes.
|
|
301 |
@return ETrue if the request is serviced completely else EFalse.
|
|
302 |
*/
|
|
303 |
TBool DoSetConfigL(const RMmfIpcMessage& aMessage);
|
|
304 |
|
|
305 |
/**
|
|
306 |
Method to service maximum volume query request.
|
|
307 |
Leaves on failure.
|
|
308 |
@since
|
|
309 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
310 |
containing request attributes.
|
|
311 |
@return ETrue if the request is serviced completely else EFalse.
|
|
312 |
*/
|
|
313 |
TBool DoMaxVolumeL(const RMmfIpcMessage& aMessage);
|
|
314 |
|
|
315 |
/**
|
|
316 |
Method to service current volume level query request.
|
|
317 |
Leaves on failure.
|
|
318 |
@since
|
|
319 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
320 |
containing request attributes.
|
|
321 |
@return ETrue if the request is serviced completely else EFalse.
|
|
322 |
*/
|
|
323 |
TBool DoVolumeL(const RMmfIpcMessage& aMessage);
|
|
324 |
|
|
325 |
/**
|
|
326 |
Method to service set current volume level request.
|
|
327 |
Leaves on failure.
|
|
328 |
@since
|
|
329 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
330 |
containing request attributes.
|
|
331 |
@return ETrue if the request is serviced completely else EFalse.
|
|
332 |
*/
|
|
333 |
TBool DoSetVolumeL(const RMmfIpcMessage& aMessage);
|
|
334 |
|
|
335 |
/**
|
|
336 |
Method to service maximum gain query request.
|
|
337 |
Leaves on failure.
|
|
338 |
@since
|
|
339 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
340 |
containing request attributes.
|
|
341 |
@return ETrue if the request is serviced completely else EFalse.
|
|
342 |
*/
|
|
343 |
TBool DoMaxGainL(const RMmfIpcMessage& aMessage);
|
|
344 |
|
|
345 |
/**
|
|
346 |
Method to service current gain level query request.
|
|
347 |
Leaves on failure.
|
|
348 |
@since
|
|
349 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
350 |
containing request attributes.
|
|
351 |
@return ETrue if the request is serviced completely else EFalse.
|
|
352 |
*/
|
|
353 |
TBool DoGainL(const RMmfIpcMessage& aMessage);
|
|
354 |
|
|
355 |
/**
|
|
356 |
Method to service set current gain level request.
|
|
357 |
Leaves on failure.
|
|
358 |
@since
|
|
359 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
360 |
containing request attributes.
|
|
361 |
@return ETrue if the request is serviced completely else EFalse.
|
|
362 |
*/
|
|
363 |
TBool DoSetGainL(const RMmfIpcMessage& aMessage);
|
|
364 |
|
|
365 |
/**
|
|
366 |
Method to service current play balance level query request.
|
|
367 |
Leaves on failure.
|
|
368 |
@since
|
|
369 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
370 |
containing request attributes.
|
|
371 |
@return ETrue if the request is serviced completely else EFalse.
|
|
372 |
*/
|
|
373 |
TBool DoGetPlayBalanceL(const RMmfIpcMessage& aMessage);
|
|
374 |
|
|
375 |
/**
|
|
376 |
Method to service set current play balance level request.
|
|
377 |
Leaves on failure.
|
|
378 |
@since
|
|
379 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
380 |
containing request attributes.
|
|
381 |
@return ETrue if the request is serviced completely else EFalse.
|
|
382 |
*/
|
|
383 |
TBool DoSetPlayBalanceL(const RMmfIpcMessage& aMessage);
|
|
384 |
|
|
385 |
/**
|
|
386 |
Method to service current record balance level query request.
|
|
387 |
Leaves on failure.
|
|
388 |
@since
|
|
389 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
390 |
containing request attributes.
|
|
391 |
@return ETrue if the request is serviced completely else EFalse.
|
|
392 |
*/
|
|
393 |
TBool DoGetRecordBalanceL(const RMmfIpcMessage& aMessage);
|
|
394 |
|
|
395 |
/**
|
|
396 |
Method to service set current record balance level request.
|
|
397 |
Leaves on failure.
|
|
398 |
@since
|
|
399 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
400 |
containing request attributes.
|
|
401 |
@return ETrue if the request is serviced completely else EFalse.
|
|
402 |
*/
|
|
403 |
TBool DoSetRecordBalanceL(const RMmfIpcMessage& aMessage);
|
|
404 |
|
|
405 |
/**
|
|
406 |
Method to service initialize DevSound to play request.
|
|
407 |
Leaves on failure.
|
|
408 |
@since
|
|
409 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
410 |
containing request attributes.
|
|
411 |
@return ETrue if the request is serviced completely else EFalse.
|
|
412 |
*/
|
|
413 |
TBool DoPlayInitL(const RMmfIpcMessage& aMessage);
|
|
414 |
|
|
415 |
/**
|
|
416 |
Method to service initialize DevSound to play request that has already completed,
|
|
417 |
but not finished due to a pre-emption clash during its commit cycle(s).
|
|
418 |
Leaves on failure.
|
|
419 |
@return void
|
|
420 |
*/
|
|
421 |
void DoAlreadyCompletedPlayInitL();
|
|
422 |
|
|
423 |
/**
|
|
424 |
Method to service initialize DevSound to record request.
|
|
425 |
Leaves on failure.
|
|
426 |
@since
|
|
427 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
428 |
containing request attributes.
|
|
429 |
@return ETrue if the request is serviced completely else EFalse.
|
|
430 |
*/
|
|
431 |
TBool DoRecordInitL(const RMmfIpcMessage& aMessage);
|
|
432 |
|
|
433 |
/**
|
|
434 |
Method to service initialize DevSound to record request that has already completed,
|
|
435 |
but not finished due to a pre-emption clash during its commit cycle(s).
|
|
436 |
Leaves on failure.
|
|
437 |
@return void
|
|
438 |
*/
|
|
439 |
void DoAlreadyCompletedRecordInitL();
|
|
440 |
|
|
441 |
/**
|
|
442 |
Method to service signal DevSound to playing current buffer request.
|
|
443 |
Leaves on failure.
|
|
444 |
@since
|
|
445 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
446 |
containing request attributes.
|
|
447 |
@return ETrue if the request is serviced completely else EFalse.
|
|
448 |
*/
|
|
449 |
TBool DoPlayDataL(const RMmfIpcMessage& aMessage);
|
|
450 |
|
|
451 |
/**
|
|
452 |
Method to service signal DevSound to continue record request.
|
|
453 |
Leaves on failure.
|
|
454 |
@since
|
|
455 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
456 |
containing request attributes.
|
|
457 |
@return ETrue if the request is serviced completely else EFalse.
|
|
458 |
*/
|
|
459 |
TBool DoRecordDataL(const RMmfIpcMessage& aMessage);
|
|
460 |
|
|
461 |
/**
|
|
462 |
Method to service signal DevSound to stop ongoing operation request.
|
|
463 |
Leaves on failure.
|
|
464 |
@since
|
|
465 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
466 |
containing request attributes.
|
|
467 |
@return ETrue if the request is serviced completely else EFalse.
|
|
468 |
*/
|
|
469 |
TBool DoStopL(const RMmfIpcMessage& aMessage);
|
|
470 |
|
|
471 |
/**
|
|
472 |
Method to service signal DevSound to temporarily stop ongoing
|
|
473 |
operation request.
|
|
474 |
Leaves on failure.
|
|
475 |
@since
|
|
476 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
477 |
containing request attributes.
|
|
478 |
@return ETrue if the request is serviced completely else EFalse.
|
|
479 |
*/
|
|
480 |
TBool DoPauseL(const RMmfIpcMessage& aMessage);
|
|
481 |
|
|
482 |
/**
|
|
483 |
Method to service signal DevSound to play simple tone operation
|
|
484 |
request.
|
|
485 |
Leaves on failure.
|
|
486 |
@since
|
|
487 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
488 |
containing request attributes.
|
|
489 |
@return ETrue if the request is serviced completely else EFalse.
|
|
490 |
*/
|
|
491 |
TBool DoPlayToneL(const RMmfIpcMessage& aMessage);
|
|
492 |
|
|
493 |
/**
|
|
494 |
Method to service signal DevSound to play simple tone operation
|
|
495 |
request that has already completed, but not finished due to a
|
|
496 |
pre-emption clash during its commit cycle(s).
|
|
497 |
Leaves on failure.
|
|
498 |
@return void
|
|
499 |
*/
|
|
500 |
void DoAlreadyCompletedPlayToneL();
|
|
501 |
|
|
502 |
/**
|
|
503 |
Method to service signal DevSound to play dual tone operation
|
|
504 |
request.
|
|
505 |
Leaves on failure.
|
|
506 |
@since
|
|
507 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
508 |
containing request attributes.
|
|
509 |
@return ETrue if the request is serviced completely else EFalse.
|
|
510 |
*/
|
|
511 |
TBool DoPlayDualToneL(const RMmfIpcMessage& aMessage);
|
|
512 |
|
|
513 |
/**
|
|
514 |
Method to service signal DevSound to play dual tone operation
|
|
515 |
request that has already completed, but not finished due to a
|
|
516 |
pre-emption clash during its commit cycle(s).
|
|
517 |
Leaves on failure.
|
|
518 |
@return void
|
|
519 |
*/
|
|
520 |
void DoAlreadyCompletedPlayDualToneL();
|
|
521 |
|
|
522 |
/**
|
|
523 |
Method to service signal DevSound to play DTMFString operation
|
|
524 |
request.
|
|
525 |
Leaves on failure.
|
|
526 |
@since
|
|
527 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
528 |
containing request attributes.
|
|
529 |
@return ETrue if the request is serviced completely else EFalse.
|
|
530 |
*/
|
|
531 |
TBool DoPlayDTMFStringL(const RMmfIpcMessage& aMessage);
|
|
532 |
|
|
533 |
/**
|
|
534 |
Method to service signal DevSound to play DTMFString operation
|
|
535 |
request that has already completed, but not finished due to a
|
|
536 |
pre-emption clash during its commit cycle(s).
|
|
537 |
Leaves on failure.
|
|
538 |
@return void
|
|
539 |
*/
|
|
540 |
void DoAlreadyCompletedPlayDTMFStringL();
|
|
541 |
|
|
542 |
/**
|
|
543 |
Method to service signal DevSound to play tone sequence operation
|
|
544 |
request.
|
|
545 |
Leaves on failure.
|
|
546 |
@since
|
|
547 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
548 |
containing request attributes.
|
|
549 |
@return ETrue if the request is serviced completely else EFalse.
|
|
550 |
*/
|
|
551 |
TBool DoPlayToneSequenceL(const RMmfIpcMessage& aMessage);
|
|
552 |
|
|
553 |
/**
|
|
554 |
Method to service signal DevSound to play tone sequence operation
|
|
555 |
request that has already completed, but not finished due to a
|
|
556 |
pre-emption clash during its commit cycle(s).
|
|
557 |
Leaves on failure.
|
|
558 |
@return void
|
|
559 |
*/
|
|
560 |
void DoAlreadyCompletedPlayToneSequenceL();
|
|
561 |
|
|
562 |
/**
|
|
563 |
Method to service signal DevSound to initilize DTMF String operation
|
|
564 |
request.
|
|
565 |
Leaves on failure.
|
|
566 |
@since
|
|
567 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
568 |
containing request attributes.
|
|
569 |
@return ETrue if the request is serviced completely else EFalse.
|
|
570 |
*/
|
|
571 |
TBool DoSetDTMFLengthsL(const RMmfIpcMessage& aMessage);
|
|
572 |
|
|
573 |
/**
|
|
574 |
Method to service signal DevSound to set volume ramp operation
|
|
575 |
request.
|
|
576 |
Leaves on failure.
|
|
577 |
@since
|
|
578 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
579 |
containing request attributes.
|
|
580 |
@return ETrue if the request is serviced completely else EFalse.
|
|
581 |
*/
|
|
582 |
TBool DoSetVolumeRampL(const RMmfIpcMessage& aMessage);
|
|
583 |
|
|
584 |
/**
|
|
585 |
Method to service query DevSound to return supported input data types
|
|
586 |
operation request.
|
|
587 |
Leaves on failure.
|
|
588 |
@since
|
|
589 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
590 |
containing request attributes.
|
|
591 |
@return ETrue if the request is serviced completely else EFalse.
|
|
592 |
*/
|
|
593 |
TBool DoGetSupportedInputDataTypesL(const RMmfIpcMessage& aMessage);
|
|
594 |
|
|
595 |
/**
|
|
596 |
Method to service query DevSound to copy FourCC array data
|
|
597 |
operation request.
|
|
598 |
Leaves on failure.
|
|
599 |
@since
|
|
600 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
601 |
containing request attributes.
|
|
602 |
@return ETrue if the request is serviced completely else EFalse.
|
|
603 |
*/
|
|
604 |
TBool DoCopyFourCCArrayDataL(const RMmfIpcMessage& aMessage);
|
|
605 |
|
|
606 |
/**
|
|
607 |
Method to service the request querying samples recorded so far.
|
|
608 |
Leaves on failure.
|
|
609 |
@since
|
|
610 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
611 |
containing request attributes.
|
|
612 |
@return ETrue if the request is serviced completely else EFalse.
|
|
613 |
*/
|
|
614 |
TBool DoSamplesRecordedL(const RMmfIpcMessage& aMessage);
|
|
615 |
|
|
616 |
/**
|
|
617 |
Method to service the request querying samples played so far.
|
|
618 |
Leaves on failure.
|
|
619 |
@since
|
|
620 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
621 |
containing request attributes.
|
|
622 |
@return ETrue if the request is serviced completely else EFalse.
|
|
623 |
*/
|
|
624 |
TBool DoSamplesPlayedL(const RMmfIpcMessage& aMessage);
|
|
625 |
|
|
626 |
/**
|
|
627 |
Method to service the request to set tone repeats.
|
|
628 |
Leaves on failure.
|
|
629 |
@since
|
|
630 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
631 |
containing request attributes.
|
|
632 |
@return ETrue if the request is serviced completely else EFalse.
|
|
633 |
*/
|
|
634 |
TBool DoSetToneRepeatsL(const RMmfIpcMessage& aMessage);
|
|
635 |
|
|
636 |
/**
|
|
637 |
Method to service the request to set priority settings.
|
|
638 |
Leaves on failure.
|
|
639 |
@since
|
|
640 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
641 |
containing request attributes.
|
|
642 |
@return ETrue if the request is serviced completely else EFalse.
|
|
643 |
*/
|
|
644 |
TBool DoSetPrioritySettingsL(const RMmfIpcMessage& aMessage);
|
|
645 |
|
|
646 |
/**
|
|
647 |
Method to service the request querrying supported output data types.
|
|
648 |
Leaves on failure.
|
|
649 |
@since
|
|
650 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
651 |
containing request attributes.
|
|
652 |
@return ETrue if the request is serviced completely else EFalse.
|
|
653 |
*/
|
|
654 |
TBool DoGetSupportedOutputDataTypesL(const RMmfIpcMessage& aMessage);
|
|
655 |
|
|
656 |
/**
|
|
657 |
Method to service the request querrying specifics of the TBF data
|
|
658 |
buffer.
|
|
659 |
Leaves on failure.
|
|
660 |
@since
|
|
661 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
662 |
containing request attributes.
|
|
663 |
@return ETrue if the request is serviced completely else EFalse.
|
|
664 |
*/
|
|
665 |
TBool DoBufferToBeFilledDataL(const RMmfIpcMessage& aMessage);
|
|
666 |
|
|
667 |
/**
|
|
668 |
Method to service the request querrying specifics of the TBE data
|
|
669 |
buffer.
|
|
670 |
Leaves on failure.
|
|
671 |
@since
|
|
672 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
673 |
containing request attributes.
|
|
674 |
@return ETrue if the request is serviced completely else EFalse.
|
|
675 |
*/
|
|
676 |
TBool DoBufferToBeEmptiedDataL(const RMmfIpcMessage& aMessage);
|
|
677 |
|
|
678 |
/**
|
|
679 |
|
|
680 |
Leaves on failure.
|
|
681 |
@since
|
|
682 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
683 |
containing request attributes.
|
|
684 |
@return ETrue if the request is serviced completely else EFalse.
|
|
685 |
*/
|
|
686 |
TBool DoEmptyBuffersL(const RMmfIpcMessage& aMessage);
|
|
687 |
|
|
688 |
/**
|
|
689 |
Method to service the request querrying preparation for close session
|
|
690 |
Leaves on failure.
|
|
691 |
@since
|
|
692 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
693 |
containing request attributes.
|
|
694 |
@return ETrue if the request is serviced completely else EFalse.
|
|
695 |
*/
|
|
696 |
TBool DoPrepareCloseL(const RMmfIpcMessage& aMessage);
|
|
697 |
|
|
698 |
|
|
699 |
TBool DoRegisterAsClientL(const RMmfIpcMessage& aMessage);
|
|
700 |
TBool DoCancelRegisterAsClientL(const RMmfIpcMessage& aMessage);
|
|
701 |
TBool DoGetResourceNotificationDataL(const RMmfIpcMessage& aMessage);
|
|
702 |
TBool DoWillResumePlayL(const RMmfIpcMessage& aMessage);
|
|
703 |
TBool DoSetClientThreadInfoL(const RMmfIpcMessage& aMessage);
|
|
704 |
|
|
705 |
|
|
706 |
/**
|
|
707 |
Method to get the current play time from the audio renderer
|
|
708 |
@since
|
|
709 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
710 |
containing request attributes.
|
|
711 |
@return ETrue if the request is serviced completely else EFalse.
|
|
712 |
*/
|
|
713 |
TBool DoGetTimePlayedL(const RMmfIpcMessage& aMessage);
|
|
714 |
|
|
715 |
/**
|
|
716 |
Method to query if True Pause is supported by current codec format
|
|
717 |
@since
|
|
718 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
719 |
containing request attributes.
|
|
720 |
@return ETrue if the request is serviced completely else EFalse.
|
|
721 |
*/
|
|
722 |
TBool DoQueryResumeSupportedL(const RMmfIpcMessage& aMessage);
|
|
723 |
|
|
724 |
/**
|
|
725 |
Method to service signal DevSound to resume playback, recording or tone playing
|
|
726 |
request.
|
|
727 |
Leaves on failure.
|
|
728 |
@since
|
|
729 |
@param const RMmfIpcMessage& aMessage A reference to message object
|
|
730 |
containing request attributes.
|
|
731 |
@return ETrue if the request is serviced completely else EFalse.
|
|
732 |
*/
|
|
733 |
TBool DoResumeL(const RMmfIpcMessage& aMessage);
|
|
734 |
|
|
735 |
/**
|
|
736 |
Initializes to raw audio data PCM16 and Sampling Rate of 8 KHz.
|
|
737 |
On completion of Initialization, calls InitializeComplete() on
|
|
738 |
aDevSoundObserver.
|
|
739 |
Leaves on failure.
|
|
740 |
@since
|
|
741 |
@param MDevSoundAdaptationObserver& aDevSoundObserver A reference to DevSound
|
|
742 |
Observer instance.
|
|
743 |
@param TMMFState aMode Mode for which this object will be used.
|
|
744 |
@return void
|
|
745 |
*/
|
|
746 |
void InitializeL(MDevSoundAdaptationObserver& aDevSoundObserver,
|
|
747 |
TMMFState aMode);
|
|
748 |
|
|
749 |
/**
|
|
750 |
Initializes DevSound object for the mode aMode for processing audio
|
|
751 |
data with hardware device aHWDev.
|
|
752 |
On completion of Initialization, calls InitializeComplete() on
|
|
753 |
aDevSoundObserver.
|
|
754 |
Leaves on failure.
|
|
755 |
@since
|
|
756 |
@param MDevSoundAdaptationObserver& aDevSoundObserver A reference to DevSound
|
|
757 |
Observer instance.
|
|
758 |
@param TUid aHWDev The CMMFHwDevice implementation identifier.
|
|
759 |
@param TMMFState aMode The mode for which this object will be used
|
|
760 |
@return void
|
|
761 |
*/
|
|
762 |
void InitializeL(MDevSoundAdaptationObserver& aDevSoundObserver,
|
|
763 |
TUid aHWDev,
|
|
764 |
TMMFState aMode);
|
|
765 |
|
|
766 |
/**
|
|
767 |
Initializes DevSound object for the mode aMode for processing audio
|
|
768 |
data with hardware device supporting FourCC aDesiredFourCC.
|
|
769 |
Leaves on failure.
|
|
770 |
@since
|
|
771 |
@param MDevSoundAdaptationObserver& aDevSoundObserver A reference to
|
|
772 |
the DevSound adaptation observer instance.
|
|
773 |
@param TFourCC aDesiredFourCC The CMMFHwDevice implementation FourCC
|
|
774 |
code.
|
|
775 |
@param TMMFState aMode The mode for which this object will be used
|
|
776 |
@return KErrNone if successfull, else corresponding error code
|
|
777 |
@return void
|
|
778 |
*/
|
|
779 |
void InitializeL(MDevSoundAdaptationObserver& aDevSoundObserver,
|
|
780 |
TFourCC aDesiredFourCC,
|
|
781 |
TMMFState aMode);
|
|
782 |
|
|
783 |
/**
|
|
784 |
Returns the supported Audio settings ie. encoding, sample rates,
|
|
785 |
mono/stereo operation, buffer size etc..
|
|
786 |
@since
|
|
787 |
@return TMMFCapabilities The device settings.
|
|
788 |
*/
|
|
789 |
TMMFCapabilities Capabilities();
|
|
790 |
|
|
791 |
/**
|
|
792 |
Returns the current device configuration.
|
|
793 |
@since
|
|
794 |
@return TMMFCapabilities The device settings.
|
|
795 |
*/
|
|
796 |
TMMFCapabilities Config() const;
|
|
797 |
|
|
798 |
/**
|
|
799 |
Configure CMMFDevSound object with the settings in aConfig. Use this
|
|
800 |
to set sampling rate, encoding and mono/stereo.
|
|
801 |
Leaves on failure.
|
|
802 |
@since
|
|
803 |
@param const TMMFCapabilities& aConfig The attribute values to which
|
|
804 |
CMMFDevSound object will be configured to.
|
|
805 |
@return void
|
|
806 |
*/
|
|
807 |
void SetConfigL(const TMMFCapabilities& aCaps);
|
|
808 |
|
|
809 |
/**
|
|
810 |
Returns an integer representing the maximum volume device supports.
|
|
811 |
This is the maximum value which can be passed to
|
|
812 |
CMMFDevSound::SetVolume.
|
|
813 |
@since
|
|
814 |
@return TInt The maximum volume. This value is platform dependent but
|
|
815 |
is always greater than or equal to one.
|
|
816 |
*/
|
|
817 |
TInt MaxVolume();
|
|
818 |
|
|
819 |
/**
|
|
820 |
Returns an integer representing the current volume.
|
|
821 |
@since
|
|
822 |
@return TInt The current volume level.
|
|
823 |
*/
|
|
824 |
TInt Volume();
|
|
825 |
|
|
826 |
/**
|
|
827 |
Changes the current playback volume to a specified value. The volume
|
|
828 |
can be changed before or during playback and is effective immediately.
|
|
829 |
@since
|
|
830 |
@param TInt aVolume The volume setting. This can be any value from 0
|
|
831 |
to the value returned by a call to
|
|
832 |
CMMFDevSound::MaxVolume(). If the volume is not
|
|
833 |
within this range, the volume is automatically set
|
|
834 |
to minimum or maximum value based on the value
|
|
835 |
that is being passed. Setting a zero value mutes
|
|
836 |
the sound. Setting the maximum value results in
|
|
837 |
the loudest possible sound.
|
|
838 |
@return void
|
|
839 |
*/
|
|
840 |
void SetVolume(TInt aVolume);
|
|
841 |
|
|
842 |
/**
|
|
843 |
Returns an integer representing the maximum gain the device supports.
|
|
844 |
This is the maximum value which can be passed to CMMFDevSound::SetGain
|
|
845 |
@since
|
|
846 |
@return TInt The maximum gain. This value is platform dependent but is
|
|
847 |
always greater than or equal to one.
|
|
848 |
*/
|
|
849 |
TInt MaxGain();
|
|
850 |
|
|
851 |
/**
|
|
852 |
Returns an integer representing the current gain.
|
|
853 |
@since
|
|
854 |
@return TInt The current gain level.
|
|
855 |
*/
|
|
856 |
TInt Gain();
|
|
857 |
|
|
858 |
/**
|
|
859 |
Changes the current recording gain to a specified value. The gain can
|
|
860 |
be changed before or during recording and is effective immediately.
|
|
861 |
@since
|
|
862 |
@param TInt aGain The gain setting. This can be any value from zero to
|
|
863 |
the value returned by a call to
|
|
864 |
CMMFDevSound::MaxGain(). If the volume
|
|
865 |
is not within this range, the gain is automatically
|
|
866 |
set to minimum or maximum value based on the value
|
|
867 |
that is being passed. Setting a zero value mutes the
|
|
868 |
sound. Setting the maximum value results in the
|
|
869 |
loudest possible sound.
|
|
870 |
@return void
|
|
871 |
*/
|
|
872 |
void SetGain(TInt aGain);
|
|
873 |
|
|
874 |
/**
|
|
875 |
Returns the speaker balance set for playing.
|
|
876 |
Leaves on failure.
|
|
877 |
@since
|
|
878 |
@param TInt &aLeftPercentage On return contains the left speaker
|
|
879 |
volume percentage.
|
|
880 |
@param TInt &aRightPercentage On return contains the right speaker
|
|
881 |
volume percentage.
|
|
882 |
@return void
|
|
883 |
*/
|
|
884 |
void GetPlayBalanceL(TInt& aLeftPercentage, TInt& aRightPercentage);
|
|
885 |
|
|
886 |
/**
|
|
887 |
Sets the speaker balance for playing. The speaker balance can be
|
|
888 |
changed before or during playback and is effective immediately.
|
|
889 |
Leaves on failure.
|
|
890 |
@since
|
|
891 |
@param TInt aLeftPercentage The left speaker volume percentage. This
|
|
892 |
can be any value from zero to 100. Setting
|
|
893 |
a zero value mutes the sound on left
|
|
894 |
speaker.
|
|
895 |
@param TInt aRightPercentage The right speaker volume percentage.
|
|
896 |
This can be any value from zero to 100.
|
|
897 |
Setting a zero value mutes the sound on
|
|
898 |
right speaker.
|
|
899 |
@return void
|
|
900 |
*/
|
|
901 |
void SetPlayBalanceL(TInt aLeftPercentage, TInt aRightPercentage);
|
|
902 |
|
|
903 |
/**
|
|
904 |
Returns the microphone gain balance set for recording.
|
|
905 |
Leaves on failure.
|
|
906 |
@since
|
|
907 |
@param TInt &aLeftPercentage On return contains the left microphone
|
|
908 |
gain percentage.
|
|
909 |
@param TInt &aRightPercentage On return contains the right microphone
|
|
910 |
gain percentage.
|
|
911 |
@return void
|
|
912 |
*/
|
|
913 |
void GetRecordBalanceL(TInt& aLeftPercentage, TInt& aRightPercentage);
|
|
914 |
/**
|
|
915 |
Sets the microphone balance for recording. The microphone balance can
|
|
916 |
be changed before or during recording and is effective immediately.
|
|
917 |
Leaves on failure.
|
|
918 |
@since
|
|
919 |
@param TInt aLeftPercentage The left microphone gain percentage. This
|
|
920 |
can be any value from zero to 100. Setting
|
|
921 |
a zero value mutes the sound from left
|
|
922 |
microphone.
|
|
923 |
@param TInt aRightPercentage The right microphone gain percentage.
|
|
924 |
This can be any value from zero to 100.
|
|
925 |
Setting a zero value mutes the sound from
|
|
926 |
right microphone.
|
|
927 |
@return void
|
|
928 |
*/
|
|
929 |
void SetRecordBalanceL(TInt aLeftPercentage, TInt aRightPercentage);
|
|
930 |
|
|
931 |
/**
|
|
932 |
Initializes the audio device and starts the play process. This
|
|
933 |
function queries and acquires the audio policy before initializing
|
|
934 |
audio device. If there was an error during policy initialization,
|
|
935 |
PlayError() function will be called on the observer with error code
|
|
936 |
KErrAccessDenied, otherwise BufferToBeFilled() function will be called
|
|
937 |
with a buffer reference. After reading data into the buffer reference
|
|
938 |
passed, the client should call PlayData() to play data.
|
|
939 |
The amount of data that can be played is specified in
|
|
940 |
CMMFBuffer::RequestSize(). Any data that is read into buffer beyond
|
|
941 |
this size will be ignored.
|
|
942 |
Leaves on failure.
|
|
943 |
@since
|
|
944 |
@return void
|
|
945 |
*/
|
|
946 |
void PlayInitL();
|
|
947 |
|
|
948 |
/**
|
|
949 |
Initializes the audio device and starts the record process. This
|
|
950 |
function queries and acquires the audio policy before initializing
|
|
951 |
audio device. If there was an error during policy initialization,
|
|
952 |
RecordError() function will be called on the observer with error code
|
|
953 |
KErrAccessDenied, otherwise BufferToBeEmptied() function will be called
|
|
954 |
with a buffer reference. This buffer contains recorded or encoded
|
|
955 |
data. After processing data in the buffer reference passed, the client
|
|
956 |
should call RecordData() to continue recording process.
|
|
957 |
The amount of data that is available is specified in
|
|
958 |
CMMFBuffer::RequestSize().
|
|
959 |
Leaves on failure.
|
|
960 |
@since
|
|
961 |
@return void
|
|
962 |
*/
|
|
963 |
void RecordInitL();
|
|
964 |
|
|
965 |
/**
|
|
966 |
Plays data in the buffer at the current volume.
|
|
967 |
The client should fill the buffer with audio data before calling this
|
|
968 |
function. The observer gets a reference to the buffer along with the
|
|
969 |
callback function BufferToBeFilled(). When playing of the audio sample
|
|
970 |
is complete, successfully or otherwise, the function PlayError() on
|
|
971 |
the observer is called.
|
|
972 |
The last buffer of the audio stream being played should have the last
|
|
973 |
buffer flag set using CMMFBuffer::SetLastBuffer(TBool). If a
|
|
974 |
subsequent attempt to play the clip is made, this flag will need
|
|
975 |
resetting by the client.
|
|
976 |
@return void
|
|
977 |
*/
|
|
978 |
void PlayData();
|
|
979 |
|
|
980 |
/**
|
|
981 |
Contine the process of recording.
|
|
982 |
Once the buffer is filled with recorded data, the Observer gets a
|
|
983 |
reference to the buffer along with the callback function
|
|
984 |
BufferToBeEmptied(). After processing the buffer (copying over to a
|
|
985 |
different buffer or writing to file) the client should call this
|
|
986 |
function to continue the recording process.
|
|
987 |
@return void
|
|
988 |
*/
|
|
989 |
void RecordData();
|
|
990 |
|
|
991 |
/**
|
|
992 |
Stops the ongoing operation (Play, Record, TonePlay).
|
|
993 |
@since
|
|
994 |
@return void
|
|
995 |
*/
|
|
996 |
void Stop();
|
|
997 |
|
|
998 |
/**
|
|
999 |
Temporarily Stops the ongoing operation (Play, Record, TonePlay).
|
|
1000 |
@since
|
|
1001 |
@return void
|
|
1002 |
*/
|
|
1003 |
void Pause();
|
|
1004 |
|
|
1005 |
/**
|
|
1006 |
Returns the Sample recorded so far
|
|
1007 |
@since
|
|
1008 |
@return TInt Returns the samples recorded.
|
|
1009 |
*/
|
|
1010 |
TInt SamplesRecorded();
|
|
1011 |
|
|
1012 |
/**
|
|
1013 |
Returns the Sample played so far
|
|
1014 |
@since
|
|
1015 |
@return TInt Returns the samples played.
|
|
1016 |
*/
|
|
1017 |
TInt SamplesPlayed();
|
|
1018 |
|
|
1019 |
/**
|
|
1020 |
Initializes the audio device and starts playing a tone. The tone is
|
|
1021 |
played with the frequency and duration specified.
|
|
1022 |
Leaves on failure.
|
|
1023 |
@since
|
|
1024 |
@param TInt aFrequency The frequency at which the tone will be played.
|
|
1025 |
@param const TTimeIntervalMicroSeconds &aDuration The period over
|
|
1026 |
which the tone will be played. A zero value causes the no tone
|
|
1027 |
to be played.
|
|
1028 |
@return void
|
|
1029 |
*/
|
|
1030 |
void PlayToneL(TInt aFrequency,
|
|
1031 |
const TTimeIntervalMicroSeconds& aDuration);
|
|
1032 |
|
|
1033 |
/**
|
|
1034 |
Initializes audio device and starts playing a dual tone. Dual Tone is
|
|
1035 |
played with the specified frequencies and for the specified duration.
|
|
1036 |
Leaves on failure.
|
|
1037 |
@since
|
|
1038 |
@param TInt aFrequencyOne The first frequency of dual tone.
|
|
1039 |
@param TInt aFrequencyTwo The second frequency of dual tone.
|
|
1040 |
@param const TTimeIntervalMicroSeconds &aDuration The period over
|
|
1041 |
which the tone will be played. A zero value causes the no tone
|
|
1042 |
to be played.
|
|
1043 |
@return void
|
|
1044 |
*/
|
|
1045 |
void PlayDualToneL(TInt aFrequencyOne,
|
|
1046 |
TInt aFrequencyTwo,
|
|
1047 |
const TTimeIntervalMicroSeconds& aDuration);
|
|
1048 |
|
|
1049 |
/**
|
|
1050 |
Initializes the audio device and starts playing the DTMF string
|
|
1051 |
aDTMFString.
|
|
1052 |
Leaves on failure.
|
|
1053 |
@since
|
|
1054 |
@param const TDesC &aDTMFString The DTMF sequence in a descriptor.
|
|
1055 |
@return void
|
|
1056 |
*/
|
|
1057 |
void PlayDTMFStringL(const TDesC& aDTMFString);
|
|
1058 |
|
|
1059 |
/**
|
|
1060 |
Initializes the audio device and starts playing a tone sequence.
|
|
1061 |
Leaves on failure.
|
|
1062 |
@since
|
|
1063 |
@param const TDesC8 &aData The tone sequence in a descriptor.
|
|
1064 |
@return void
|
|
1065 |
*/
|
|
1066 |
void PlayToneSequenceL(const TDesC8& aData);
|
|
1067 |
|
|
1068 |
/**
|
|
1069 |
Defines the number of times the audio is to be repeated during the
|
|
1070 |
tone playback operation. A period of silence can follow each playing
|
|
1071 |
of a tone. The tone playing can be repeated indefinitely
|
|
1072 |
@since
|
|
1073 |
@param TInt aRepeatCount The number of times the tone, together with
|
|
1074 |
the trailing silence, is to be repeated. If this is set to
|
|
1075 |
KMdaRepeatForever, then the tone, together with the trailing
|
|
1076 |
silence, is repeated indefinitely or until Stop() is called.
|
|
1077 |
If this is set to zero, then the tone is not repeated.
|
|
1078 |
@param const TTimeIntervalMicroSeconds &aRepeatTrailingSilence An
|
|
1079 |
interval of silence which will be played after each tone.
|
|
1080 |
Supported only during tone playing.
|
|
1081 |
@return void
|
|
1082 |
*/
|
|
1083 |
void SetToneRepeats(
|
|
1084 |
TInt aRepeatCount,
|
|
1085 |
const TTimeIntervalMicroSeconds& aRepeatTrailingSilence);
|
|
1086 |
|
|
1087 |
/**
|
|
1088 |
Defines the duration of tone on, tone off and tone pause to be used
|
|
1089 |
during the DTMF tone playback operation.
|
|
1090 |
Supported only during tone playing.
|
|
1091 |
@since
|
|
1092 |
@param TTimeIntervalMicroSeconds32 &aToneOnLength The period over
|
|
1093 |
which the tone will be played. If this is set to zero, then the
|
|
1094 |
tone is not played.
|
|
1095 |
@param TTimeIntervalMicroSeconds32 &aToneOffLength The period over
|
|
1096 |
which the no tone will be played.
|
|
1097 |
@param TTimeIntervalMicroSeconds32 &aPauseLength The period over which
|
|
1098 |
the tone playing will be paused.
|
|
1099 |
@return void
|
|
1100 |
*/
|
|
1101 |
void SetDTMFLengths(TTimeIntervalMicroSeconds32& aToneOnLength,
|
|
1102 |
TTimeIntervalMicroSeconds32& aToneOffLength,
|
|
1103 |
TTimeIntervalMicroSeconds32& aPauseLength);
|
|
1104 |
|
|
1105 |
/**
|
|
1106 |
Defines the period over which the volume level is to rise smoothly
|
|
1107 |
from nothing to the normal volume level.
|
|
1108 |
The function is only available before playing.
|
|
1109 |
@since
|
|
1110 |
@param const TTimeIntervalMicroSeconds &aRampDuration The period over
|
|
1111 |
which the volume is to rise. A zero value causes the tone
|
|
1112 |
sample to be played at the normal level for the full duration
|
|
1113 |
of the playback. A value, which is longer than the duration of
|
|
1114 |
the tone sample means that the sample never reaches its normal
|
|
1115 |
volume level.
|
|
1116 |
@return void
|
|
1117 |
*/
|
|
1118 |
void SetVolumeRamp(const TTimeIntervalMicroSeconds& aRampDuration);
|
|
1119 |
|
|
1120 |
/**
|
|
1121 |
Defines the priority settings that should be used for this instance.
|
|
1122 |
@since
|
|
1123 |
@param const TMMFPrioritySettings &aPrioritySettings A class type
|
|
1124 |
representing the client's priority, priority preference and
|
|
1125 |
state
|
|
1126 |
@return void
|
|
1127 |
*/
|
|
1128 |
void SetPrioritySettings(TMMFPrioritySettings& aPrioritySettings);
|
|
1129 |
|
|
1130 |
/**
|
|
1131 |
Returns a pointer reference to custom interface implementation.
|
|
1132 |
Note: Implementation from MCustomInterface.
|
|
1133 |
@since
|
|
1134 |
@return "TAny"
|
|
1135 |
Custom interface implementation. The exact type of pointer is
|
|
1136 |
dependent on the custom interface implemenation.
|
|
1137 |
*/
|
|
1138 |
virtual TAny* CustomInterface(TUid aInterfaceId);
|
|
1139 |
|
|
1140 |
/**
|
|
1141 |
Returns a list of the supported input datatypes that can be sent to
|
|
1142 |
DevSound for playing audio. The datatypes returned are those that the
|
|
1143 |
DevSound supports given the priority settings passed in
|
|
1144 |
aPrioritySettings. Note that if no supported data types are found this
|
|
1145 |
does not constitute failure, the function will return normally with no
|
|
1146 |
entries in aSupportedDataTypes.
|
|
1147 |
@since
|
|
1148 |
@param RArray< TFourCC > &aSupportedDataTypes The array of supported
|
|
1149 |
data types that will be filled in by this function. The
|
|
1150 |
supported data types of the DevSound are in the form of an
|
|
1151 |
array of TFourCC codes. Any existing entries in the array will
|
|
1152 |
be overwritten on calling this function. If no supported data
|
|
1153 |
types are found given the priority settings, then the
|
|
1154 |
aSupportedDatatypes array will have zero entries.
|
|
1155 |
@param const TMMFPrioritySettings &aPrioritySettings The priority
|
|
1156 |
settings used to determine the supported datatypes. Note this
|
|
1157 |
does not set the priority settings. For input datatypes the
|
|
1158 |
iState member of the priority settings would be expected to be
|
|
1159 |
either EMMFStatePlaying or EMMFStatePlayingRecording. The
|
|
1160 |
priority settings may effect the supported datatypes depending
|
|
1161 |
on the audio routing.
|
|
1162 |
@return void
|
|
1163 |
*/
|
|
1164 |
void GetSupportedInputDataTypesL(
|
|
1165 |
RArray<TFourCC>& aSupportedDataTypes,
|
|
1166 |
const TMMFPrioritySettings& aPrioritySettings) const;
|
|
1167 |
|
|
1168 |
/**
|
|
1169 |
Returns a list of the supported output dataypes that can be received
|
|
1170 |
from DevSound for recording audio. The datatypes returned are those
|
|
1171 |
that the DevSound supports given the priority settings passed in
|
|
1172 |
aPrioritySettings. Note that if no supported data types are found this
|
|
1173 |
does not constitute failure, the function will return normally with no
|
|
1174 |
entries in aSupportedDataTypes.
|
|
1175 |
@since
|
|
1176 |
@param RArray< TFourCC > &aSupportedDataTypes The array of supported
|
|
1177 |
data types that will be filled in by this function. The
|
|
1178 |
supported datatypes of the DevSound are in the form of an array
|
|
1179 |
of TFourCC codes. Any existing entries in the array will be
|
|
1180 |
overwritten on calling this function. If no supported datatypes
|
|
1181 |
are found given the priority settings, then the
|
|
1182 |
aSupportedDatatypes array will have zero entries.
|
|
1183 |
@param const TMMFPrioritySettings &aPrioritySettings The priority
|
|
1184 |
settings used to determine the supported data types. Note this
|
|
1185 |
does not set the priority settings. For output data types the
|
|
1186 |
iState member of the priority settings would expected to be
|
|
1187 |
either EMMFStateRecording or EMMFStatePlayingRecording. The
|
|
1188 |
priority settings may effect the supported datatypes depending
|
|
1189 |
on the audio routing.
|
|
1190 |
@return void
|
|
1191 |
*/
|
|
1192 |
void GetSupportedOutputDataTypesL(
|
|
1193 |
RArray<TFourCC>& aSupportedDataTypes,
|
|
1194 |
const TMMFPrioritySettings& aPrioritySettings) const;
|
|
1195 |
|
|
1196 |
/**
|
|
1197 |
MDevSoundAdaptationObserver callback.
|
|
1198 |
This is called when DevSound initialization is complete.
|
|
1199 |
@since
|
|
1200 |
@param TInt aError KErrNone if successfull, else corresponding error
|
|
1201 |
code
|
|
1202 |
@return void
|
|
1203 |
*/
|
|
1204 |
void InitializeComplete(TInt aError);
|
|
1205 |
|
|
1206 |
/**
|
|
1207 |
MDevSoundAdaptationObserver callback.
|
|
1208 |
This is called when tone play back is complete.
|
|
1209 |
@since
|
|
1210 |
@param TInt aError KErrNone if successfull, else corresponding error
|
|
1211 |
code
|
|
1212 |
@return void
|
|
1213 |
*/
|
|
1214 |
void ToneFinished(TInt aError);
|
|
1215 |
|
|
1216 |
/**
|
|
1217 |
MDevSoundAdaptationObserver callback.
|
|
1218 |
This is called when more data is needed during digital audio playback.
|
|
1219 |
@since
|
|
1220 |
@param CMMFBuffer* aBuffer A pointer to buffer where data is needed.
|
|
1221 |
@return void
|
|
1222 |
*/
|
|
1223 |
void BufferToBeFilled(CMMFBuffer* aBuffer);
|
|
1224 |
|
|
1225 |
/**
|
|
1226 |
MDevSoundAdaptationObserver callback.
|
|
1227 |
This is called when there is error during playback.
|
|
1228 |
@since
|
|
1229 |
@param TInt aError KErrUnderflow if last buffer is played back, else
|
|
1230 |
corresponding error code
|
|
1231 |
@return void
|
|
1232 |
*/
|
|
1233 |
void PlayError(TInt aError);
|
|
1234 |
|
|
1235 |
/**
|
|
1236 |
MDevSoundAdaptationObserver callback.
|
|
1237 |
This is called when data is available during digital audio recording.
|
|
1238 |
@since
|
|
1239 |
@param CMMFBuffer* aBuffer A pointer to buffer where recorded data is
|
|
1240 |
available.
|
|
1241 |
@return void
|
|
1242 |
*/
|
|
1243 |
void BufferToBeEmptied(CMMFBuffer* aBuffer);
|
|
1244 |
|
|
1245 |
/**
|
|
1246 |
MDevSoundAdaptationObserver callback.
|
|
1247 |
This is called when there is error during recording.
|
|
1248 |
@since
|
|
1249 |
@param TInt aError Corresponding error code
|
|
1250 |
@return void
|
|
1251 |
*/
|
|
1252 |
void RecordError(TInt aError);
|
|
1253 |
|
|
1254 |
/**
|
|
1255 |
MDevSoundAdaptationObserver callback.
|
|
1256 |
This is called when there is a message from audio device.
|
|
1257 |
@since
|
|
1258 |
@param TUid aMessageType A Uid identifying message type.
|
|
1259 |
@param const TDesC8& aMsg A reference to constant descriptor
|
|
1260 |
containing packed message.
|
|
1261 |
@return void
|
|
1262 |
*/
|
|
1263 |
void DeviceMessage(TUid aMessageType, const TDesC8& aMsg);
|
|
1264 |
|
|
1265 |
|
|
1266 |
// from MMMFDevSoundCustomInterfaceDeMuxPlugin
|
|
1267 |
/**
|
|
1268 |
MDevSoundAdaptationObserver callback.
|
|
1269 |
Underlying interface has been (or is about to be) deleted.
|
|
1270 |
Implementations will generally cancel outstanding messages
|
|
1271 |
|
|
1272 |
@param aInterfaceId Uid of the Interface which has been deleted
|
|
1273 |
*/
|
|
1274 |
|
|
1275 |
void InterfaceDeleted(TUid aInterfaceId);
|
|
1276 |
|
|
1277 |
/**
|
|
1278 |
MDevSoundAdaptationObserver callback.
|
|
1279 |
Not used.
|
|
1280 |
@since
|
|
1281 |
@param const TMMFEvent& aEvent Not used
|
|
1282 |
@return void
|
|
1283 |
*/
|
|
1284 |
void SendEventToClient(const TMMFEvent& aEvent);
|
|
1285 |
|
|
1286 |
void DoProcessingFinished();
|
|
1287 |
void DoProcessingError();
|
|
1288 |
|
|
1289 |
/**
|
|
1290 |
MDevSoundAdaptationObserver callback.
|
|
1291 |
Underlying physical adaptation has sent a callback that will result either on a commit
|
|
1292 |
and need to scheduled or in the case of RecordPauseComplete, completes the message.
|
|
1293 |
@since
|
|
1294 |
@param aType the callback type
|
|
1295 |
@param aError KErrNone if successful, else corresponding error
|
|
1296 |
code
|
|
1297 |
*/
|
|
1298 |
void CallbackFromAdaptorReceived(TInt aType, TInt aError);
|
|
1299 |
|
|
1300 |
|
|
1301 |
/**
|
|
1302 |
MDevSoundAdaptationObserver callback.
|
|
1303 |
Underlying physical adaptation has sent a callback indicating that a preemption process
|
|
1304 |
has started, any incomming commands will be queued during the preemption.
|
|
1305 |
|
|
1306 |
@since
|
|
1307 |
*/
|
|
1308 |
void PreemptionStartedCallbackReceived();
|
|
1309 |
|
|
1310 |
|
|
1311 |
/**
|
|
1312 |
MDevSoundAdaptationObserver callback.
|
|
1313 |
Underlying physical adaptation has sent a callback indicating that a preemption process
|
|
1314 |
has finished. Queued commands during preemption can now be processed.
|
|
1315 |
@since
|
|
1316 |
@param aCanStartNewOperation If EFalse indicates that the operation has more than a cycle
|
|
1317 |
*/
|
|
1318 |
void PreemptionFinishedCallbackReceived(TBool aCanStartNewOperation);
|
|
1319 |
|
|
1320 |
// from MDevSoundAdaptationObserver
|
|
1321 |
TBool AdaptorControlsContext() const;
|
|
1322 |
void PreemptionClash();
|
|
1323 |
void PreemptionClashWithStateChange();
|
|
1324 |
void NotifyError(TInt aError);
|
|
1325 |
|
|
1326 |
/**
|
|
1327 |
MDevSoundAdaptationObserver callback.
|
|
1328 |
Indicates that a low layer operation completion
|
|
1329 |
@since
|
|
1330 |
@param aError The status of operation in progress
|
|
1331 |
@param aCanStartNewOperation If EFalse indicates that the operation has more than a cycle
|
|
1332 |
*/
|
|
1333 |
void AsynchronousOperationComplete(TInt aError, TBool aCanStartNewOperation);
|
|
1334 |
|
|
1335 |
|
|
1336 |
// from MMMFDevSoundCustomInterfaceDeMuxInterface
|
|
1337 |
TInt DoOpenSlaveL(TUid aInterface, const TDesC8& aPackageBuf);
|
|
1338 |
void DoCloseSlaveL(TInt aHandle);
|
|
1339 |
TInt DoSendSlaveSyncCommandL(const RMmfIpcMessage& aMessage);
|
|
1340 |
TInt DoSendSlaveSyncCommandResultL(const RMmfIpcMessage& aMessage);
|
|
1341 |
void DoSendSlaveAsyncCommandL(const RMmfIpcMessage& aMessage);
|
|
1342 |
void DoSendSlaveAsyncCommandResultL(const RMmfIpcMessage& aMessage);
|
|
1343 |
|
|
1344 |
|
|
1345 |
private: // Functions
|
|
1346 |
|
|
1347 |
/**
|
|
1348 |
Returns a object reference to CMMFObjectContainer.
|
|
1349 |
@since
|
|
1350 |
@return CMMFObjectContainer& A reference to CMMFObjectContainer
|
|
1351 |
implemenation.
|
|
1352 |
*/
|
|
1353 |
CMMFObjectContainer& MMFObjectContainerL();
|
|
1354 |
|
|
1355 |
/**
|
|
1356 |
Returns a object reference to CMMFObjectContainer.
|
|
1357 |
@since
|
|
1358 |
@return CMMFCustomCommandParserBase& aParser A reference to
|
|
1359 |
Custom command parser implemenation.
|
|
1360 |
@return void
|
|
1361 |
*/
|
|
1362 |
void AddCustomCommandParserL(CMMFCustomCommandParserBase& aParser);
|
|
1363 |
|
|
1364 |
/**
|
|
1365 |
Method to set client configuration information to DevSound Adaptation.
|
|
1366 |
Leaves on failure.
|
|
1367 |
@since
|
|
1368 |
@return void
|
|
1369 |
*/
|
|
1370 |
void DoSetClientConfigL();
|
|
1371 |
|
|
1372 |
/**
|
|
1373 |
Equivalent of DoSetClientConfigL() that returns error
|
|
1374 |
@return system-wide error
|
|
1375 |
*/
|
|
1376 |
TInt DoSetClientConfig();
|
|
1377 |
|
|
1378 |
/**
|
|
1379 |
Method to create global chunk
|
|
1380 |
@since
|
|
1381 |
@param TMMFDevSoundProxyHwBufPckg& - buffer information container
|
|
1382 |
@param CMMFDataBuffer* - data buffer pointer
|
|
1383 |
@return void
|
|
1384 |
*/
|
|
1385 |
TInt CreateChunk(TMMFDevSoundProxyHwBufPckg& aBufPckg, TInt aRequestedSize);
|
|
1386 |
|
|
1387 |
|
|
1388 |
// New internal methods
|
|
1389 |
/*
|
|
1390 |
Services the first request at the FIFO
|
|
1391 |
*/
|
|
1392 |
void DoServiceRequestL(const RMmfIpcMessage& aMessage);
|
|
1393 |
|
|
1394 |
/*
|
|
1395 |
Services the first request of queue for a pseudo asynchronous function that has already completed,
|
|
1396 |
but needs to be re-applied again due to pre-emption clash.
|
|
1397 |
*/
|
|
1398 |
void DoServiceAlreadyCompletedRequestL(const TInt aFunction);
|
|
1399 |
|
|
1400 |
/*
|
|
1401 |
Handles the first request of queue for a pseudo asynchronous function that has already completed,
|
|
1402 |
but needs to be re-applied again due to pre-emption clash.
|
|
1403 |
*/
|
|
1404 |
void HandleAlreadyCompletedRequest();
|
|
1405 |
|
|
1406 |
/*
|
|
1407 |
Services the first request at the FIFO
|
|
1408 |
*/
|
|
1409 |
void DoServiceNextRequestL();
|
|
1410 |
|
|
1411 |
/*
|
|
1412 |
Completes the message
|
|
1413 |
@param aReason the error to complete message
|
|
1414 |
@param aOperationComplete if is true also this message will be removed from the queue
|
|
1415 |
if is false just the message will be completed but will be keeped at the queue
|
|
1416 |
*/
|
|
1417 |
void CompleteRequest(TInt aReason);
|
|
1418 |
|
|
1419 |
/*
|
|
1420 |
Adds a message to the FIFO
|
|
1421 |
*/
|
|
1422 |
void EnqueueRequest(const RMmfIpcMessage& aMessage);
|
|
1423 |
|
|
1424 |
/*
|
|
1425 |
Removes the message from the FIFO
|
|
1426 |
*/
|
|
1427 |
void DequeueRequest();
|
|
1428 |
|
|
1429 |
|
|
1430 |
|
|
1431 |
/*
|
|
1432 |
Flush event queue - called as part of Stop() sequence
|
|
1433 |
*/
|
|
1434 |
void FlushEventQueue();
|
|
1435 |
|
|
1436 |
/*
|
|
1437 |
Filter certain events from message queue
|
|
1438 |
*/
|
|
1439 |
void FilterQueueEvent(TMMFDevSoundProxyRequest aRequest);
|
|
1440 |
|
|
1441 |
/*
|
|
1442 |
Called by a server when it receives a disconnect message for the session.
|
|
1443 |
Overrided in order to perform asynchronous cleanup actions
|
|
1444 |
these actions must end with a call to the base class implementation of this method
|
|
1445 |
which will delete the session object and complete the disconnect message
|
|
1446 |
*/
|
|
1447 |
void Disconnect(const RMessage2& aMessage);
|
|
1448 |
|
|
1449 |
//panic function
|
|
1450 |
void Panic(TMMFDevSoundSessionPanicCodes aCode);
|
|
1451 |
|
|
1452 |
/*
|
|
1453 |
Used to send a stop call when error in buffer
|
|
1454 |
*/
|
|
1455 |
void BufferErrorEvent();
|
|
1456 |
|
|
1457 |
/*
|
|
1458 |
Removes all entries from iQueuedRequests except for
|
|
1459 |
disconnect requests.
|
|
1460 |
*/
|
|
1461 |
void FlushQueuedRequests();
|
|
1462 |
|
|
1463 |
/*
|
|
1464 |
Helper functions, used to guard against accessing the equivalent
|
|
1465 |
functions on bad message handles during a disconnection. These
|
|
1466 |
methods should be used whenever a Read or Write is made outside the
|
|
1467 |
context of DoServiceRequestL().
|
|
1468 |
*/
|
|
1469 |
TInt MessageRead(const RMmfIpcMessage& aMessage, TInt aParam, TDes8& aResult);
|
|
1470 |
TInt MessageRead(const RMmfIpcMessage& aMessage, TInt aParam, TDes16& aResult);
|
|
1471 |
TInt MessageWrite(const RMmfIpcMessage& aMessage, TInt aParam, const TDesC8& aValue);
|
|
1472 |
|
|
1473 |
protected:
|
|
1474 |
|
|
1475 |
/**
|
|
1476 |
C++ default constructor.
|
|
1477 |
*/
|
|
1478 |
CMMFDevSoundSession();
|
|
1479 |
/**
|
|
1480 |
By default Symbian 2nd phase constructor is private.
|
|
1481 |
*/
|
|
1482 |
void ConstructL(MGlobalProperties& aGlobalProperties);
|
|
1483 |
|
|
1484 |
private:
|
|
1485 |
TBool DoCustomCommandL(const RMmfIpcMessage& aMessage);
|
|
1486 |
MMMFDevSoundCustomInterfaceDeMuxPlugin* InterfaceFromUid(TUid aUid);
|
|
1487 |
|
|
1488 |
static TInt AsyncQueueStartCallback(TAny* aPtr);
|
|
1489 |
void AsyncQueueStartCallback();
|
|
1490 |
|
|
1491 |
void ResetNotifiedError();
|
|
1492 |
TInt NotifiedError() const;
|
|
1493 |
|
|
1494 |
TBool NeedToQueue() const;
|
|
1495 |
|
|
1496 |
protected: // Data
|
|
1497 |
CMMFDevSoundAdaptation* iAdapter;
|
|
1498 |
|
|
1499 |
private: // Data
|
|
1500 |
// A number representing the session id
|
|
1501 |
TInt iDevSoundSessionId;
|
|
1502 |
// Reference to play buffer
|
|
1503 |
CMMFDataBuffer* iBufferPlay;
|
|
1504 |
// Reference to record buffer
|
|
1505 |
CMMFDataBuffer* iBufferRecord;
|
|
1506 |
// Array to hold supported input/output data types
|
|
1507 |
RArray<TFourCC> iArray;
|
|
1508 |
// Buffer to hold DTMFString to be played
|
|
1509 |
HBufC* iDtmfString;
|
|
1510 |
// Buffer to hold tone sequence to be played
|
|
1511 |
HBufC8* iToneSeqBuf;
|
|
1512 |
|
|
1513 |
|
|
1514 |
// Replaces the messages / AO handlers
|
|
1515 |
RMsgQueue<TMMFDevSoundQueueItem> iMsgQueue;
|
|
1516 |
// data store for 2-stage asynch message passing
|
|
1517 |
TMMFDevSoundProxyHwBufPckg iHwBufPckgFill;
|
|
1518 |
// data store for 2-stage asynch message passing
|
|
1519 |
TMMFDevSoundProxyHwBufPckg iHwBufPckgEmpty;
|
|
1520 |
|
|
1521 |
// Array of custom interface pairs
|
|
1522 |
RArray<TMMFDevSoundCustomInterfaceDeMuxData> iCustomInterfaceArray;
|
|
1523 |
|
|
1524 |
//Capabilities from DevSoundAdaptor
|
|
1525 |
TMMFCapabilities iDevSoundCapabilities;
|
|
1526 |
//
|
|
1527 |
CMMFDevSoundCIDeMuxUtility* iDeMuxUtility;
|
|
1528 |
// CI Extension
|
|
1529 |
MDevSoundCIServerExtension* iCIExtension;
|
|
1530 |
|
|
1531 |
// Handling async requests
|
|
1532 |
RArray<TMMFDevSoundRequest> iQueuedRequests;
|
|
1533 |
TMMFDevSoundRequest iRequestBeingServiced;
|
|
1534 |
TBool iOperationCompletePending;
|
|
1535 |
TBool iHandlingExtdCI;
|
|
1536 |
TBool iPlayErrorOccured;
|
|
1537 |
|
|
1538 |
//Check if the call of SetClientConfigL was alredy made
|
|
1539 |
TBool iSetClientConfigApplied;
|
|
1540 |
|
|
1541 |
// Chunk for use between DevSound client and server
|
|
1542 |
RChunk iChunk;
|
|
1543 |
TBool iForceSendOfChunkHandle;
|
|
1544 |
|
|
1545 |
CActiveSchedulerWait* iClosingWait;
|
|
1546 |
CAsyncCallBack* iAsyncQueueStart;
|
|
1547 |
|
|
1548 |
TInt iRedoFunction;
|
|
1549 |
TMMFDevSoundProxySettingsPckg iCachedClientData;
|
|
1550 |
TInt iSeqNum;
|
|
1551 |
TBool iPreemptionClash;
|
|
1552 |
TInt iNotifiedError;
|
|
1553 |
TBool iDisconnecting;
|
|
1554 |
|
|
1555 |
};
|
|
1556 |
|
|
1557 |
#endif // MMFDEVSOUNDSESSION_H
|
|
1558 |
|
|
1559 |
// End of File
|