--- linuxsampler/trunk/src/engines/gig/Engine.cpp 2005/02/09 01:22:18 361 +++ linuxsampler/trunk/src/engines/gig/Engine.cpp 2005/02/12 23:48:50 376 @@ -272,6 +272,7 @@ for (::gig::Region* pRegion = pInstrument->GetFirstRegion(); pRegion; pRegion = pInstrument->GetNextRegion()) if (pRegion->KeyGroup) ActiveKeyGroups[pRegion->KeyGroup] = NULL; + InstrumentIdxName = pInstrument->pInfo->Name; InstrumentStat = 100; // inform audio driver for the need of two channels @@ -1181,6 +1182,10 @@ return InstrumentFile; } + String Engine::InstrumentName() { + return InstrumentIdxName; + } + int Engine::InstrumentIndex() { return InstrumentIdx; } @@ -1194,7 +1199,7 @@ } String Engine::Version() { - String s = "$Revision: 1.23 $"; + String s = "$Revision: 1.24 $"; return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword }