mmserv/radioutility/radioserver/Server/Src/RadioServer.cpp
changeset 14 80975da52420
parent 12 5a06f39ad45b
child 16 43d09473c595
--- a/mmserv/radioutility/radioserver/Server/Src/RadioServer.cpp	Fri Apr 16 15:29:42 2010 +0300
+++ b/mmserv/radioutility/radioserver/Server/Src/RadioServer.cpp	Mon May 03 12:59:52 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;