/[svn]/libgig/trunk/src/DLS.cpp
ViewVC logotype

Diff of /libgig/trunk/src/DLS.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3962 by schoenebeck, Fri Jun 18 14:06:20 2021 UTC revision 3963 by schoenebeck, Sat Jun 19 12:02:19 2021 UTC
# Line 1395  namespace DLS { Line 1395  namespace DLS {
1395      }      }
1396    
1397      /**      /**
1398         * Returns the amount of regions of this instrument.
1399         *
1400         * @see GetRegionAt()
1401         */
1402        size_t Instrument::CountRegions() {
1403            if (!pRegions) LoadRegions();
1404            if (!pRegions) return 0;
1405            return pRegions->size();
1406        }
1407    
1408        /**
1409       * Returns Region at supplied @a pos position within the region list of       * Returns Region at supplied @a pos position within the region list of
1410       * this instrument. If supplied @a pos is out of bounds then @c NULL is       * this instrument. If supplied @a pos is out of bounds then @c NULL is
1411       * returned.       * returned.
# Line 1402  namespace DLS { Line 1413  namespace DLS {
1413       * @param pos - position of sought Region in region list       * @param pos - position of sought Region in region list
1414       * @returns pointer address to requested region or @c NULL if @a pos is       * @returns pointer address to requested region or @c NULL if @a pos is
1415       *          out of bounds       *          out of bounds
1416         * @see CountRegions()
1417       */       */
1418      Region* Instrument::GetRegionAt(size_t pos) {      Region* Instrument::GetRegionAt(size_t pos) {
1419          if (!pRegions) LoadRegions();          if (!pRegions) LoadRegions();

Legend:
Removed from v.3962  
changed lines
  Added in v.3963

  ViewVC Help
Powered by ViewVC