vtuis/lcvtplugin/src/base/clcvtsession.cpp
changeset 46 a1340495b0e1
parent 39 7510ce99d5ea
equal deleted inserted replaced
39:7510ce99d5ea 46:a1340495b0e1
   647 //
   647 //
   648 void CLcVtSession::SetLcVolumeL( TInt aValue )
   648 void CLcVtSession::SetLcVolumeL( TInt aValue )
   649     {   
   649     {   
   650     __VTPRINTENTER( "CLcVtSession.SetLcVolumeL" )
   650     __VTPRINTENTER( "CLcVtSession.SetLcVolumeL" )
   651     MVtEngAudio& audio = iModel->Audio();
   651     MVtEngAudio& audio = iModel->Audio();
   652     const TInt HandsetVolume( audio.OutputVolume(ETrue) );    
   652     const TInt HandsetVolume( audio.OutputVolume( ETrue ) );    
   653     const TInt HandsfreeVolume( audio.OutputVolume(EFalse) );    
   653     const TInt HandsfreeVolume( audio.OutputVolume( EFalse ) );    
       
   654     
   654     MVtEngAudio::TVtEngOutputVolume volume;
   655     MVtEngAudio::TVtEngOutputVolume volume;
   655     volume.iHandsetVolume = HandsetVolume;
   656     volume.iHandsetVolume = HandsetVolume;
   656     volume.iHandsfreeVolume = HandsfreeVolume;
   657     volume.iHandsfreeVolume = HandsfreeVolume;
   657 
   658 
   658     MVtEngAudio::TAudioRoutingState audioRouting;
   659     MVtEngAudio::TAudioRoutingState audioRouting;
   659     User::LeaveIfError( audio.GetRoutingState( audioRouting ) );    
   660     User::LeaveIfError( audio.GetRoutingState( audioRouting ) );    
   660     if(audioRouting == MVtEngAudio::EAudioHandset)
   661     if ( audioRouting == MVtEngAudio::EAudioHandset )
       
   662         {
   661         volume.iHandsetVolume = aValue;
   663         volume.iHandsetVolume = aValue;
       
   664         }
   662     else
   665     else
       
   666         {
   663         volume.iHandsfreeVolume = aValue;    
   667         volume.iHandsfreeVolume = aValue;    
   664     
   668         }
       
   669 
   665     ExecuteCmdL( KVtEngSetAudioVolume, volume );
   670     ExecuteCmdL( KVtEngSetAudioVolume, volume );
   666     __VTPRINTEXIT( "CLcVtSession.SetLcVolumeL" )
   671     __VTPRINTEXIT( "CLcVtSession.SetLcVolumeL" )
   667     }
   672     }
   668 
   673 
   669 // -----------------------------------------------------------------------------
   674 // -----------------------------------------------------------------------------
  2147       * handling by indicating the event was handled */
  2152       * handling by indicating the event was handled */
  2148     if ( iSession.iState &&
  2153     if ( iSession.iState &&
  2149             iSession.iState->HandleVtEventL( aEvent )
  2154             iSession.iState->HandleVtEventL( aEvent )
  2150             == TLcVtStateBase::EEventHandled )
  2155             == TLcVtStateBase::EEventHandled )
  2151         {
  2156         {
  2152         __VTPRINTEXITR( "CEventObserver.HandleVtEventL %d", 0 )
  2157         __VTPRINTEXITR( "CEventObserver.HandleVtEventL %d skipped", aEvent )
  2153         return;
  2158         return;
  2154         }
  2159         }
  2155     
  2160 
       
  2161     if ( aEvent == KVtEngAudioOutputVolumeChanged )
       
  2162         {
       
  2163         __VTPRINTEXITR( "CEventObserver.HandleVtEventL %d skipped", aEvent )
       
  2164         return;
       
  2165         }
  2156     iSession.iLcVtStates->Update();
  2166     iSession.iLcVtStates->Update();
  2157     
  2167     
  2158     iSession.iObserver->Updated(*(iSession.iLocalVideoPlayer));
  2168     iSession.iObserver->Updated(*(iSession.iLocalVideoPlayer));
  2159     iSession.iObserver->Updated(*(iSession.iRemoteVideoPlayer));    
  2169     iSession.iObserver->Updated(*(iSession.iRemoteVideoPlayer));    
  2160     
  2170