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