diff -r 49233e24b2ab -r 45ab7373901d voicerecorder/RecViewSrc/CVRRecViewContainer.cpp --- a/voicerecorder/RecViewSrc/CVRRecViewContainer.cpp Mon Mar 15 12:40:50 2010 +0200 +++ b/voicerecorder/RecViewSrc/CVRRecViewContainer.cpp Wed Mar 31 21:35:17 2010 +0300 @@ -681,19 +681,19 @@ iVolumeChangeObserver->SetVolume( newValue, KVRMaxVolumeSteps ); } - // determine if the volume was already at either end - // (of the scale) - // play a system sound in that case. - if ( prevLevel == control->Value() ) + TInt sid( EAvkonSIDStandardKeyClick ); + + if ( prevLevel <= KVRVolumeControlMin ) { - TInt sid( EAvkonSIDVolumeMaxTone ); - if ( prevLevel == 1 ) - { - sid = EAvkonSIDVolumeMinTone; - } - appUi->KeySounds()->PlaySound( sid ); - User::Leave(KErrTooBig); - } + sid = EAvkonSIDVolumeMinTone; + } + else if ( prevLevel >= KVRVolumeControlMax ) + { + sid = EAvkonSIDVolumeMaxTone; + } + appUi->KeySounds()->PlaySound( sid ); + User::Leave(KErrTooBig); + } else if(iActiveVolumeControl == NULL) {