/[svn]/libgig/trunk/src/SF.h
ViewVC logotype

Diff of /libgig/trunk/src/SF.h

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

revision 3480 by schoenebeck, Thu Jul 2 20:04:16 2015 UTC revision 3481 by schoenebeck, Fri Feb 22 12:12:50 2019 UTC
# Line 174  namespace sf2 { Line 174  namespace sf2 {
174          END_OPER          END_OPER
175      } SFGeneratorType;      } SFGeneratorType;
176    
177        class File;
178        class Instrument;
179    
180      class Modulator {      class Modulator {
181          public:          public:
182    
# Line 295  namespace sf2 { Line 298  namespace sf2 {
298    
299              String Name;              String Name;
300    
301              Sample(RIFF::Chunk* ck, RIFF::Chunk* pCkSmpl, RIFF::Chunk* pCkSm24);              Sample(File* file, RIFF::Chunk* ck, RIFF::Chunk* pCkSmpl, RIFF::Chunk* pCkSm24);
302    
303              String  GetName() { return Name; }              String  GetName() { return Name; }
304              int     GetChannelCount();              int     GetChannelCount();
# Line 303  namespace sf2 { Line 306  namespace sf2 {
306              int     GetFrameSize();              int     GetFrameSize();
307              bool    HasLoops();              bool    HasLoops();
308              bool    IsUnpitched() { return OriginalPitch == 255; }              bool    IsUnpitched() { return OriginalPitch == 255; }
309                File*   GetFile() { return pFile; }
310    
311              buffer_t  LoadSampleData();              buffer_t  LoadSampleData();
312              buffer_t  LoadSampleData(unsigned long SampleCount);              buffer_t  LoadSampleData(unsigned long SampleCount);
# Line 341  namespace sf2 { Line 345  namespace sf2 {
345                                    * sample header index of the associated right or left stereo                                    * sample header index of the associated right or left stereo
346                                    * sample respectively; zero otherwise. */                                    * sample respectively; zero otherwise. */
347              uint16_t SampleType;              uint16_t SampleType;
     };  
348    
349      class File;              File*    pFile;
350      class Instrument;      };
351    
352      /**      /**
353       * Instrument zone       * Instrument zone
# Line 533  namespace sf2 { Line 536  namespace sf2 {
536              Sample*      GetSample(int idx);              Sample*      GetSample(int idx);
537              void         DeleteSample(Sample* pSample);              void         DeleteSample(Sample* pSample);
538              bool         HasSamples();              bool         HasSamples();
539                RIFF::File*  GetRiffFile();
540    
541              friend class Region;              friend class Region;
542              friend class Instrument;              friend class Instrument;

Legend:
Removed from v.3480  
changed lines
  Added in v.3481

  ViewVC Help
Powered by ViewVC