khronosfws/openmax_al/src/mmf_adaptation/xanokialinearvolumeitfadaptationmmf.c
changeset 52 4ce423f34688
parent 42 1fa3fb47b1e3
--- a/khronosfws/openmax_al/src/mmf_adaptation/xanokialinearvolumeitfadaptationmmf.c	Thu Sep 02 20:58:01 2010 +0300
+++ b/khronosfws/openmax_al/src/mmf_adaptation/xanokialinearvolumeitfadaptationmmf.c	Fri Sep 17 08:33:15 2010 +0300
@@ -49,12 +49,11 @@
         }
     else if (ctx->baseObj.ctxId == XARadioAdaptation)
         {
-        mmf_set_player_adapt_context(cmmfradiobackendengine_init(), ctx);
         res = get_volume(cmmfradiobackendengine_init(), &vol);
         *percentage = vol;
         }      
 
-    DEBUG_API_A1("<-XANokiaLinearVolumeItfAdapt_GetVolumeLevel %d", percentage);
+    DEBUG_API_A1("<-XANokiaLinearVolumeItfAdapt_GetVolumeLevel %d", (int)percentage);
     return res;
 }
 
@@ -98,8 +97,7 @@
         }
     else if (ctx->baseObj.ctxId == XARadioAdaptation)
         {
-        mmf_set_player_adapt_context(cmmfradiobackendengine_init(), ctx);
-        res = set_volume(cmmfradiobackendengine_init(), percentage);
+        res = set_volume(cmmfradiobackendengine_init(), ctx, percentage);
         }
     DEBUG_API("<-XANokiaLinearVolumeItfAdapt_SetVolumeLevel");
     return res;
@@ -130,17 +128,5 @@
     return res;
     }
 
-void XANokiaLinearVolumeItfAdapt_VolumeChange(XAAdaptationBaseCtx *ctx,
-        TInt aVolume)
-    {
-    XAAdaptEvent event =
-        {
-        XA_NOKIALINEARVOLITFEVENTS, XA_ADAPT_VOLUME_VOLUME_CHANGED, 1, 0
-        };
-    if (ctx)
-        {
-        event.data = &aVolume;
-        XAAdaptationBase_SendAdaptEvents(ctx, &event);
-        }
-    }
 
+