--- a/mmserv/radioutility/radioserver/Server/Src/RadioServer.cpp Wed Mar 31 22:29:45 2010 +0300
+++ b/mmserv/radioutility/radioserver/Server/Src/RadioServer.cpp Wed Apr 14 16:29:54 2010 +0300
@@ -695,6 +695,15 @@
TRadioServerError aError )
{
RADIO_RDEBUG_INT2(_L("[RADIO-SVR] SetFrequencyComplete(%d) State[%d]"), aError, iState);
+
+ // Disable squelching, if on
+ if ( iSquelch )
+ {
+ // Restore the last volume
+ iDevSound->SetVolume(iSettings->Volume());
+ iSquelch = EFalse;
+ }
+
if ( iAsyncRequest && iAsyncRequest->iType == ERadioServSetFrequency )
{
if ( aError == KErrNone )
@@ -1798,6 +1807,12 @@
}
else
{
+ if ( iSettings->IsSquelchEnabled() && !iSettings->IsMute() )
+ {
+ // Simulate squelching
+ iDevSound->SetVolume(0);
+ iSquelch = ETrue;
+ }
iTunerControl->SetFrequency(aFrequency);
}
break;