/[svn]/linuxsampler/trunk/src/engines/common/SampleFile.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/SampleFile.cpp

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

revision 2119 by persson, Fri Aug 27 16:27:16 2010 UTC revision 2167 by persson, Mon Feb 21 17:34:36 2011 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003 - 2009 Christian Schoenebeck                       *   *   Copyright (C) 2003 - 2009 Christian Schoenebeck                       *
6   *   Copyright (C) 2009 Grigor Iliev                                       *   *   Copyright (C) 2009 - 2011 Grigor Iliev                                *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 66  namespace LinuxSampler { Line 66  namespace LinuxSampler {
66          }          }
67          TotalFrameCount = sfInfo.frames;          TotalFrameCount = sfInfo.frames;
68    
69            Loops = 0;
70            LoopStart = 0;
71            LoopEnd = 0;
72            SF_INSTRUMENT instrument;
73            if (sf_command(pSndFile, SFC_GET_INSTRUMENT,
74                           &instrument, sizeof(instrument)) != SF_FALSE) {
75                // TODO: instrument.basenote
76    #if HAVE_SF_INSTRUMENT_LOOPS
77                if (instrument.loop_count && instrument.loops[0].mode != SF_LOOP_NONE) {
78                    Loops = 1;
79                    LoopStart = instrument.loops[0].start;
80                    LoopEnd = instrument.loops[0].end;
81                }
82    #endif
83            }
84          if(!DontClose) Close();          if(!DontClose) Close();
85      }      }
86    

Legend:
Removed from v.2119  
changed lines
  Added in v.2167

  ViewVC Help
Powered by ViewVC