camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp
changeset 32 5c1e3c6aa4ef
parent 29 699651f2666f
child 36 b12f3922a74f
equal deleted inserted replaced
29:699651f2666f 32:5c1e3c6aa4ef
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   802     mAfState = newState;
   802     mAfState = newState;
   803     CxeAutoFocusControl::Mode mode = mAutoFocusControl.mode();
   803     CxeAutoFocusControl::Mode mode = mAutoFocusControl.mode();
   804 
   804 
   805     // if focused and in correct mode, play sound
   805     // if focused and in correct mode, play sound
   806     if  (newState == CxeAutoFocusControl::Ready &&
   806     if  (newState == CxeAutoFocusControl::Ready &&
   807          mode != CxeAutoFocusControl::Hyperfocal &&
   807          !mAutoFocusControl.isFixedFocusMode(mode) &&
   808          mode != CxeAutoFocusControl::Infinity &&
       
   809          mAutoFocusControl.isSoundEnabled()) {
   808          mAutoFocusControl.isSoundEnabled()) {
   810         mAutoFocusSoundPlayer->play();
   809         mAutoFocusSoundPlayer->play();
   811     }
   810     }
   812     CX_DEBUG_EXIT_FUNCTION();
   811     CX_DEBUG_EXIT_FUNCTION();
   813 }
   812 }