equal
deleted
inserted
replaced
31 #include "tmscenrepaudiohandler.h" |
31 #include "tmscenrepaudiohandler.h" |
32 #include "tmscenreplistener.h" |
32 #include "tmscenreplistener.h" |
33 #include "tmspubsublistener.h" |
33 #include "tmspubsublistener.h" |
34 #include "tmsutility.h" |
34 #include "tmsutility.h" |
35 |
35 |
|
36 #ifndef __WINS__ |
|
37 const TInt KDefaultMaxGain = 1; |
|
38 #else |
36 const TInt KDefaultMaxGain = 64; |
39 const TInt KDefaultMaxGain = 64; |
|
40 #endif |
37 |
41 |
38 using namespace TMS; |
42 using namespace TMS; |
39 |
43 |
40 // --------------------------------------------------------------------------- |
44 // --------------------------------------------------------------------------- |
41 // TMSCenRepAudioHandler::NewL. |
45 // TMSCenRepAudioHandler::NewL. |
63 delete iIncallLoudspeakerVolumeListener; |
67 delete iIncallLoudspeakerVolumeListener; |
64 delete iIncallEarVolumeListener; |
68 delete iIncallEarVolumeListener; |
65 TRACE_PRN_FN_EXT; |
69 TRACE_PRN_FN_EXT; |
66 } |
70 } |
67 |
71 |
|
72 // --------------------------------------------------------------------------- |
|
73 // TMSCenRepAudioHandler::HandleNotifyPSL |
|
74 // --------------------------------------------------------------------------- |
|
75 // |
68 void TMSCenRepAudioHandler::HandleNotifyPSL(const TUid /*aUid*/, |
76 void TMSCenRepAudioHandler::HandleNotifyPSL(const TUid /*aUid*/, |
69 const TInt& /*aKey*/, const TRequestStatus& /*aStatus*/) |
77 const TInt& /*aKey*/, const TRequestStatus& /*aStatus*/) |
70 { |
78 { |
71 TInt muteVal; |
79 TInt muteVal; |
72 TInt err = KErrNotFound; |
80 TInt err = KErrNotFound; |
95 #endif //__WINSCW__ |
103 #endif //__WINSCW__ |
96 } |
104 } |
97 } |
105 } |
98 |
106 |
99 // --------------------------------------------------------------------------- |
107 // --------------------------------------------------------------------------- |
|
108 // TMSCenRepAudioHandler::SetMuteState |
|
109 // --------------------------------------------------------------------------- |
|
110 // |
|
111 void TMSCenRepAudioHandler::SetMuteState(TInt level) |
|
112 { |
|
113 if (iMuteListener) |
|
114 { |
|
115 if (level == 0) |
|
116 { |
|
117 iMuteListener->Set(EPSTelMicMuteOn); |
|
118 } |
|
119 else |
|
120 { |
|
121 iMuteListener->Set(EPSTelMicMuteOff); |
|
122 } |
|
123 } |
|
124 } |
|
125 |
|
126 // --------------------------------------------------------------------------- |
100 // TMSCenRepAudioHandler::SetLoudSpeakerVol |
127 // TMSCenRepAudioHandler::SetLoudSpeakerVol |
101 // --------------------------------------------------------------------------- |
128 // --------------------------------------------------------------------------- |
102 // |
129 // |
103 void TMSCenRepAudioHandler::SetLoudSpeakerVol(TInt vol) |
130 void TMSCenRepAudioHandler::SetLoudSpeakerVol(TInt vol) |
104 { |
131 { |