--- linuxsampler/trunk/src/engines/gig/DiskThread.cpp 2008/10/26 15:44:42 1788 +++ linuxsampler/trunk/src/engines/gig/DiskThread.cpp 2008/11/01 19:01:27 1789 @@ -67,7 +67,7 @@ pInstruments->HandBackDimReg(dimreg); } DeleteDimregQueue->init(); - ActiveStreamCount = 0; + SetActiveStreamCount(0); ActiveStreamCountMax = 0; if (running) this->StartThread(); // start thread only if it was running before } @@ -329,7 +329,7 @@ for (int i = Streams - 1; i >= 0; i--) { if (pStreams[i]->GetState() != Stream::state_unused) streamsInUsage++; } - ActiveStreamCount = streamsInUsage; + SetActiveStreamCount(streamsInUsage); if (streamsInUsage > ActiveStreamCountMax) ActiveStreamCountMax = streamsInUsage; }