voicerecorder/RecViewSrc/CVRRecViewContainer.cpp
branchRCL_3
changeset 12 45ab7373901d
parent 10 49233e24b2ab
equal deleted inserted replaced
10:49233e24b2ab 12:45ab7373901d
   679 						if ( iVolumeChangeObserver )
   679 						if ( iVolumeChangeObserver )
   680 							{
   680 							{
   681 							iVolumeChangeObserver->SetVolume( newValue, KVRMaxVolumeSteps );
   681 							iVolumeChangeObserver->SetVolume( newValue, KVRMaxVolumeSteps );
   682 							}
   682 							}
   683 
   683 
   684 						// determine if the volume was already at either end
   684 						TInt sid( EAvkonSIDStandardKeyClick );
   685 						// (of the scale)
   685 
   686 						// play a system sound in that case.
   686 						if ( prevLevel <= KVRVolumeControlMin )
   687 						if ( prevLevel == control->Value() )
       
   688 							{
   687 							{
   689 							TInt sid( EAvkonSIDVolumeMaxTone );
   688 							sid = EAvkonSIDVolumeMinTone;
   690 							if ( prevLevel == 1 )
   689 							}
   691 								{
   690 						else if ( prevLevel >= KVRVolumeControlMax )
   692 								sid = EAvkonSIDVolumeMinTone;
   691 							{
   693 								}
   692 							sid = EAvkonSIDVolumeMaxTone;
   694 							appUi->KeySounds()->PlaySound( sid );
   693 							}
   695 							User::Leave(KErrTooBig);
   694 						appUi->KeySounds()->PlaySound( sid );
   696 							}	
   695 						User::Leave(KErrTooBig);
       
   696 						
   697  				    }
   697  				    }
   698 				else if(iActiveVolumeControl == NULL)
   698 				else if(iActiveVolumeControl == NULL)
   699 					{
   699 					{
   700 						User::Leave(KErrNotReady);
   700 						User::Leave(KErrNotReady);
   701 					}
   701 					}