camerauis/cameraapp/generic/src/audioplayer/camaudioplayerwrapper.cpp
branchRCL_3
changeset 16 d486e5e3cc9a
parent 0 1ddebce53859
child 20 38fb6f7eacd5
equal deleted inserted replaced
12:8c55c525d5d7 16:d486e5e3cc9a
    35 
    35 
    36 
    36 
    37 
    37 
    38 // ===========================================================================  
    38 // ===========================================================================  
    39 // Constants
    39 // Constants
    40 
    40 const TReal32 KCamSoundVol = 0.75f; 
    41 // Migrated directly from old sound player.
    41 // Migrated directly from old sound player.
    42 #ifndef __WINSCW__
    42 #ifndef __WINSCW__
    43   static const TUint KAudioPriority = KAudioPriorityCameraTone;
    43   static const TUint KAudioPriority = KAudioPriorityCameraTone;
    44 #else
    44 #else
    45   static const TUint KAudioPriority = KAudioPriorityVideoRecording;
    45   static const TUint KAudioPriority = KAudioPriorityVideoRecording;
   134     {
   134     {
   135     case CCamAudioPlayerWrapper::EReady:
   135     case CCamAudioPlayerWrapper::EReady:
   136       iPlayRequested = EFalse;
   136       iPlayRequested = EFalse;
   137       iState         = CCamAudioPlayerWrapper::EPlaying;
   137       iState         = CCamAudioPlayerWrapper::EPlaying;
   138       iCallback      = aCallback;
   138       iCallback      = aCallback;
       
   139       iPlayer->SetVolume( static_cast<TInt>( iPlayer->MaxVolume()* KCamSoundVol ) );
   139       iPlayer->Play();
   140       iPlayer->Play();
   140       break;
   141       break;
   141 
   142 
   142     case CCamAudioPlayerWrapper::EInitializing:
   143     case CCamAudioPlayerWrapper::EInitializing:
   143       iPlayRequested = ETrue;
   144       iPlayRequested = ETrue;