--- linuxsampler/trunk/src/engines/gig/Engine.cpp 2009/04/28 17:05:36 1892 +++ linuxsampler/trunk/src/engines/gig/Engine.cpp 2009/05/02 18:57:49 1893 @@ -212,6 +212,8 @@ if (hStream != Stream::INVALID_HANDLE) { // voice actually used a stream iPendingStreamDeletions++; } + // free the voice to the voice pool and update key info + FreeVoice(pEngineChannel, itVoice); } } } @@ -443,6 +445,7 @@ if (hStream != Stream::INVALID_HANDLE) { // voice actually used a stream iPendingStreamDeletions++; } + //NOTE: maybe we should call FreeVoice() here, shouldn't cause a harm though I think, since the voices should be freed by RenderActiveVoices() in the render loop, they are probably just freed a bit later than they could/should be } } } @@ -2219,7 +2222,7 @@ } String Engine::Version() { - String s = "$Revision: 1.101 $"; + String s = "$Revision: 1.102 $"; return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword }