mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/AdvancedAudioController/Src/AdvancedAudioRecordController.cpp
equal
deleted
inserted
replaced
1017 // ----------------------------------------------------------------------------- |
1017 // ----------------------------------------------------------------------------- |
1018 // |
1018 // |
1019 EXPORT_C void CAdvancedAudioRecordController::SendEvent( |
1019 EXPORT_C void CAdvancedAudioRecordController::SendEvent( |
1020 const TMMFEvent& aEvent ) |
1020 const TMMFEvent& aEvent ) |
1021 { |
1021 { |
|
1022 #ifdef _DEBUG |
|
1023 RDebug::Print(_L("CAdvancedAudioRecordController::SendEvent[%d] this[%x]"), aEvent.iErrorCode, this); |
|
1024 #endif |
|
1025 // fix for DALM-853QJX, handling preemption use case during recording, this handles only preemption errors and other errors are ignored |
|
1026 // MMFDevSound throws the following error codes incase of any preemption events |
|
1027 // (DevSound instance has been thrown-off or initial request has been rejected) |
|
1028 if ( (aEvent.iErrorCode == KErrAccessDenied) || (aEvent.iErrorCode == KErrInUse) || (aEvent.iErrorCode == KErrDied) ) |
|
1029 { |
|
1030 // this might be a DevSound Preemption |
|
1031 iState = EStopping; |
|
1032 TRAP_IGNORE(DoStopL()); |
|
1033 } |
1022 SendEventToClient(aEvent); |
1034 SendEventToClient(aEvent); |
1023 } |
1035 } |
1024 |
1036 |
1025 // ----------------------------------------------------------------------------- |
1037 // ----------------------------------------------------------------------------- |
1026 // CAdvancedAudioRecordController::DoEmptySharedBufferL |
1038 // CAdvancedAudioRecordController::DoEmptySharedBufferL |