--- a/mmserv/tms/tmsserver/src/tmscenrepaudiohandler.cpp Thu Aug 19 10:26:11 2010 +0300
+++ b/mmserv/tms/tmsserver/src/tmscenrepaudiohandler.cpp Tue Aug 31 15:43:02 2010 +0300
@@ -33,10 +33,10 @@
#include "tmspubsublistener.h"
#include "tmsutility.h"
-#ifndef __WINS__
+#ifdef __WINSCW__
+const TInt KDefaultMaxGain = 64;
+#else
const TInt KDefaultMaxGain = 1;
-#else
-const TInt KDefaultMaxGain = 64;
#endif
using namespace TMS;
@@ -78,30 +78,33 @@
{
TInt muteVal;
TInt err = KErrNotFound;
-
- if (iMuteListener)
+ if (iPublish)
{
- err = iMuteListener->Get(muteVal);
- }
- if (err == KErrNone && muteVal == EPSTelMicMuteOn)
- {
-#if !defined(__WINSCW__)
- if (iTMSSer)
+ if (iMuteListener)
{
- iTMSSer->SetGain(NULL, 0);
+ err = iMuteListener->Get(muteVal);
}
-#endif //__WINSCW__
- }
- else if (err == KErrNone)
- {
+ if (err == KErrNone && muteVal == EPSTelMicMuteOn)
+ {
#if !defined(__WINSCW__)
- // Change when gain is really changed
- if (iTMSSer)
+ if (iTMSSer)
+ {
+ iTMSSer->SetGain(NULL, 0);
+ }
+#endif //__WINSCW__
+ }
+ else if (err == KErrNone)
{
- iTMSSer->SetGain(NULL, KDefaultMaxGain);
+#if !defined(__WINSCW__)
+ // Change when gain is really changed
+ if (iTMSSer)
+ {
+ iTMSSer->SetGain(NULL, KDefaultMaxGain);
+ }
+#endif //__WINSCW__
}
-#endif //__WINSCW__
}
+ iPublish = TRUE;
}
// ---------------------------------------------------------------------------
@@ -121,6 +124,7 @@
iMuteListener->Set(EPSTelMicMuteOff);
}
}
+ iPublish = FALSE;
}
// ---------------------------------------------------------------------------
@@ -216,6 +220,7 @@
/*volGetRes =*/ iIncallLoudspeakerVolumeListener->Get(volLoud);
}
+ iPublish = TRUE;
TRACE_PRN_FN_EXT;
}