equal
deleted
inserted
replaced
69 |
69 |
70 const TInt KShowNoNotes = 0; |
70 const TInt KShowNoNotes = 0; |
71 const TInt KShowNotes = 1; |
71 const TInt KShowNotes = 1; |
72 |
72 |
73 const TInt KFrameExpansion = 10; |
73 const TInt KFrameExpansion = 10; |
|
74 const TInt KMaxVolumeLevel = 10; |
74 |
75 |
75 // MODULE DATA STRUCTURES |
76 // MODULE DATA STRUCTURES |
76 |
77 |
77 enum TOptionListLocation |
78 enum TOptionListLocation |
78 { |
79 { |
576 // |
577 // |
577 void CRingingToneBioControl::GetAndSetRingingToneVolumeL() |
578 void CRingingToneBioControl::GetAndSetRingingToneVolumeL() |
578 { |
579 { |
579 TInt ringingVol; |
580 TInt ringingVol; |
580 TInt ringingType; |
581 TInt ringingType; |
581 |
582 TInt aMaxVolume; |
|
583 aMaxVolume = iAudioControl->MaxVolume(); |
582 CRepository* repository = CRepository::NewLC( KCRUidProfileEngine ); |
584 CRepository* repository = CRepository::NewLC( KCRUidProfileEngine ); |
583 |
585 |
584 User::LeaveIfError( repository->Get( KProEngActiveRingingVolume, ringingVol )); |
586 User::LeaveIfError( repository->Get( KProEngActiveRingingVolume, ringingVol )); |
585 User::LeaveIfError( repository->Get( KProEngActiveRingingType, ringingType )); |
587 User::LeaveIfError( repository->Get( KProEngActiveRingingType, ringingType )); |
586 |
588 |
593 RDebug::Print(_L("Profile: Ring type silent")); |
595 RDebug::Print(_L("Profile: Ring type silent")); |
594 iAudioControl->SetVolume(KRingVolumeZero); |
596 iAudioControl->SetVolume(KRingVolumeZero); |
595 } |
597 } |
596 else |
598 else |
597 { |
599 { |
|
600 TInt result( aMaxVolume * ringingVol / KMaxVolumeLevel ); |
598 RDebug::Print(_L("Ringing volume : %d"), ringingVol); |
601 RDebug::Print(_L("Ringing volume : %d"), ringingVol); |
599 iAudioControl->SetVolume(ringingVol); |
602 iAudioControl->SetVolume(result); |
600 } |
603 } |
601 #endif |
604 #endif |
602 } |
605 } |
603 |
606 |
604 |
607 |