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