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

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

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

revision 3480 by schoenebeck, Wed Dec 14 18:55:08 2016 UTC revision 3481 by schoenebeck, Fri Feb 22 12:12:50 2019 UTC
# Line 147  namespace sf2 { Line 147  namespace sf2 {
147          ::LoadString(ck, s); // function from helper.h          ::LoadString(ck, s); // function from helper.h
148      }      }
149    
150      Sample::Sample(RIFF::Chunk* ck, RIFF::Chunk* pCkSmpl, RIFF::Chunk* pCkSm24) {      Sample::Sample(File* file, RIFF::Chunk* ck, RIFF::Chunk* pCkSmpl, RIFF::Chunk* pCkSm24) {
151            this->pFile = file;
152          this->pCkSmpl = pCkSmpl;          this->pCkSmpl = pCkSmpl;
153          this->pCkSm24 = pCkSm24;          this->pCkSm24 = pCkSm24;
154    
# Line 1122  namespace sf2 { Line 1123  namespace sf2 {
1123          }          }
1124          count = int(ck->GetSize() / 46);          count = int(ck->GetSize() / 46);
1125          for (int i = 0; i < count; i++) {          for (int i = 0; i < count; i++) {
1126              Samples.push_back(new Sample(ck, pCkSmpl, pCkSm24));              Samples.push_back(new Sample(this, ck, pCkSmpl, pCkSm24));
1127          }          }
1128    
1129          // Loading instrument regions          // Loading instrument regions
# Line 1251  namespace sf2 { Line 1252  namespace sf2 {
1252          return false;          return false;
1253      }      }
1254    
1255        RIFF::File* File::GetRiffFile() {
1256            return pRIFF;
1257        }
1258    
1259      /**      /**
1260       * Loads the whole sample wave into RAM. Use       * Loads the whole sample wave into RAM. Use
1261       * ReleaseSampleData() to free the memory if you don't need the cached       * ReleaseSampleData() to free the memory if you don't need the cached

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

  ViewVC Help
Powered by ViewVC