mpx/playbackframework/playbackengine/src/mpxplaybackengine.cpp
changeset 32 edd273b3192a
parent 27 cbb1bfb7ebfb
equal deleted inserted replaced
27:cbb1bfb7ebfb 32:edd273b3192a
   528                 {
   528                 {
   529                 ASSERT(aCmd.IsSupported(KMPXCommandPlaybackGeneralClientPid));
   529                 ASSERT(aCmd.IsSupported(KMPXCommandPlaybackGeneralClientPid));
   530                 iLastActiveProcess = aCmd.ValueTObjectL<TProcessId>(
   530                 iLastActiveProcess = aCmd.ValueTObjectL<TProcessId>(
   531                                            KMPXCommandPlaybackGeneralClientPid);
   531                                            KMPXCommandPlaybackGeneralClientPid);
   532                 }
   532                 }
   533             else if (EPbCmdStop == cmd)
       
   534                 {
       
   535                 ASSERT(aCmd.IsSupported(KMPXCommandPlaybackGeneralClientPid));
       
   536                 iLastInactiveProcess = aCmd.ValueTObjectL<TProcessId>(
       
   537                                            KMPXCommandPlaybackGeneralClientPid);
       
   538                 }
       
   539             TInt data(0);
   533             TInt data(0);
   540             if (aCmd.IsSupported(KMPXCommandPlaybackGeneralData))
   534             if (aCmd.IsSupported(KMPXCommandPlaybackGeneralData))
   541                 {
   535                 {
   542                 data = aCmd.ValueTObjectL<TInt>(KMPXCommandPlaybackGeneralData);
   536                 data = aCmd.ValueTObjectL<TInt>(KMPXCommandPlaybackGeneralData);
   543                 }
   537                 }
   649                 User::Leave(KErrArgument);
   643                 User::Leave(KErrArgument);
   650                 }
   644                 }
   651             break;
   645             break;
   652         case EPbPropertyMute:
   646         case EPbPropertyMute:
   653             MPX_DEBUG2( "CMPXPlaybackEngine::SetL EPbPropertyMute %d", aValue );
   647             MPX_DEBUG2( "CMPXPlaybackEngine::SetL EPbPropertyMute %d", aValue );
       
   648             iProperties[EPbPropertyMute] = aValue; // set now, needed when EPSetComplete is converted to EPropertyChanged 
   654             if ( iPluginHandler->Plugin() )
   649             if ( iPluginHandler->Plugin() )
   655                 {
   650                 {
   656                 PluginL()->SetL( aProperty, aValue );
   651                 PluginL()->SetL( aProperty, aValue );
   657                 }
   652                 }
   658             break;
   653             break;
  1132                     }
  1127                     }
  1133                 break;
  1128                 break;
  1134                 }
  1129                 }
  1135             case EPMuteChanged:
  1130             case EPMuteChanged:
  1136                 {
  1131                 {
  1137                 if ( iProperties[EPbPropertyMute] != aData )
  1132 				// property changed broadcast message after successful return from plugins
  1138                     {
  1133                 iProperties[EPbPropertyMute] = aData;
  1139                     iProperties[EPbPropertyMute] = aData;
  1134                 iClientList->SendMsgL(
  1140                     iClientList->SendMsgL(
  1135                 TMPXPlaybackMessage(TMPXPlaybackMessage::EPropertyChanged,
  1141                         TMPXPlaybackMessage(TMPXPlaybackMessage::EPropertyChanged,
       
  1142                                             EPbPropertyMute,
  1136                                             EPbPropertyMute,
  1143                                             iProperties[EPbPropertyMute]));
  1137                                             iProperties[EPbPropertyMute]));
  1144                     }
       
  1145                 break;
  1138                 break;
  1146                 }
  1139                 }
  1147             case EPPositionChanged:
  1140             case EPPositionChanged:
  1148                 {
  1141                 {
  1149                 iProperties[EPbPropertyPosition] = aData;
  1142                 iProperties[EPbPropertyPosition] = aData;