--- linuxsampler/trunk/src/engines/gig/EngineChannel.cpp 2007/05/29 23:59:36 1212 +++ linuxsampler/trunk/src/engines/gig/EngineChannel.cpp 2007/08/29 10:36:32 1309 @@ -196,16 +196,19 @@ } catch (RIFF::Exception e) { InstrumentStat = -2; + StatusChanged(true); String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message; throw Exception(msg); } catch (InstrumentManagerException e) { InstrumentStat = -3; + StatusChanged(true); String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message(); throw Exception(msg); } catch (...) { InstrumentStat = -4; + StatusChanged(true); throw Exception("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file."); } @@ -218,6 +221,8 @@ if (pEngine) pEngine->ChangeInstrument(this, newInstrument); else pInstrument = newInstrument; + + StatusChanged(true); } /** @@ -335,6 +340,8 @@ default: throw AudioOutputException("Invalid engine audio channel " + ToString(EngineAudioChannel)); } + + bStatusChanged = true; } int EngineChannel::OutputChannel(uint EngineAudioChannel) {