--- linuxsampler/trunk/src/engines/gig/EngineChannel.cpp 2005/05/07 21:24:04 516 +++ linuxsampler/trunk/src/engines/gig/EngineChannel.cpp 2005/05/08 00:26:21 517 @@ -191,8 +191,8 @@ /** * Will be called by the InstrumentResourceManager when the instrument - * we are currently using in this engine is going to be updated, so we - * can stop playback before that happens. + * we are currently using on this EngineChannel is going to be updated, + * so we can stop playback before that happens. */ void EngineChannel::ResourceToBeUpdated(::gig::Instrument* pResource, void*& pUpdateArg) { dmsg(3,("gig::Engine: Received instrument update message.\n")); @@ -210,6 +210,17 @@ if (pEngine) pEngine->Enable(); } + /** + * Will be called by the InstrumentResourceManager on progress changes + * while loading or realoading an instrument for this EngineChannel. + * + * @param fProgress - current progress as value between 0.0 and 1.0 + */ + void EngineChannel::OnResourceProgress(float fProgress) { + this->InstrumentStat = int(fProgress * 100.0f); + dmsg(7,("gig::EngineChannel: progress %d%", InstrumentStat)); + } + void EngineChannel::Connect(AudioOutputDevice* pAudioOut) { if (pEngine) { if (pEngine->pAudioOutputDevice == pAudioOut) return;