phoneengine/audiohandling/src/cpeaudiodata.cpp
changeset 46 bc5a64e5bc3c
parent 37 ba76fc04e6c2
child 50 377c906a8701
child 51 f39ed5e045e0
equal deleted inserted replaced
45:6b911d05207e 46:bc5a64e5bc3c
    27 #include <telmicmutestatuspskeys.h>
    27 #include <telmicmutestatuspskeys.h>
    28 #include <PSVariables.h>
    28 #include <PSVariables.h>
    29 #include <tms.h>
    29 #include <tms.h>
    30 #include <tmseffectobsrvr.h>
    30 #include <tmseffectobsrvr.h>
    31 #include <tmsglobalvoleffect.h>
    31 #include <tmsglobalvoleffect.h>
       
    32 #include <telinformationpskeys.h>
    32 #include "pepanic.pan"
    33 #include "pepanic.pan"
    33 #include "cpeaudiodtmftoneplayer.h"
    34 #include "cpeaudiodtmftoneplayer.h"
    34 #include "cpeaudioroutingmonitor.h"
    35 #include "cpeaudioroutingmonitor.h"
    35 #include "cpecallaudioroutinghandler.h"
    36 #include "cpecallaudioroutinghandler.h"
    36 #include "cpeaudiofactory.h"
    37 #include "cpeaudiofactory.h"
   543             iPhoneModel.DataStore()->AudioOutputPreference();
   544             iPhoneModel.DataStore()->AudioOutputPreference();
   544     if (outputPreference == EPSAudioPublic)
   545     if (outputPreference == EPSAudioPublic)
   545         {
   546         {
   546         output = CTelephonyAudioRouting::ELoudspeaker;
   547         output = CTelephonyAudioRouting::ELoudspeaker;
   547         }
   548         }
       
   549     else
       
   550         {
       
   551         TInt value; 
       
   552         const TInt err = RProperty::Get( KPSUidTelCarMode, KTelCarMode, value );
       
   553         if ( !err && value == EPSCarModeOn )
       
   554             {
       
   555             output = CTelephonyAudioRouting::ELoudspeaker;
       
   556             }
       
   557         }
       
   558         
   548     TEFLOGSTRING2( KTAMESINT, "AUD CPEAudioData::RoutePreference() output %d", output );
   559     TEFLOGSTRING2( KTAMESINT, "AUD CPEAudioData::RoutePreference() output %d", output );
   549     return output;
   560     return output;
   550     }
   561     }
   551 // -----------------------------------------------------------------------------
   562 // -----------------------------------------------------------------------------
   552 // CPEAudioData::IsWiredAvailable
   563 // CPEAudioData::IsWiredAvailable