Ignore:
Timestamp:
08/17/10 13:54:17 (21 months ago)
Author:
shiretu
Message:

-- work on applestreamingclient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/applications/applestreamingclient/src/clientcontext.cpp

    r74 r80  
    5353        _lastWallClock = 0; 
    5454        _lastStreamClock = 0; 
     55        _avData.EnsureSize(_maxAVBufferSize * 3); 
    5556        INFO("Context created: %d (%p)", _id, this); 
    5657} 
     
    180181} 
    181182 
     183double ClientContext::GetMinTimestamp() { 
     184        return 0; 
     185} 
     186 
     187double ClientContext::GetMaxTimestamp() { 
     188        return 0; 
     189} 
     190 
     191uint32_t ClientContext::GetChunksCount() { 
     192        return 0; 
     193} 
     194 
     195double ClientContext::GetCurrentTimestamp() { 
     196        return 0; 
     197} 
     198 
     199uint32_t ClientContext::GetCurrentChunkIndex() { 
     200        return 0; 
     201} 
     202 
    182203bool ClientContext::StartProcessing() { 
    183204        //1. Parse the connecting string and split it into usable pieces 
     
    486507        } 
    487508        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                } 
    491520        } 
    492521 
Note: See TracChangeset for help on using the changeset viewer.