mmserv/radioutility/radioserver/Server/Src/RadioServer.cpp
branchRCL_3
changeset 11 03a293c97d5c
parent 8 e35735ece90c
child 17 3570217d8c21
--- 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;