camerauis/cameraxui/cxengine/src/cxesoundplayersymbian.cpp
changeset 48 42ba2d16bf40
parent 37 64817133cd1d
child 55 0da2a5b56583
--- a/camerauis/cameraxui/cxengine/src/cxesoundplayersymbian.cpp	Tue Jul 06 14:04:02 2010 +0300
+++ b/camerauis/cameraxui/cxengine/src/cxesoundplayersymbian.cpp	Wed Aug 18 09:37:18 2010 +0300
@@ -259,12 +259,8 @@
     CX_DEBUG(("Warning tones enabled [%d]", value.toInt()));
 
     // check whether capture sound is forced or not
-    int forced = 0;
-    mSettings.get(CxeSettingIds::CAPTURE_SOUND_ALWAYS_ON, forced);
-    // 0 -> capture sound not forced
-    // 1 -> capture sound forced on
-    mCaptureSoundForced = (forced == 1);
-    CX_DEBUG(("Capture sound forced [%d]", forced));
+    mCaptureSoundForced = mSettings.get<bool>(CxeSettingIds::CAPTURE_SOUND_ALWAYS_ON, false);
+    CX_DEBUG(("Capture sound forced [%d]", mCaptureSoundForced));
 
     // use sound if forced on or warningtones are enabled
     mUseSound = mCaptureSoundForced || warningTonesEnabled;