equal
deleted
inserted
replaced
35 const TUint KDefaultBufferLength = 10; |
35 const TUint KDefaultBufferLength = 10; |
36 const TUint KDefaultBufferThreshold = 5; |
36 const TUint KDefaultBufferThreshold = 5; |
37 const TUint KDefaultPreference = EMdaPriorityPreferenceNone; |
37 const TUint KDefaultPreference = EMdaPriorityPreferenceNone; |
38 const TUint KDefaultPriority = EMdaPriorityNormal; |
38 const TUint KDefaultPriority = EMdaPriorityNormal; |
39 const TInt KDefaultModeChangePeriod = 1; |
39 const TInt KDefaultModeChangePeriod = 1; |
|
40 const TUint KMccSecsToMicroSecs = 1000000; |
40 |
41 |
41 |
42 |
42 // MACROS |
43 // MACROS |
43 |
44 |
44 // LOCAL CONSTANTS AND MACROS |
45 // LOCAL CONSTANTS AND MACROS |
134 iPTime = codecInfo.iPtime; |
135 iPTime = codecInfo.iPtime; |
135 iPayloadType = codecInfo.iPayloadType; |
136 iPayloadType = codecInfo.iPayloadType; |
136 iFrameSize = codecInfo.iFrameSize; |
137 iFrameSize = codecInfo.iFrameSize; |
137 iHwFrameTime = codecInfo.iHwFrameTime; |
138 iHwFrameTime = codecInfo.iHwFrameTime; |
138 |
139 |
139 iKeepAliveTimer = codecInfo.iKeepaliveInterval; |
140 if( (codecInfo.iKeepaliveInterval / KMccSecsToMicroSecs) > KMaxTUint8 ) |
|
141 { |
|
142 iKeepAliveTimer = KMaxTUint8; |
|
143 iKeepAliveTimerMicroSecs = KMaxTUint8 * KMccSecsToMicroSecs; |
|
144 } |
|
145 else |
|
146 { |
|
147 iKeepAliveTimer = codecInfo.iKeepaliveInterval / KMccSecsToMicroSecs; |
|
148 iKeepAliveTimerMicroSecs = codecInfo.iKeepaliveInterval; |
|
149 } |
140 iKeepAlivePT = codecInfo.iKeepalivePT; |
150 iKeepAlivePT = codecInfo.iKeepalivePT; |
141 iKeepAliveData = codecInfo.iKeepaliveData; |
151 iKeepAliveData = codecInfo.iKeepaliveData; |
142 |
152 |
143 iMaxRed = codecInfo.iMaxRed; |
153 iMaxRed = codecInfo.iMaxRed; |
144 |
154 |
186 codecInfo.iFrameSize = iFrameSize; |
196 codecInfo.iFrameSize = iFrameSize; |
187 codecInfo.iHwFrameTime = iHwFrameTime; |
197 codecInfo.iHwFrameTime = iHwFrameTime; |
188 codecInfo.iRedundantPayload = iRedundancyPT; |
198 codecInfo.iRedundantPayload = iRedundancyPT; |
189 codecInfo.iNeighbor = iNeighbor; |
199 codecInfo.iNeighbor = iNeighbor; |
190 codecInfo.iModeChangePeriod = iModeChangePeriod; |
200 codecInfo.iModeChangePeriod = iModeChangePeriod; |
191 codecInfo.iKeepaliveInterval = iKeepAliveTimer; |
201 codecInfo.iKeepaliveInterval = iKeepAliveTimerMicroSecs; |
192 codecInfo.iKeepalivePT = iKeepAlivePT; |
202 codecInfo.iKeepalivePT = iKeepAlivePT; |
193 codecInfo.iKeepaliveData = iKeepAliveData; |
203 codecInfo.iKeepaliveData = iKeepAliveData; |
194 codecInfo.iMaxRed = iMaxRed; |
204 codecInfo.iMaxRed = iMaxRed; |
195 |
205 |
196 if ( iConfigKey && iConfigKey->Length() <= KMaxConfigKeyLen ) |
206 if ( iConfigKey && iConfigKey->Length() <= KMaxConfigKeyLen ) |
922 // ----------------------------------------------------------------------------- |
932 // ----------------------------------------------------------------------------- |
923 // |
933 // |
924 TInt CMccCodecInformation::SetKeepAliveTimer( TUint8 aTimerValue ) |
934 TInt CMccCodecInformation::SetKeepAliveTimer( TUint8 aTimerValue ) |
925 { |
935 { |
926 iKeepAliveTimer = aTimerValue; |
936 iKeepAliveTimer = aTimerValue; |
|
937 iKeepAliveTimerMicroSecs = aTimerValue * KMccSecsToMicroSecs; |
927 return KErrNone; |
938 return KErrNone; |
928 } |
939 } |
929 |
940 |
930 // ----------------------------------------------------------------------------- |
941 // ----------------------------------------------------------------------------- |
931 // CMccCodecInformation:SetKeepAlivePT |
942 // CMccCodecInformation:SetKeepAlivePT |
981 // |
992 // |
982 const TDesC8& CMccCodecInformation::KeepAliveData() const |
993 const TDesC8& CMccCodecInformation::KeepAliveData() const |
983 { |
994 { |
984 return iKeepAliveData; |
995 return iKeepAliveData; |
985 } |
996 } |
|
997 |
|
998 // ----------------------------------------------------------------------------- |
|
999 // CMccCodecInformation:SetKeepAliveTimerMicroSecs |
|
1000 // Default implementation |
|
1001 // ----------------------------------------------------------------------------- |
|
1002 // |
|
1003 TInt CMccCodecInformation::SetKeepAliveTimerMicroSecs( |
|
1004 TUint32 aTimerValueMicroSecs ) |
|
1005 { |
|
1006 if( (aTimerValueMicroSecs / KMccSecsToMicroSecs) > KMaxTUint8 ) |
|
1007 { |
|
1008 iKeepAliveTimer = KMaxTUint8; |
|
1009 iKeepAliveTimerMicroSecs = KMaxTUint8 * KMccSecsToMicroSecs; |
|
1010 } |
|
1011 else |
|
1012 { |
|
1013 iKeepAliveTimer = aTimerValueMicroSecs / KMccSecsToMicroSecs; |
|
1014 iKeepAliveTimerMicroSecs = aTimerValueMicroSecs; |
|
1015 } |
|
1016 return KErrNone; |
|
1017 } |
|
1018 |
|
1019 // ----------------------------------------------------------------------------- |
|
1020 // CMccCodecInformation:KeepAliveTimerMicroSecs |
|
1021 // Default implementation |
|
1022 // ----------------------------------------------------------------------------- |
|
1023 // |
|
1024 TUint32 CMccCodecInformation::KeepAliveTimerMicroSecs() const |
|
1025 { |
|
1026 return iKeepAliveTimerMicroSecs; |
|
1027 } |