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 * |
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 |
|
|