mmserv/tms/tmsserver/src/tmscenrepaudiohandler.cpp
branchRCL_3
changeset 17 60e492b28869
parent 9 f5c5c82a163e
child 19 095bea5f582e
--- a/mmserv/tms/tmsserver/src/tmscenrepaudiohandler.cpp	Mon Jun 21 16:15:34 2010 +0300
+++ b/mmserv/tms/tmsserver/src/tmscenrepaudiohandler.cpp	Thu Jul 15 19:13:36 2010 +0300
@@ -33,7 +33,11 @@
 #include "tmspubsublistener.h"
 #include "tmsutility.h"
 
+#ifndef __WINS__
+const TInt KDefaultMaxGain = 1;
+#else
 const TInt KDefaultMaxGain = 64;
+#endif
 
 using namespace TMS;
 
@@ -65,6 +69,10 @@
     TRACE_PRN_FN_EXT;
     }
 
+// ---------------------------------------------------------------------------
+// TMSCenRepAudioHandler::HandleNotifyPSL
+// ---------------------------------------------------------------------------
+//
 void TMSCenRepAudioHandler::HandleNotifyPSL(const TUid /*aUid*/,
         const TInt& /*aKey*/, const TRequestStatus& /*aStatus*/)
     {
@@ -97,6 +105,25 @@
     }
 
 // ---------------------------------------------------------------------------
+// TMSCenRepAudioHandler::SetMuteState
+// ---------------------------------------------------------------------------
+//
+void TMSCenRepAudioHandler::SetMuteState(TInt level)
+    {
+    if (iMuteListener)
+        {
+        if (level == 0)
+            {
+            iMuteListener->Set(EPSTelMicMuteOn);
+            }
+        else
+            {
+            iMuteListener->Set(EPSTelMicMuteOff);
+            }
+        }
+    }
+
+// ---------------------------------------------------------------------------
 // TMSCenRepAudioHandler::SetLoudSpeakerVol
 // ---------------------------------------------------------------------------
 //