equal
deleted
inserted
replaced
26 using namespace SymbianSBC; |
26 using namespace SymbianSBC; |
27 |
27 |
28 |
28 |
29 // CONSTANTS |
29 // CONSTANTS |
30 _LIT(KBTAADLL, "btaudioadaptation.dll"); |
30 _LIT(KBTAADLL, "btaudioadaptation.dll"); |
31 |
31 |
32 //const TInt KUpgradeTimerDelay = 120000000; // 2 minutes. How often we sill try to upgrade back to a better quality audio. |
|
33 const TInt KRetryTimerDelay = 2000000; // 2 seconds. If something fails, how soon should we retry. |
32 const TInt KRetryTimerDelay = 2000000; // 2 seconds. If something fails, how soon should we retry. |
34 const TInt KStabilizationDelay = 2000000; // 2 seconds. Wait this long after bitpool change then start mononitor packet drops again |
33 const TInt KStabilizationDelay = 2000000; // 2 seconds. Wait this long after bitpool change then start mononitor packet drops again |
35 const TInt KDataCollectDelay = 600000; // Time (600ms) to collect packet drop data |
34 const TInt KDataCollectDelay = 600000; // Time (600ms) to collect packet drop data |
36 |
35 |
37 // All tables below have to formed such a way that highest max bitpool value has to be in position 0 and etc. |
36 // All tables below have to formed such a way that highest max bitpool value has to be in position 0 and etc. |
1268 iBitpoolData.Reset(); |
1267 iBitpoolData.Reset(); |
1269 for(TInt i = 0 ; i < KNumOfBitpoolValues ; i++) |
1268 for(TInt i = 0 ; i < KNumOfBitpoolValues ; i++) |
1270 { |
1269 { |
1271 data.iMaxBitpoolValue = KMaxBitpoolValues[i]; |
1270 data.iMaxBitpoolValue = KMaxBitpoolValues[i]; |
1272 data.iMaxDeviation = KDeviationValues[i]; |
1271 data.iMaxDeviation = KDeviationValues[i]; |
1273 //data.iUpgradeDelay = KUpgradeDelays[i]; |
|
1274 data.iUpBitpoolIndex = (i == 0) ? i : i - 1; |
1272 data.iUpBitpoolIndex = (i == 0) ? i : i - 1; |
1275 data.iIndex = i; |
1273 data.iIndex = i; |
1276 data.iDownBitpoolIndex = (i == KNumOfBitpoolValues - 1) ? i : i + 1; |
1274 data.iDownBitpoolIndex = (i == KNumOfBitpoolValues - 1) ? i : i + 1; |
1277 data.iMinimumMaxBitpool = (i == KNumOfBitpoolValues - 1) ? ETrue : EFalse; |
1275 data.iMinimumMaxBitpool = (i == KNumOfBitpoolValues - 1) ? ETrue : EFalse; |
1278 iBitpoolData.AppendL(data); |
1276 iBitpoolData.AppendL(data); |