/[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 1713 by persson, Thu Mar 6 20:42:22 2008 UTC revision 2310 by persson, Sat Feb 11 11:08:01 2012 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   libgig - C++ cross-platform Gigasampler format file access library    *   *   libgig - C++ cross-platform Gigasampler format file access library    *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003-2007 by Christian Schoenebeck                      *   *   Copyright (C) 2003-2009 by Christian Schoenebeck                      *
6   *                              <cuse@users.sourceforge.net>               *   *                              <cuse@users.sourceforge.net>               *
7   *                                                                         *   *                                                                         *
8   *   This library is free software; you can redistribute it and/or modify  *   *   This library is free software; you can redistribute it and/or modify  *
# Line 600  namespace DLS { Line 600  namespace DLS {
600          // copy old loops array (skipping given loop)          // copy old loops array (skipping given loop)
601          for (int i = 0, o = 0; i < SampleLoops; i++) {          for (int i = 0, o = 0; i < SampleLoops; i++) {
602              if (&pSampleLoops[i] == pLoopDef) continue;              if (&pSampleLoops[i] == pLoopDef) continue;
603              if (o == SampleLoops - 1)              if (o == SampleLoops - 1) {
604                    delete[] pNewLoops;
605                  throw Exception("Could not delete Sample Loop, because it does not exist");                  throw Exception("Could not delete Sample Loop, because it does not exist");
606                }
607              pNewLoops[o] = pSampleLoops[i];              pNewLoops[o] = pSampleLoops[i];
608              o++;              o++;
609          }          }
# Line 1430  namespace DLS { Line 1432  namespace DLS {
1432          delete pInstrument;          delete pInstrument;
1433      }      }
1434    
1435        /** @brief File name of this DLS file.
1436         *
1437         * This method returns the file name as it was provided when loading
1438         * the respective DLS file. However in case the File object associates
1439         * an empty, that is new DLS file, which was not yet saved to disk,
1440         * this method will return an empty string.
1441         */
1442        String File::GetFileName() {
1443            return pRIFF->GetFileName();
1444        }
1445    
1446      /**      /**
1447       * Apply all the DLS file's current instruments, samples and settings to       * Apply all the DLS file's current instruments, samples and settings to
1448       * the respective RIFF chunks. You have to call Save() to make changes       * the respective RIFF chunks. You have to call Save() to make changes

Legend:
Removed from v.1713  
changed lines
  Added in v.2310

  ViewVC Help
Powered by ViewVC