244 |
244 |
245 cInfo.iFourCC = KMccFourCCIdAMRWB; |
245 cInfo.iFourCC = KMccFourCCIdAMRWB; |
246 iJBufImpl->SetupL( 5, cInfo, *devSoundDummy, this, 0 ); |
246 iJBufImpl->SetupL( 5, cInfo, *devSoundDummy, this, 0 ); |
247 iJBufImpl->SetupL( 33, cInfo, *devSoundDummy, this, 0 ); |
247 iJBufImpl->SetupL( 33, cInfo, *devSoundDummy, this, 0 ); |
248 EUNIT_ASSERT( iJBufImpl->iSampleRate == 16 ); |
248 EUNIT_ASSERT( iJBufImpl->iSampleRate == 16 ); |
|
249 |
|
250 |
|
251 // Check that values are not changed: |
|
252 |
|
253 // Save original values: |
|
254 TMccCodecInfo originalCInfo( cInfo ); |
|
255 |
|
256 // Set dummy values: |
|
257 cInfo.iPayloadFormatEncoder = 111; |
|
258 cInfo.iPayloadFormatDecoder = 222; |
|
259 cInfo.iBitrate = 333; |
|
260 cInfo.iSamplingFreq = 444; |
|
261 cInfo.iEnableDTX = ETrue; |
|
262 cInfo.iCodecMode = 555; |
|
263 cInfo.iAlgoUsed = 666; |
|
264 cInfo.iPtime = 777; |
|
265 cInfo.iMaxPtime = 888; |
|
266 cInfo.iPayloadType = 999; |
|
267 cInfo.iRedundantPayload = 1111; |
|
268 cInfo.iRedundancyCount = 2222; |
|
269 cInfo.iFrameSize = 3333; |
|
270 cInfo.iCNFrameSize = 4444; |
|
271 cInfo.iFmtpLength = 5555; |
|
272 cInfo.iJitterSize = 6666; |
|
273 cInfo.iNeighbor = ETrue; |
|
274 cInfo.iModeChangePeriod = 7777; |
|
275 cInfo.iJitterBufPlayToneTimeout = 8888; |
|
276 cInfo.iJitterBufPlayToneFrequency = 9999; |
|
277 cInfo.iJitterBufPlayToneDuration = 1; |
|
278 cInfo.iComfortNoiseGenerationPt = 2; |
|
279 cInfo.iBitrateMask = 3; |
|
280 cInfo.iAverageBitrate = 4; |
|
281 cInfo.iMaxBitrate = 5; |
|
282 cInfo.iFramerate = 6; |
|
283 cInfo.iVideoWidth = 7; |
|
284 cInfo.iVideoHeight = 8; |
|
285 cInfo.iMTUSize = 9; |
|
286 cInfo.iSessionID = 1; |
|
287 cInfo.iLinkID = 2; |
|
288 cInfo.iStreamID = 3; |
|
289 cInfo.iKeepaliveInterval = 1234; |
|
290 cInfo.iKeepalivePT = 2; |
|
291 cInfo.iIsUpdate = ETrue; |
|
292 cInfo.iMaxRed = 1000; |
|
293 cInfo.iSourceDefinedTimeStamps = ETrue; |
|
294 |
|
295 // Put the same parameter values than in previous function call, |
|
296 iJBufImpl->SetupL( 33, cInfo, *devSoundDummy, this, 0 ); |
|
297 // and check that TMccCodecInfo values were not changed: |
|
298 TBool retval = originalCInfo.Compare( originalCInfo, iJBufImpl->iCInfo ); |
|
299 EUNIT_ASSERT( retval ); |
249 } |
300 } |
250 |
301 |
251 void UT_CMccJitterBufferImpl::UT_CMccJitterBufferImpl_ResetBufferL() |
302 void UT_CMccJitterBufferImpl::UT_CMccJitterBufferImpl_ResetBufferL() |
252 { |
303 { |
253 iJBufImpl->DelayUpL(); |
304 iJBufImpl->DelayUpL(); |