mpxplugins/serviceplugins/playbackplugins/progressdownloadsb/src/mpxprogressdownloadsb.cpp
branchRCL_3
changeset 18 56b11cf8addb
parent 17 70a8526f03f2
child 24 26a1709b9fec
--- a/mpxplugins/serviceplugins/playbackplugins/progressdownloadsb/src/mpxprogressdownloadsb.cpp	Tue May 11 16:10:56 2010 +0300
+++ b/mpxplugins/serviceplugins/playbackplugins/progressdownloadsb/src/mpxprogressdownloadsb.cpp	Tue May 25 12:39:12 2010 +0300
@@ -472,7 +472,7 @@
         {
         case EPbPropertyVolume:
             {
-            SetVolume(aValue);
+            SetVolume( aValue, EFalse ); // don't notify MPX because playback engine converts EPSetComplete to EPropertyChanged
             }
             break;
         case EPbPropertyVolumeRamp:
@@ -489,7 +489,7 @@
             }
             break;
         case EPbPropertyMute:
-            SetMute( aValue );
+            SetMute( aValue, EFalse );  // don't notify MPX because playback engine converts EPSetComplete to EPropertyChanged
             break;
         case EPbPropertyBalance:
             break;
@@ -1372,7 +1372,7 @@
 // Sets the volume level in audio controller
 // ----------------------------------------------------------------------------
 //
-void CMPXProgressDownloadSB::SetVolume( TInt aVolume )
+void CMPXProgressDownloadSB::SetVolume( TInt aVolume, TBool aNotifyChange )
     {
     MPX_DEBUG2("CMPXProgressDownloadSB::SetVolume(%d) entering", aVolume);
 
@@ -1430,7 +1430,7 @@
 
 
     // Notify observer if value changed
-    if ( changed )
+    if ( changed && aNotifyChange )
         {
         iObs->HandlePluginEvent( MMPXPlaybackPluginObserver::EPVolumeChanged,
                                  aVolume,
@@ -1444,7 +1444,7 @@
 // Sets the volume level in audio controller
 // ----------------------------------------------------------------------------
 //
-void CMPXProgressDownloadSB::SetMute( TBool aMute )
+void CMPXProgressDownloadSB::SetMute( TBool aMute, TBool aNotifyChange )
     {
     MPX_DEBUG3("-->CMPXProgressDownloadSB::SetMute 0x%08x vol (%d)", this, aMute);
 
@@ -1483,7 +1483,7 @@
         }
 
     // Notify observer if value changed
-    if ( changed )
+    if ( changed && aNotifyChange )
         {
         iObs->HandlePluginEvent( MMPXPlaybackPluginObserver::EPMuteChanged,
                                  aMute,