/[svn]/linuxsampler/trunk/src/diskthread.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/diskthread.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 12 by schoenebeck, Sun Nov 16 19:01:50 2003 UTC revision 13 by schoenebeck, Fri Nov 21 15:07:23 2003 UTC
# Line 146  int DiskThread::Main() { Line 146  int DiskThread::Main() {
146          // filled with data) then sleep for 50ms          // filled with data) then sleep for 50ms
147          if (IsIdle) usleep(30000);          if (IsIdle) usleep(30000);
148    
149          int act_streams=0;          int streamsInUsage = 0;
150          for (int i = Streams - 1; i >= 0; i--) {          for (int i = Streams - 1; i >= 0; i--) {
151              if (pStreams[i]->GetState() == Stream::state_active) act_streams++;              if (pStreams[i]->GetState() != Stream::state_unused) streamsInUsage++;
152          }          }
153          ActiveStreamCount=act_streams;          ActiveStreamCount = streamsInUsage;
154            if (streamsInUsage > ActiveStreamCountMax) ActiveStreamCountMax = streamsInUsage;
155      }      }
156    
157      return EXIT_FAILURE;      return EXIT_FAILURE;

Legend:
Removed from v.12  
changed lines
  Added in v.13

  ViewVC Help
Powered by ViewVC