phoneapp/phoneuiview/src/cphoneaudioplayer.cpp
branchCompilerCompatibility
changeset 13 2411cd0e2ad6
parent 9 8871b09be73b
child 15 2a26698d78ba
equal deleted inserted replaced
11:abbe9afab2af 13:2411cd0e2ad6
   996     {
   996     {
   997     //_DDPRINT( 5, "P.AudPlayer.ConvertVolume.aVolume", aVolume );
   997     //_DDPRINT( 5, "P.AudPlayer.ConvertVolume.aVolume", aVolume );
   998 
   998 
   999     TInt result( 0 );    
   999     TInt result( 0 );    
  1000     
  1000     
  1001     if ( iFormat == EFormatTone )
  1001     if ( iFormat == EFormatTone && iTonePlayer )
  1002         {
  1002         {
  1003         result = iTonePlayer->MaxVolume() * aVolume / KMaxVolumeLevel;
  1003         result = iTonePlayer->MaxVolume() * aVolume / KMaxVolumeLevel;
  1004         }
  1004         }
  1005     else if ( iFormat == EFormatTts )
  1005     else if ( iFormat == EFormatTts && iTtsPlayer )
  1006         {
  1006         {
  1007         result = iTtsPlayer->MaxVolume() * aVolume / KMaxVolumeLevel;    
  1007         result = iTtsPlayer->MaxVolume() * aVolume / KMaxVolumeLevel;    
  1008         }
  1008         }
  1009     else
  1009     else
  1010         {
  1010         {
  1039 void CPhoneAudioPlayer::MutePlaying()
  1039 void CPhoneAudioPlayer::MutePlaying()
  1040     {
  1040     {
  1041     //_DPRINT( 5, "P.Aud.Mute" );
  1041     //_DPRINT( 5, "P.Aud.Mute" );
  1042     if ( iPlayerStatus == ETonePlaying )
  1042     if ( iPlayerStatus == ETonePlaying )
  1043         {
  1043         {
  1044         if ( iFormat == EFormatTone )
  1044         if ( iFormat == EFormatTone && iTonePlayer )
  1045             {
  1045             {
  1046             iTonePlayer->SetVolume(0);
  1046             iTonePlayer->SetVolume(0);
  1047             }
  1047             }
  1048         else if ( iFormat == EFormatTts )
  1048         else if ( iFormat == EFormatTts && iTtsPlayer )
  1049             {
  1049             {
  1050             iTtsPlayer->SetVolume(0);
  1050             iTtsPlayer->SetVolume(0);
  1051             }
  1051             }
  1052         else // EFormatSample
  1052         else // EFormatSample
  1053             {
  1053             {