equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
232 if (iJitterBufferImpl && iJitterBufferImpl->BufferLength()) |
232 if (iJitterBufferImpl && iJitterBufferImpl->BufferLength()) |
233 { |
233 { |
234 TRACE_PRN_N(_L("CVoIPJitterBuffer::FillBufferL NORMAL")); |
234 TRACE_PRN_N(_L("CVoIPJitterBuffer::FillBufferL NORMAL")); |
235 |
235 |
236 TUint32 emptyBufferDelay = 0; |
236 TUint32 emptyBufferDelay = 0; |
237 |
237 |
238 if (iCodec != KMccFourCCIdG729) |
238 if (iCodec != KMccFourCCIdG729) |
239 { |
239 { |
240 // This can cause JB overflow on G729 (it does in the loopback) |
240 // This can cause JB overflow on G729 (it does in the loopback) |
241 DetermineEmptyBufferDelay(); |
241 DetermineEmptyBufferDelay(); |
242 } |
242 } |
383 iTransitionState = aTransitionState; |
383 iTransitionState = aTransitionState; |
384 Cancel(); |
384 Cancel(); |
385 |
385 |
386 if (aStateChangeDelay) |
386 if (aStateChangeDelay) |
387 { |
387 { |
|
388 iStatus = KRequestPending; |
388 iTimer.After(iStatus, TTimeIntervalMicroSeconds32(aStateChangeDelay)); |
389 iTimer.After(iStatus, TTimeIntervalMicroSeconds32(aStateChangeDelay)); |
389 } |
390 } |
390 else |
391 else |
391 { |
392 { |
392 User::RequestComplete(stat, KErrNone); |
393 User::RequestComplete(stat, KErrNone); |