- Timestamp:
- 08/17/10 13:54:17 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/applications/applestreamingclient/src/clientcontext.cpp
r74 r80 53 53 _lastWallClock = 0; 54 54 _lastStreamClock = 0; 55 _avData.EnsureSize(_maxAVBufferSize * 3); 55 56 INFO("Context created: %d (%p)", _id, this); 56 57 } … … 180 181 } 181 182 183 double ClientContext::GetMinTimestamp() { 184 return 0; 185 } 186 187 double ClientContext::GetMaxTimestamp() { 188 return 0; 189 } 190 191 uint32_t ClientContext::GetChunksCount() { 192 return 0; 193 } 194 195 double ClientContext::GetCurrentTimestamp() { 196 return 0; 197 } 198 199 uint32_t ClientContext::GetCurrentChunkIndex() { 200 return 0; 201 } 202 182 203 bool ClientContext::StartProcessing() { 183 204 //1. Parse the connecting string and split it into usable pieces … … 486 507 } 487 508 if (before != _optimalBw) { 488 INFO("BW changed: before: %d; after: %d; speed: %.3f", 489 before, _optimalBw, meanSpeed); 490 //, STR(Bandwidths().ToString())) 509 if (before < _optimalBw) { 510 if (GETAVAILABLEBYTESCOUNT(_avData) < _maxAVBufferSize / 3) { 511 _optimalBw = before; 512 } else { 513 INFO("BW changed: before: %d; after: %d; speed: %.3f", 514 before, _optimalBw, meanSpeed); 515 } 516 } else { 517 INFO("BW changed: before: %d; after: %d; speed: %.3f", 518 before, _optimalBw, meanSpeed); 519 } 491 520 } 492 521
Note: See TracChangeset
for help on using the changeset viewer.
