camerauis/cameraapp/generic/src/CamSelfTimer.cpp
branchRCL_3
changeset 20 38fb6f7eacd5
parent 0 1ddebce53859
equal deleted inserted replaced
18:51dda465e618 20:38fb6f7eacd5
    31 #ifdef OST_TRACE_COMPILER_IN_USE
    31 #ifdef OST_TRACE_COMPILER_IN_USE
    32 #include "CamSelfTimerTraces.h"
    32 #include "CamSelfTimerTraces.h"
    33 #endif
    33 #endif
    34 
    34 
    35 // CONSTANTS
    35 // CONSTANTS
    36 const TInt    KCamSelfTimerToneHz  = 1760;         
       
    37 const TReal32 KCamSelfTimerToneVol = 0.75f;    
       
    38 
    36 
    39 
    37 
    40 // MACROS
    38 // MACROS
    41 
    39 
    42 // LOCAL CONSTANTS AND MACROS
    40 // LOCAL CONSTANTS AND MACROS
   475     iIndication = aOn;
   473     iIndication = aOn;
   476 
   474 
   477     if ( aOn )        
   475     if ( aOn )        
   478         {        
   476         {        
   479         NotifyObservers( ECamSelfTimerEventTimerOn );
   477         NotifyObservers( ECamSelfTimerEventTimerOn );
   480         iController.PlayTone( KCamSelfTimerToneHz, iTimerTickPeriod.Int()/2, KCamSelfTimerToneVol, EFalse );
   478         iController.PlaySound( ECamSelfTimerSoundId,  EFalse );
   481         }
   479         }
   482     else
   480     else
   483         {
   481         {
   484         NotifyObservers( ECamSelfTimerEventTimerOff );
   482         NotifyObservers( ECamSelfTimerEventTimerOff );
   485         }
   483         }