diff -r fa6d9f75d6a6 -r 2094593137f5 camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp --- a/camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp Mon May 03 12:22:55 2010 +0300 +++ b/camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp Fri May 14 15:40:46 2010 +0300 @@ -907,19 +907,23 @@ /*! * Slot to handle Autofocus events. +* \param newState Indicates current state of the auto focus +* \param error Contains possible error code */ void CxeStillCaptureControlSymbian::handleAutofocusStateChanged( CxeAutoFocusControl::State newState, - CxeError::Id /*error*/ ) + CxeError::Id error ) { CX_DEBUG_ENTER_FUNCTION(); + Q_UNUSED(error); mAfState = newState; CxeAutoFocusControl::Mode mode = mAutoFocusControl.mode(); // if focused and in correct mode, play sound if (newState == CxeAutoFocusControl::Ready && mode != CxeAutoFocusControl::Hyperfocal && - mode != CxeAutoFocusControl::Infinity) { + mode != CxeAutoFocusControl::Infinity && + mAutoFocusControl.isSoundEnabled()) { mAutoFocusSoundPlayer->play(); } CX_DEBUG_EXIT_FUNCTION();