3097 SVPDEBUG1( "CSVPSessionBase::SetUpdatedSession In" ) |
3097 SVPDEBUG1( "CSVPSessionBase::SetUpdatedSession In" ) |
3098 |
3098 |
3099 delete iSession; |
3099 delete iSession; |
3100 iSession = aUpdatedSession; |
3100 iSession = aUpdatedSession; |
3101 |
3101 |
|
3102 // lets check should mic be muted |
|
3103 const RPointerArray<CMceMediaStream>& streamsArray = iSession->Streams(); |
|
3104 const TInt streamCount( streamsArray.Count() ); |
|
3105 if ( streamCount && iMuted ) |
|
3106 { |
|
3107 SVPDEBUG1( "CSVPSessionBase::SetUpdatedSession Mic should be muted" ) |
|
3108 |
|
3109 if ( IsMobileOriginated() ) |
|
3110 { |
|
3111 for ( TInt i = 0; i < streamCount; i++ ) |
|
3112 { |
|
3113 if ( streamsArray[i]->Source()->IsEnabled() ) |
|
3114 { |
|
3115 SVPDEBUG1( "CSVPSessionBase::SetUpdatedSession Mic is not muted" ) |
|
3116 SVPDEBUG1( " -> disable mic" ) |
|
3117 streamsArray[i]->Source()->DisableL(); |
|
3118 } |
|
3119 else |
|
3120 { |
|
3121 SVPDEBUG1( "CSVPSessionBase::SetUpdatedSession Mic is already" ) |
|
3122 SVPDEBUG1( " muted -> no need to disable mic" ) |
|
3123 } |
|
3124 } |
|
3125 } |
|
3126 else |
|
3127 { |
|
3128 // mute mic source |
|
3129 for ( TInt i = 0; i < streamCount; i++ ) |
|
3130 { |
|
3131 if ( streamsArray[i]->BoundStreamL().Source()->IsEnabled() ) |
|
3132 { |
|
3133 streamsArray[i]->BoundStreamL().Source()->DisableL(); |
|
3134 } |
|
3135 } |
|
3136 } |
|
3137 } |
|
3138 |
3102 // Update changed session also to the transfercontroller |
3139 // Update changed session also to the transfercontroller |
3103 if ( iTransferController ) |
3140 if ( iTransferController ) |
3104 { |
3141 { |
3105 SVPDEBUG1( "CSVPSessionBase::SetUpdatedSession also to the transfercontroller" ) |
3142 SVPDEBUG1( "CSVPSessionBase::SetUpdatedSession also to the transfercontroller" ) |
3106 iTransferController->SetMceSessionObject( aUpdatedSession ); |
3143 iTransferController->SetMceSessionObject( aUpdatedSession ); |