mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/AdvancedAudioController/Src/AdvancedAudioPlayController.cpp
branchRCL_3
changeset 7 3d8c721bf319
parent 5 709f89d8c047
child 9 f5c5c82a163e
equal deleted inserted replaced
6:e35735ece90c 7:3d8c721bf319
   682 
   682 
   683     iRequestState = EPaused;
   683     iRequestState = EPaused;
   684     TRAP(err, DoPauseL(ETrue)); // this is a preemption pause
   684     TRAP(err, DoPauseL(ETrue)); // this is a preemption pause
   685 	// In case of pre-emption we should only Pause ... but not Stop.
   685 	// In case of pre-emption we should only Pause ... but not Stop.
   686     SendEventToClient(TMMFEvent(KMMFEventCategoryPlaybackComplete, aError));
   686     SendEventToClient(TMMFEvent(KMMFEventCategoryPlaybackComplete, aError));
       
   687     SendEventToClient(TMMFEvent(KStreamControlEventStateChangedPaused, aError));
   687     }
   688     }
   688 
   689 
   689 // -----------------------------------------------------------------------------
   690 // -----------------------------------------------------------------------------
   690 // CAdvancedAudioPlayController::HandleGeneralEvent
   691 // CAdvancedAudioPlayController::HandleGeneralEvent
   691 // -----------------------------------------------------------------------------
   692 // -----------------------------------------------------------------------------
  1652     {
  1653     {
  1653 	DP2(_L("CAdvancedAudioPlayController::PositionL, this[%x] iState[%d]"), this, iState);
  1654 	DP2(_L("CAdvancedAudioPlayController::PositionL, this[%x] iState[%d]"), this, iState);
  1654 
  1655 
  1655 	TTimeIntervalMicroSeconds positionMicroSeconds(0);
  1656 	TTimeIntervalMicroSeconds positionMicroSeconds(0);
  1656 
  1657 
  1657     if (iState == EPlaying)
  1658     if (iState == EPlaying || iState == EAutoPaused)
  1658     	{
  1659     	{
  1659     	DP1 (_L("CAdvancedAudioPlayController::PositionL iTimePositionInMicroSecs [%d] msec"), iTimePositionInMicroSecs);
  1660     	DP1 (_L("CAdvancedAudioPlayController::PositionL iTimePositionInMicroSecs [%d] msec"), iTimePositionInMicroSecs);
  1660         // adjust the position here since devsound returns the incremented postion value during loopplay
  1661         // adjust the position here since devsound returns the incremented postion value during loopplay
  1661         if (IsLoopPlayEnabled())
  1662         if (IsLoopPlayEnabled())
  1662             {
  1663             {