--- linuxsampler/trunk/src/engines/gig/Engine.cpp 2004/06/05 20:55:50 111 +++ linuxsampler/trunk/src/engines/gig/Engine.cpp 2004/06/06 20:57:28 112 @@ -61,6 +61,8 @@ pSynthesisParameters[0] = NULL; // we allocate when an audio device is connected pBasicFilterParameters = NULL; pMainFilterParameters = NULL; + + InstrumentIdx = -1; ResetInternal(); } @@ -195,6 +197,8 @@ Instruments.HandBack(pInstrument, this); } + InstrumentIdx = -1; + // request gig instrument from instrument manager try { instrument_id_t instrid; @@ -218,6 +222,9 @@ throw LinuxSamplerException("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file."); } + InstrumentFile = FileName; + InstrumentIdx = Instrument; + // inform audio driver for the need of two channels try { if (pAudioOutputDevice) pAudioOutputDevice->AcquireChannels(2); // gig Engine only stereo @@ -690,6 +697,18 @@ return pDiskThread->GetBufferFillPercentage(); } + String Engine::EngineName() { + return "GigEngine"; + } + + String Engine::InstrumentFileName() { + return InstrumentFile; + } + + int Engine::InstrumentIndex() { + return InstrumentIdx; + } + String Engine::Description() { return "Gigasampler Engine"; }