1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Audio Stubs - Stub implementation of the MMF DevSound Server adaptation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <MmfDevSoundAdaptation.h> |
|
22 #include "MmfDevSoundAdaptationBody.h" |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CMMFDevSoundAdaptation::CMMFDevSoundAdaptation |
|
28 // C++ default constructor can NOT contain any code, that |
|
29 // might leave. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 CMMFDevSoundAdaptation::CMMFDevSoundAdaptation() |
|
33 { |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // CMMFDevSoundAdaptation::ConstructL |
|
38 // Symbian 2nd phase constructor can leave. |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 void CMMFDevSoundAdaptation::ConstructL( |
|
42 RServer2& aPolicyServerHandle) |
|
43 { |
|
44 iBody = CBody::NewL(); |
|
45 // This is needed because in iBody->ConstructL(), Adaptation need to have |
|
46 // a pointer reference to iBody to call SetDevSoundInfo. |
|
47 iBody->ConstructL(aPolicyServerHandle); |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CMMFDevSoundAdaptation::NewL |
|
52 // Two-phased constructor. |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 EXPORT_C CMMFDevSoundAdaptation* CMMFDevSoundAdaptation::NewL( |
|
56 RServer2& aPolicyServerHandle) |
|
57 { |
|
58 CMMFDevSoundAdaptation* self = new (ELeave)CMMFDevSoundAdaptation; |
|
59 CleanupStack::PushL(self); |
|
60 self->ConstructL(aPolicyServerHandle); |
|
61 CleanupStack::Pop(self); |
|
62 return self; |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // CMMFDevSoundAdaptation::ConstructL |
|
67 // Destructor |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 EXPORT_C CMMFDevSoundAdaptation::~CMMFDevSoundAdaptation() |
|
71 { |
|
72 delete iBody; |
|
73 } |
|
74 |
|
75 // ----------------------------------------------------------------------------- |
|
76 // CMMFDevSoundAdaptation::InitializeL |
|
77 // Initializes CMMFDevSoundProxy object to play and record PCM16 raw audio data |
|
78 // with sampling rate of 8 KHz.On completion of Initialization, calls |
|
79 // InitializeComplete() on aDevSoundObserver. |
|
80 // Leaves on failure. |
|
81 // (other items were commented in a header). |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 EXPORT_C void CMMFDevSoundAdaptation::InitializeL( |
|
85 MDevSoundAdaptationObserver& aDevSoundObserver, |
|
86 TMMFState aMode) |
|
87 |
|
88 { |
|
89 iBody->InitializeL(aDevSoundObserver, aMode); |
|
90 } |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // CMMFDevSoundAdaptation::InitializeL |
|
94 // Initializes DevSound object for the mode aMode for processing audio data |
|
95 // with hardware device aHWDev. On completion of Initialization, the observer |
|
96 // will be notified via call back InitializeComplete(). |
|
97 // Leaves on failure. |
|
98 // (other items were commented in a header). |
|
99 // ----------------------------------------------------------------------------- |
|
100 // |
|
101 EXPORT_C void CMMFDevSoundAdaptation::InitializeL( |
|
102 MDevSoundAdaptationObserver& aDevSoundObserver, |
|
103 TUid aHWDev, |
|
104 TMMFState aMode) |
|
105 { |
|
106 iBody->InitializeL(aDevSoundObserver, aHWDev, aMode); |
|
107 } |
|
108 |
|
109 // ----------------------------------------------------------------------------- |
|
110 // CMMFDevSoundAdaptation::InitializeL |
|
111 // Initializes DevSound object for the mode aMode for processing audio data |
|
112 // using an array of Hardware devices identified by aHWDevArray identifier |
|
113 // array. The hardware devices are chained together with data flow starting |
|
114 // with first array element.On completion of Initialization, the observer |
|
115 // will be notified via call back InitializeComplete(). |
|
116 // Leaves on failure. |
|
117 // (other items were commented in a header). |
|
118 // ----------------------------------------------------------------------------- |
|
119 // |
|
120 EXPORT_C void CMMFDevSoundAdaptation::InitializeL( |
|
121 MDevSoundAdaptationObserver& aDevSoundObserver, |
|
122 TFourCC aDesiredFourCC, |
|
123 TMMFState aMode) |
|
124 { |
|
125 iBody->InitializeL(aDevSoundObserver, aDesiredFourCC, aMode); |
|
126 } |
|
127 |
|
128 // ----------------------------------------------------------------------------- |
|
129 // CMMFDevSoundAdaptation::Capabilities |
|
130 // Returns the supported Audio settings. |
|
131 // (other items were commented in a header). |
|
132 // ----------------------------------------------------------------------------- |
|
133 // |
|
134 EXPORT_C TMMFCapabilities CMMFDevSoundAdaptation::Capabilities() |
|
135 { |
|
136 return iBody->Capabilities(); |
|
137 } |
|
138 |
|
139 // ----------------------------------------------------------------------------- |
|
140 // CMMFDevSoundAdaptation::Config |
|
141 // Returns the current audio settings. |
|
142 // (other items were commented in a header). |
|
143 // ----------------------------------------------------------------------------- |
|
144 // |
|
145 EXPORT_C TMMFCapabilities CMMFDevSoundAdaptation::Config() const |
|
146 { |
|
147 return iBody->Config(); |
|
148 } |
|
149 |
|
150 // ----------------------------------------------------------------------------- |
|
151 // CMMFDevSoundAdaptation::SetConfigL |
|
152 // Configure CMMFDevSoundProxy object for the settings in aConfig. |
|
153 // Use this to set sampling rate, Encoding and Mono/Stereo. |
|
154 // As part of defect 20796, the iRecordFormat has been set under the iPlayFormat, |
|
155 // before it was not set at all. |
|
156 // (other items were commented in a header). |
|
157 // ----------------------------------------------------------------------------- |
|
158 // |
|
159 EXPORT_C void CMMFDevSoundAdaptation::SetConfigL( |
|
160 const TMMFCapabilities& aConfig) |
|
161 { |
|
162 iBody->SetConfigL(aConfig); |
|
163 } |
|
164 |
|
165 // ----------------------------------------------------------------------------- |
|
166 // CMMFDevSoundAdaptation::MaxVolume |
|
167 // Returns an integer representing the maximum volume. |
|
168 // This is the maximum value which can be passed to CMMFDevSoundProxy::SetVolume. |
|
169 // (other items were commented in a header). |
|
170 // ----------------------------------------------------------------------------- |
|
171 // |
|
172 EXPORT_C TInt CMMFDevSoundAdaptation::MaxVolume() |
|
173 { |
|
174 return iBody->MaxVolume(); |
|
175 } |
|
176 |
|
177 // ----------------------------------------------------------------------------- |
|
178 // CMMFDevSoundAdaptation::Volume |
|
179 // Returns an integer representing the current volume. |
|
180 // (other items were commented in a header). |
|
181 // ----------------------------------------------------------------------------- |
|
182 // |
|
183 EXPORT_C TInt CMMFDevSoundAdaptation::Volume() |
|
184 { |
|
185 return iBody->Volume(); |
|
186 } |
|
187 |
|
188 // ----------------------------------------------------------------------------- |
|
189 // CMMFDevSoundAdaptation::SetVolume |
|
190 // Changes the current playback volume to a specified value. |
|
191 // The volume can be changed before or during playback and is effective |
|
192 // immediately. |
|
193 // (other items were commented in a header). |
|
194 // ----------------------------------------------------------------------------- |
|
195 // |
|
196 EXPORT_C void CMMFDevSoundAdaptation::SetVolume( |
|
197 TInt aVolume) |
|
198 { |
|
199 iBody->SetVolume(aVolume); |
|
200 } |
|
201 |
|
202 // ----------------------------------------------------------------------------- |
|
203 // CMMFDevSoundAdaptation::MaxGain |
|
204 // Returns an integer representing the maximum gain. |
|
205 // This is the maximum value which can be passed to CMMFDevSoundProxy::SetGain. |
|
206 // (other items were commented in a header). |
|
207 // ----------------------------------------------------------------------------- |
|
208 // |
|
209 EXPORT_C TInt CMMFDevSoundAdaptation::MaxGain() |
|
210 { |
|
211 return iBody->MaxGain(); |
|
212 } |
|
213 |
|
214 // ----------------------------------------------------------------------------- |
|
215 // CMMFDevSoundAdaptation::Gain |
|
216 // Returns an integer representing the current gain. |
|
217 // (other items were commented in a header). |
|
218 // ----------------------------------------------------------------------------- |
|
219 // |
|
220 EXPORT_C TInt CMMFDevSoundAdaptation::Gain() |
|
221 { |
|
222 return iBody->Gain(); |
|
223 } |
|
224 |
|
225 // ----------------------------------------------------------------------------- |
|
226 // CMMFDevSoundAdaptation::SetGain |
|
227 // Changes the current recording gain to a specified value. |
|
228 // The gain can be changed before or during recording and is effective |
|
229 // immediately. |
|
230 // (other items were commented in a header). |
|
231 // ----------------------------------------------------------------------------- |
|
232 // |
|
233 EXPORT_C void CMMFDevSoundAdaptation::SetGain( |
|
234 TInt aGain) |
|
235 { |
|
236 iBody->SetGain(aGain); |
|
237 } |
|
238 |
|
239 // ----------------------------------------------------------------------------- |
|
240 // CMMFDevSoundAdaptation::GetPlayBalanceL |
|
241 // Returns the speaker balance set for playing. |
|
242 // Leaves on failure. |
|
243 // (other items were commented in a header). |
|
244 // ----------------------------------------------------------------------------- |
|
245 // |
|
246 EXPORT_C void CMMFDevSoundAdaptation::GetPlayBalanceL( |
|
247 TInt& aLeftPercentage, |
|
248 TInt& aRightPercentage) |
|
249 { |
|
250 iBody->GetPlayBalanceL(aLeftPercentage, aRightPercentage); |
|
251 } |
|
252 |
|
253 // ----------------------------------------------------------------------------- |
|
254 // CMMFDevSoundAdaptation::SetPlayBalanceL |
|
255 // Sets the speaker balance for playing. The speaker balance can be changed |
|
256 // before or during playback and is effective immediately. |
|
257 // (other items were commented in a header). |
|
258 // ----------------------------------------------------------------------------- |
|
259 // |
|
260 EXPORT_C void CMMFDevSoundAdaptation::SetPlayBalanceL( |
|
261 TInt aLeftPercentage, |
|
262 TInt aRightPercentage) |
|
263 { |
|
264 iBody->SetPlayBalanceL(aLeftPercentage, aRightPercentage); |
|
265 } |
|
266 |
|
267 // ----------------------------------------------------------------------------- |
|
268 // CMMFDevSoundAdaptation::GetRecordBalanceL |
|
269 // Returns the microphone gain balance set for recording. |
|
270 // Leaves on failure. |
|
271 // (other items were commented in a header). |
|
272 // ----------------------------------------------------------------------------- |
|
273 // |
|
274 EXPORT_C void CMMFDevSoundAdaptation::GetRecordBalanceL( |
|
275 TInt& aLeftPercentage, |
|
276 TInt& aRightPercentage) |
|
277 { |
|
278 iBody->GetRecordBalanceL(aLeftPercentage, aRightPercentage); |
|
279 } |
|
280 |
|
281 // ----------------------------------------------------------------------------- |
|
282 // CMMFDevSoundAdaptation::SetRecordBalanceL |
|
283 // Sets the microphone gain balance for recording. |
|
284 // The microphone gain balance can be changed before or during recording and |
|
285 // is effective immediately. |
|
286 // (other items were commented in a header). |
|
287 // ----------------------------------------------------------------------------- |
|
288 // |
|
289 EXPORT_C void CMMFDevSoundAdaptation::SetRecordBalanceL( |
|
290 TInt aLeftPercentage, |
|
291 TInt aRightPercentage) |
|
292 { |
|
293 iBody->SetRecordBalanceL(aLeftPercentage, aRightPercentage); |
|
294 } |
|
295 |
|
296 // ----------------------------------------------------------------------------- |
|
297 // CMMFDevSoundAdaptation::PlayInitL |
|
298 // Initializes audio device and start play process. This method queries and |
|
299 // acquires the audio policy before initializing audio device. If there was an |
|
300 // error during policy initialization, PlayError() method will be called on |
|
301 // the observer with error code KErrAccessDenied, otherwise BufferToBeFilled() |
|
302 // method will be called with a buffer reference. After reading data into the |
|
303 // buffer reference passed, the client should call PlayData() to play data. |
|
304 // |
|
305 // The amount of data that can be played is specified in |
|
306 // CMMFBuffer::RequestSize(). Any data that is read into buffer beyond this |
|
307 // size will be ignored. |
|
308 // |
|
309 // Leaves on failure. |
|
310 // (other items were commented in a header). |
|
311 // ----------------------------------------------------------------------------- |
|
312 // |
|
313 EXPORT_C void CMMFDevSoundAdaptation::PlayInitL() |
|
314 { |
|
315 iBody->PlayInitL(); |
|
316 } |
|
317 |
|
318 // ----------------------------------------------------------------------------- |
|
319 // CMMFDevSoundAdaptation::RecordInitL |
|
320 // Initializes audio device and start record process. This method queries and |
|
321 // acquires the audio policy before initializing audio device. If there was an |
|
322 // error during policy initialization, RecordError() method will be called on |
|
323 // the observer with error code KErrAccessDenied, otherwise BufferToBeEmptied() |
|
324 // method will be called with a buffer reference. This buffer contains recorded |
|
325 // or encoded data. After processing data in the buffer reference passed, the |
|
326 // client should call RecordData() to continue recording process. |
|
327 // |
|
328 // The amount of data that is available is specified in |
|
329 // CMMFBuffer::RequestSize(). |
|
330 // |
|
331 // Leaves on failure. |
|
332 // (other items were commented in a header). |
|
333 // ----------------------------------------------------------------------------- |
|
334 // |
|
335 EXPORT_C void CMMFDevSoundAdaptation::RecordInitL() |
|
336 { |
|
337 iBody->RecordInitL(); |
|
338 } |
|
339 |
|
340 // ----------------------------------------------------------------------------- |
|
341 // CMMFDevSoundAdaptation::PlayData |
|
342 // Plays data in the buffer at the current volume. The client should fill |
|
343 // the buffer with audio data before calling this method. The Observer gets |
|
344 // reference to buffer along with callback BufferToBeFilled(). When playing of |
|
345 // the audio sample is complete, successfully or otherwise, the method |
|
346 // PlayError() on observer is called. |
|
347 // (other items were commented in a header). |
|
348 // ----------------------------------------------------------------------------- |
|
349 // |
|
350 EXPORT_C void CMMFDevSoundAdaptation::PlayData() |
|
351 { |
|
352 iBody->PlayData(); |
|
353 } |
|
354 |
|
355 // ----------------------------------------------------------------------------- |
|
356 // CMMFDevSoundAdaptation::RecordData |
|
357 // Contine the process of recording. Once the buffer is filled with recorded |
|
358 // data, the Observer gets reference to buffer along with callback |
|
359 // BufferToBeEmptied(). After processing the buffer (copying over to a |
|
360 // different buffer or writing to file) the client should call this |
|
361 // method to continue recording process. |
|
362 // (other items were commented in a header). |
|
363 // ----------------------------------------------------------------------------- |
|
364 // |
|
365 EXPORT_C void CMMFDevSoundAdaptation::RecordData() |
|
366 { |
|
367 iBody->RecordData(); |
|
368 } |
|
369 |
|
370 // ----------------------------------------------------------------------------- |
|
371 // CMMFDevSoundAdaptation::Stop |
|
372 // Stops the ongoing operation (Play, Record, TonePlay, Convert) |
|
373 // (other items were commented in a header). |
|
374 // ----------------------------------------------------------------------------- |
|
375 // |
|
376 EXPORT_C void CMMFDevSoundAdaptation::Stop() |
|
377 { |
|
378 iBody->Stop(); |
|
379 } |
|
380 |
|
381 // ----------------------------------------------------------------------------- |
|
382 // CMMFDevSoundAdaptation::Pause |
|
383 // Temporarily Stops the ongoing operation (Play, Record, TonePlay, Convert) |
|
384 // (other items were commented in a header). |
|
385 // ----------------------------------------------------------------------------- |
|
386 // |
|
387 EXPORT_C void CMMFDevSoundAdaptation::Pause() |
|
388 { |
|
389 iBody->Pause(); |
|
390 } |
|
391 |
|
392 // ----------------------------------------------------------------------------- |
|
393 // CMMFDevSoundAdaptation::SamplesRecorded |
|
394 // Returns the sample recorded so far. |
|
395 // (other items were commented in a header). |
|
396 // ----------------------------------------------------------------------------- |
|
397 // |
|
398 EXPORT_C TInt CMMFDevSoundAdaptation::SamplesRecorded() |
|
399 { |
|
400 return iBody->SamplesRecorded(); |
|
401 } |
|
402 |
|
403 // ----------------------------------------------------------------------------- |
|
404 // CMMFDevSoundAdaptation::SamplesPlayed |
|
405 // Returns the sample played so far. |
|
406 // (other items were commented in a header). |
|
407 // ----------------------------------------------------------------------------- |
|
408 // |
|
409 EXPORT_C TInt CMMFDevSoundAdaptation::SamplesPlayed() |
|
410 { |
|
411 return iBody->SamplesPlayed(); |
|
412 } |
|
413 |
|
414 // ----------------------------------------------------------------------------- |
|
415 // CMMFDevSoundAdaptation::PlayToneL |
|
416 // Initializes audio device and start playing tone. Tone is played with |
|
417 // frequency and for duration specified. |
|
418 // Leaves on failure. |
|
419 // (other items were commented in a header). |
|
420 // ----------------------------------------------------------------------------- |
|
421 // |
|
422 EXPORT_C void CMMFDevSoundAdaptation::PlayToneL( |
|
423 TInt aFrequency, |
|
424 const TTimeIntervalMicroSeconds& aDuration) |
|
425 { |
|
426 iBody->PlayToneL(aFrequency, aDuration); |
|
427 } |
|
428 |
|
429 // ----------------------------------------------------------------------------- |
|
430 // CMMFDevSoundAdaptation::PlayDualToneL |
|
431 // Initializes audio device and start playing a dual tone. |
|
432 // The tone consists of two sine waves of different frequencies summed together |
|
433 // Dual Tone is played with specified frequencies and for specified duration. |
|
434 // (other items were commented in a header). |
|
435 // ----------------------------------------------------------------------------- |
|
436 // |
|
437 EXPORT_C void CMMFDevSoundAdaptation::PlayDualToneL( |
|
438 TInt aFrequencyOne, |
|
439 TInt aFrequencyTwo, |
|
440 const TTimeIntervalMicroSeconds& aDuration) |
|
441 { |
|
442 iBody->PlayDualToneL(aFrequencyOne, aFrequencyTwo, aDuration); |
|
443 } |
|
444 |
|
445 // ----------------------------------------------------------------------------- |
|
446 // CMMFDevSoundAdaptation::PlayDTMFStringL |
|
447 // Initializes audio device and start playing DTMF string aDTMFString. |
|
448 // Leaves on failure. |
|
449 // (other items were commented in a header). |
|
450 // ----------------------------------------------------------------------------- |
|
451 // |
|
452 EXPORT_C void CMMFDevSoundAdaptation::PlayDTMFStringL( |
|
453 const TDesC& aDTMFString) |
|
454 { |
|
455 iBody->PlayDTMFStringL(aDTMFString); |
|
456 } |
|
457 |
|
458 // ----------------------------------------------------------------------------- |
|
459 // CMMFDevSoundAdaptation::PlayToneSequenceL |
|
460 // Initializes audio device and start playing tone sequence. |
|
461 // Leaves on failure. |
|
462 // (other items were commented in a header). |
|
463 // ----------------------------------------------------------------------------- |
|
464 // |
|
465 EXPORT_C void CMMFDevSoundAdaptation::PlayToneSequenceL( |
|
466 const TDesC8& aData) |
|
467 { |
|
468 iBody->PlayToneSequenceL(aData); |
|
469 } |
|
470 |
|
471 // ----------------------------------------------------------------------------- |
|
472 // CMMFDevSoundAdaptation::PlayFixedSequenceL |
|
473 // Initializes audio device and start playing the specified pre-defined tone |
|
474 // sequence. |
|
475 // Leaves on failure. |
|
476 // (other items were commented in a header). |
|
477 // ----------------------------------------------------------------------------- |
|
478 // |
|
479 EXPORT_C void CMMFDevSoundAdaptation::PlayFixedSequenceL( |
|
480 TInt aSequenceNumber) |
|
481 { |
|
482 iBody->PlayFixedSequenceL(aSequenceNumber); |
|
483 } |
|
484 |
|
485 // ----------------------------------------------------------------------------- |
|
486 // CMMFDevSoundAdaptation::SetToneRepeats |
|
487 // Defines the number of times the audio is to be repeated during the tone |
|
488 // playback operation. A period of silence can follow each playing of tone. |
|
489 // The tone playing can be repeated indefinitely. |
|
490 // (other items were commented in a header). |
|
491 // ----------------------------------------------------------------------------- |
|
492 // |
|
493 EXPORT_C void CMMFDevSoundAdaptation::SetToneRepeats( |
|
494 TInt aRepeatCount, |
|
495 const TTimeIntervalMicroSeconds& aRepeatTrailingSilence) |
|
496 { |
|
497 iBody->SetToneRepeats(aRepeatCount, aRepeatTrailingSilence); |
|
498 } |
|
499 |
|
500 // ----------------------------------------------------------------------------- |
|
501 // CMMFDevSoundAdaptation::SetDTMFLengths |
|
502 // Defines the duration of tone on, tone off and tone pause to be used during the |
|
503 // DTMF tone playback operation. |
|
504 // Supported only during tone playing. |
|
505 // (other items were commented in a header). |
|
506 // ----------------------------------------------------------------------------- |
|
507 // |
|
508 EXPORT_C void CMMFDevSoundAdaptation::SetDTMFLengths( |
|
509 TTimeIntervalMicroSeconds32& aToneOnLength, |
|
510 TTimeIntervalMicroSeconds32& aToneOffLength, |
|
511 TTimeIntervalMicroSeconds32& aPauseLength) |
|
512 { |
|
513 iBody->SetDTMFLengths(aToneOnLength, aToneOffLength, aPauseLength); |
|
514 } |
|
515 |
|
516 // ----------------------------------------------------------------------------- |
|
517 // CMMFDevSoundAdaptation::SetVolumeRamp |
|
518 // Defines the period over which the volume level is to rise smoothly from |
|
519 // nothing to the normal volume level. |
|
520 // (other items were commented in a header). |
|
521 // ----------------------------------------------------------------------------- |
|
522 // |
|
523 EXPORT_C void CMMFDevSoundAdaptation::SetVolumeRamp( |
|
524 const TTimeIntervalMicroSeconds& aRampDuration) |
|
525 { |
|
526 iBody->SetVolumeRamp(aRampDuration); |
|
527 } |
|
528 |
|
529 // ----------------------------------------------------------------------------- |
|
530 // CMMFDevSoundAdaptation::SetPrioritySettings |
|
531 // Defines the priority settings that should be used for this instance. |
|
532 // (other items were commented in a header). |
|
533 // ----------------------------------------------------------------------------- |
|
534 // |
|
535 EXPORT_C void CMMFDevSoundAdaptation::SetPrioritySettings( |
|
536 const TMMFPrioritySettings& aPrioritySettings) |
|
537 { |
|
538 iBody->SetPrioritySettings(aPrioritySettings); |
|
539 } |
|
540 |
|
541 // ----------------------------------------------------------------------------- |
|
542 // CMMFDevSoundAdaptation::CustomInterface |
|
543 // see sounddevice.h |
|
544 // (other items were commented in a header). |
|
545 // ----------------------------------------------------------------------------- |
|
546 // |
|
547 EXPORT_C TAny* CMMFDevSoundAdaptation::CustomInterface( |
|
548 TUid aInterfaceId) |
|
549 { |
|
550 return iBody->CustomInterface(aInterfaceId); |
|
551 } |
|
552 |
|
553 // ----------------------------------------------------------------------------- |
|
554 // CMMFDevSoundAdaptation::FixedSequenceCount |
|
555 // Returns the number of available pre-defined tone sequences. |
|
556 // This is the number of fixed sequence supported by DevSound by default. |
|
557 // (other items were commented in a header). |
|
558 // ----------------------------------------------------------------------------- |
|
559 // |
|
560 EXPORT_C TInt CMMFDevSoundAdaptation::FixedSequenceCount() |
|
561 { |
|
562 return iBody->FixedSequenceCount(); |
|
563 } |
|
564 |
|
565 // ----------------------------------------------------------------------------- |
|
566 // CMMFDevSoundAdaptation::FixedSequenceName |
|
567 // Returns the name assigned to a specific pre-defined tone sequence. |
|
568 // This is the number of fixed sequence supported by DevSound by default. |
|
569 // The function raises a panic if sequence number specified invalid. |
|
570 // (other items were commented in a header). |
|
571 // ----------------------------------------------------------------------------- |
|
572 // |
|
573 EXPORT_C const TDesC& CMMFDevSoundAdaptation::FixedSequenceName( |
|
574 TInt aSequenceNumber) |
|
575 { |
|
576 return iBody->FixedSequenceName(aSequenceNumber); |
|
577 } |
|
578 |
|
579 // ----------------------------------------------------------------------------- |
|
580 // CMMFDevSoundAdaptation::GetSupportedInputDataTypesL |
|
581 // see sounddevice.h |
|
582 // (other items were commented in a header). |
|
583 // ----------------------------------------------------------------------------- |
|
584 // |
|
585 EXPORT_C void CMMFDevSoundAdaptation::GetSupportedInputDataTypesL( |
|
586 RArray<TFourCC>& aSupportedDataTypes, |
|
587 const TMMFPrioritySettings& aPrioritySettings) const |
|
588 { |
|
589 iBody->GetSupportedInputDataTypesL(aSupportedDataTypes, aPrioritySettings); |
|
590 } |
|
591 |
|
592 // ----------------------------------------------------------------------------- |
|
593 // CMMFDevSoundAdaptation::GetSupportedOutputDataTypesL |
|
594 // see sounddevice.h |
|
595 // (other items were commented in a header). |
|
596 // ----------------------------------------------------------------------------- |
|
597 // |
|
598 EXPORT_C void CMMFDevSoundAdaptation::GetSupportedOutputDataTypesL( |
|
599 RArray<TFourCC>& aSupportedDataTypes, |
|
600 const TMMFPrioritySettings& aPrioritySettings) const |
|
601 { |
|
602 iBody->GetSupportedOutputDataTypesL(aSupportedDataTypes, aPrioritySettings); |
|
603 } |
|
604 |
|
605 // ----------------------------------------------------------------------------- |
|
606 // SetClientConfig |
|
607 // Sets client capabilities for this instance of DevSound Adaptation. |
|
608 // (other items were commented in a header). |
|
609 // ----------------------------------------------------------------------------- |
|
610 // |
|
611 EXPORT_C void CMMFDevSoundAdaptation::SetClientConfig( |
|
612 const TMMFClientConfig& aClientConfig) |
|
613 { |
|
614 iBody->SetClientConfig(aClientConfig); |
|
615 } |
|
616 |
|
617 // ----------------------------------------------------------------------------- |
|
618 // CMMFDevSoundAdaptation::ClientConfig |
|
619 // Returns client capabilities of this instance of DevSound Adaptation. |
|
620 // (other items were commented in a header). |
|
621 // ----------------------------------------------------------------------------- |
|
622 // |
|
623 EXPORT_C const TMMFClientConfig& CMMFDevSoundAdaptation::ClientConfig() const |
|
624 { |
|
625 return iBody->ClientConfig(); |
|
626 } |
|
627 |
|
628 // End of file |
|