equal
deleted
inserted
replaced
381 complete = DoPlayDTMFStringL(aMessage); |
381 complete = DoPlayDTMFStringL(aMessage); |
382 break; |
382 break; |
383 case EMMFDevSoundProxyPlayToneSequence: |
383 case EMMFDevSoundProxyPlayToneSequence: |
384 complete = DoPlayToneSequenceL(aMessage); |
384 complete = DoPlayToneSequenceL(aMessage); |
385 break; |
385 break; |
386 case EMMFDevSoundProxyPlayFixedSequence: |
|
387 complete = DoPlayFixedSequenceL(aMessage); |
|
388 break; |
|
389 case EMMFDevSoundProxySetDTMFLengths: |
386 case EMMFDevSoundProxySetDTMFLengths: |
390 complete = DoSetDTMFLengthsL(aMessage); |
387 complete = DoSetDTMFLengthsL(aMessage); |
391 break; |
388 break; |
392 case EMMFDevSoundProxySetVolumeRamp: |
389 case EMMFDevSoundProxySetVolumeRamp: |
393 complete = DoSetVolumeRampL(aMessage); |
390 complete = DoSetVolumeRampL(aMessage); |
410 case EMMFDevSoundProxySetToneRepeats: |
407 case EMMFDevSoundProxySetToneRepeats: |
411 complete = DoSetToneRepeatsL(aMessage); |
408 complete = DoSetToneRepeatsL(aMessage); |
412 break; |
409 break; |
413 case EMMFDevSoundProxySetPrioritySettings: |
410 case EMMFDevSoundProxySetPrioritySettings: |
414 complete = DoSetPrioritySettingsL(aMessage); |
411 complete = DoSetPrioritySettingsL(aMessage); |
415 break; |
|
416 case EMMFDevSoundProxyFixedSequenceCount: |
|
417 complete = DoFixedSequenceCountL(aMessage); |
|
418 break; |
412 break; |
419 case EMMFDevSoundProxyCancelInitialize: |
413 case EMMFDevSoundProxyCancelInitialize: |
420 complete = DoCancelInitializeL(aMessage); |
414 complete = DoCancelInitializeL(aMessage); |
421 break; |
415 break; |
422 case EMMFDevSoundProxyEmptyBuffers: |
416 case EMMFDevSoundProxyEmptyBuffers: |
534 DoAlreadyCompletedPlayDTMFStringL(); |
528 DoAlreadyCompletedPlayDTMFStringL(); |
535 break; |
529 break; |
536 case EMMFDevSoundProxyPlayToneSequence: |
530 case EMMFDevSoundProxyPlayToneSequence: |
537 DoAlreadyCompletedPlayToneSequenceL(); |
531 DoAlreadyCompletedPlayToneSequenceL(); |
538 break; |
532 break; |
539 case EMMFDevSoundProxyPlayFixedSequence: |
|
540 DoAlreadyCompletedPlayFixedSequenceL(); |
|
541 break; |
|
542 default: |
533 default: |
543 User::Leave(KErrNotSupported); |
534 User::Leave(KErrNotSupported); |
544 break; |
535 break; |
545 } |
536 } |
546 |
537 |
720 |
711 |
721 if (err != KErrNone) |
712 if (err != KErrNone) |
722 { |
713 { |
723 aMessage.Complete(err); |
714 aMessage.Complete(err); |
724 iOperationCompletePending = EFalse; |
715 iOperationCompletePending = EFalse; |
725 return ETrue; |
|
726 } |
716 } |
727 else |
717 else |
728 { |
718 { |
729 iOperationCompletePending = ETrue; |
719 iOperationCompletePending = ETrue; |
730 } |
720 } |
1156 iAdapter->PlayToneSequenceL(*iToneSeqBuf); |
1146 iAdapter->PlayToneSequenceL(*iToneSeqBuf); |
1157 iOperationCompletePending = ETrue; |
1147 iOperationCompletePending = ETrue; |
1158 } |
1148 } |
1159 |
1149 |
1160 // |
1150 // |
1161 // CMMFDevSoundSession::DoPlayFixedSequenceL |
|
1162 // (other items were commented in a header). |
|
1163 // |
|
1164 TBool CMMFDevSoundSession::DoPlayFixedSequenceL(const RMmfIpcMessage& aMessage) |
|
1165 { |
|
1166 SYMBIAN_DEBPRN0(_L("CMMFDevSoundSession[0x%x]::DoPlayFixedSequenceL - Enter")); |
|
1167 TPckgBuf<TInt> buf; |
|
1168 User::LeaveIfError(MessageRead(aMessage,TInt(1),buf)); |
|
1169 TInt seqNum = buf(); |
|
1170 iSeqNum = seqNum; |
|
1171 iAdapter->PlayFixedSequenceL(seqNum); |
|
1172 iOperationCompletePending = ETrue; |
|
1173 SYMBIAN_DEBPRN1(_L("CMMFDevSoundSession[0x%x]::DoPlayFixedSequenceL - Exit. Return value is [%d]"), ETrue); |
|
1174 return ETrue; |
|
1175 } |
|
1176 |
|
1177 // |
|
1178 // CMMFDevSoundSession::DoAlreadyCompletedPlayFixedSequenceL |
|
1179 // (other items were commented in a header). |
|
1180 // |
|
1181 void CMMFDevSoundSession::DoAlreadyCompletedPlayFixedSequenceL() |
|
1182 { |
|
1183 iAdapter->PlayFixedSequenceL(iSeqNum); |
|
1184 iOperationCompletePending = ETrue; |
|
1185 } |
|
1186 |
|
1187 // |
|
1188 // CMMFDevSoundSession::DoSetDTMFLengthsL |
1151 // CMMFDevSoundSession::DoSetDTMFLengthsL |
1189 // (other items were commented in a header). |
1152 // (other items were commented in a header). |
1190 // |
1153 // |
1191 TBool CMMFDevSoundSession::DoSetDTMFLengthsL(const RMmfIpcMessage& aMessage) |
1154 TBool CMMFDevSoundSession::DoSetDTMFLengthsL(const RMmfIpcMessage& aMessage) |
1192 { |
1155 { |
1314 |
1277 |
1315 User::LeaveIfError(iAdapter->SetPrioritySettings(prioritySet())); |
1278 User::LeaveIfError(iAdapter->SetPrioritySettings(prioritySet())); |
1316 iOperationCompletePending = EFalse; |
1279 iOperationCompletePending = EFalse; |
1317 return ETrue; |
1280 return ETrue; |
1318 } |
1281 } |
1319 |
|
1320 // |
|
1321 // CMMFDevSoundSession::DoFixedSequenceCountL |
|
1322 // (other items were commented in a header). |
|
1323 // |
|
1324 TBool CMMFDevSoundSession::DoFixedSequenceCountL( |
|
1325 const RMmfIpcMessage& aMessage) |
|
1326 { |
|
1327 SYMBIAN_DEBPRN0(_L("CMMFDevSoundSession[0x%x]::DoFixedSequenceCountL - Enter")); |
|
1328 TPckgBuf<TInt> fixSeqCountPckg; |
|
1329 TInt fixSeqCount = iAdapter->FixedSequenceCount(); |
|
1330 fixSeqCountPckg = fixSeqCount; |
|
1331 |
|
1332 User::LeaveIfError(MessageWrite(aMessage,TInt(2),fixSeqCountPckg)); |
|
1333 SYMBIAN_DEBPRN1(_L("CMMFDevSoundSession[0x%x]::DoFixedSequenceCountL - Exit. Return value is [%d]"), ETrue); |
|
1334 return ETrue; |
|
1335 } |
|
1336 |
|
1337 |
1282 |
1338 // |
1283 // |
1339 // CMMFDevSoundSession::DoCopyFourCCArrayDataL |
1284 // CMMFDevSoundSession::DoCopyFourCCArrayDataL |
1340 // (other items were commented in a header). |
1285 // (other items were commented in a header). |
1341 // |
1286 // |