--- a/messagingappbase/smartmessaging/ringbc/src/RingingToneBioControl.cpp Thu Jan 07 12:45:05 2010 +0200
+++ b/messagingappbase/smartmessaging/ringbc/src/RingingToneBioControl.cpp Mon Jan 18 20:16:40 2010 +0200
@@ -71,6 +71,7 @@
const TInt KShowNotes = 1;
const TInt KFrameExpansion = 10;
+const TInt KMaxVolumeLevel = 10;
// MODULE DATA STRUCTURES
@@ -578,7 +579,8 @@
{
TInt ringingVol;
TInt ringingType;
-
+ TInt aMaxVolume;
+ aMaxVolume = iAudioControl->MaxVolume();
CRepository* repository = CRepository::NewLC( KCRUidProfileEngine );
User::LeaveIfError( repository->Get( KProEngActiveRingingVolume, ringingVol ));
@@ -595,8 +597,9 @@
}
else
{
+ TInt result( aMaxVolume * ringingVol / KMaxVolumeLevel );
RDebug::Print(_L("Ringing volume : %d"), ringingVol);
- iAudioControl->SetVolume(ringingVol);
+ iAudioControl->SetVolume(result);
}
#endif
}