--- libgig/trunk/src/gig.h 2005/11/22 11:26:55 809 +++ libgig/trunk/src/gig.h 2005/12/23 01:38:50 823 @@ -591,10 +591,7 @@ void DeleteDimension(dimension_def_t* pDimDef); virtual void UpdateChunks(); protected: - typedef std::list DimensionList; - uint8_t VelocityTable[128]; ///< For velocity dimensions with custom defined zone ranges only: used for fast converting from velocity MIDI value to dimension bit number. - DimensionList DimensionDefinitions; Region(Instrument* pInstrument, RIFF::List* rgnList); void LoadDimensionRegions(RIFF::List* rgn); @@ -637,9 +634,7 @@ // own methods Region* GetRegion(unsigned int Key); protected: - Region** pRegions; ///< Pointer array to the regions Region* RegionKeyTable[128]; ///< fast lookup for the corresponding Region of a MIDI key - int RegionIndex; Instrument(File* pFile, RIFF::List* insList, progress_t* pProgress = NULL); ~Instrument(); @@ -676,19 +671,15 @@ void DeleteInstrument(Instrument* pInstrument); ~File(); protected: - typedef std::list SampleList; - typedef std::list InstrumentList; - - SampleList* pSamples; - SampleList::iterator SamplesIterator; - InstrumentList* pInstruments; - InstrumentList::iterator InstrumentsIterator; + std::list ExtensionFiles; - void LoadSamples(progress_t* pProgress = NULL); - void LoadInstruments(progress_t* pProgress = NULL); + // overridden protected methods from DLS::File + virtual void LoadSamples(); + virtual void LoadInstruments(); + // own protected methods + virtual void LoadSamples(progress_t* pProgress); + virtual void LoadInstruments(progress_t* pProgress); friend class Region; - - std::list ExtensionFiles; }; /** Will be thrown whenever a gig specific error occurs while trying to access a Gigasampler File. */