phoneengine/audiohandling/src/cpegsmaudiodata.cpp
branchRCL_3
changeset 58 40a3f856b14d
parent 0 5f000ab63145
child 61 41a7f70b3818
--- a/phoneengine/audiohandling/src/cpegsmaudiodata.cpp	Thu Jul 15 18:38:16 2010 +0300
+++ b/phoneengine/audiohandling/src/cpegsmaudiodata.cpp	Thu Aug 19 09:54:27 2010 +0300
@@ -35,7 +35,7 @@
 // None.
 
 // CONSTANTS
-// None.
+const TInt KDtmfSilent = 0;
 
 // MACROS
 // None.
@@ -158,9 +158,14 @@
         "AUD CPEGsmAudioData::PlayDtmfTone, aTone = %s, volume = %d", 
         &aTone, 
         volume );
-
-	iDtmfTonePlayer->SetVolume( volume );
-    iDtmfTonePlayer->PlayDtmfTone( aTone );
+		
+    // If profile key tones setting is OFF, the volume will be O 
+	// Don't play dtmf tone here to avoid interrupting the possible touch tone's playing.
+    if ( KDtmfSilent != volume )
+        {
+        iDtmfTonePlayer->SetVolume( volume );
+        iDtmfTonePlayer->PlayDtmfTone( aTone );
+        }
     }
 
 // -----------------------------------------------------------------------------