--- libgig/trunk/src/gig.h 2008/01/06 10:53:53 1627 +++ libgig/trunk/src/gig.h 2009/07/30 08:16:02 1953 @@ -2,7 +2,7 @@ * * * libgig - C++ cross-platform Gigasampler format file access library * * * - * Copyright (C) 2003-2007 by Christian Schoenebeck * + * Copyright (C) 2003-2009 by Christian Schoenebeck * * * * * * This library is free software; you can redistribute it and/or modify * @@ -697,8 +697,7 @@ virtual void UpdateChunks(); // own methods Region* GetRegion(unsigned int Key); - MidiRule* GetFirstMidiRule(); - MidiRule* GetNextMidiRule(); + MidiRule* GetMidiRule(int i); protected: Region* RegionKeyTable[128]; ///< fast lookup for the corresponding Region of a MIDI key @@ -708,8 +707,7 @@ friend class File; friend class Region; // so Region can call UpdateRegionKeyTable() private: - std::list MidiRules; - std::list::iterator MidiRulesIterator; + MidiRule** pMidiRules; }; /** @brief Group of Gigasampler objects