303 |
* is located, 0 otherwise |
* is located, 0 otherwise |
304 |
*/ |
*/ |
305 |
Sample::Sample(File* pFile, RIFF::List* waveList, unsigned long WavePoolOffset, unsigned long fileNo) : DLS::Sample((DLS::File*) pFile, waveList, WavePoolOffset) { |
Sample::Sample(File* pFile, RIFF::List* waveList, unsigned long WavePoolOffset, unsigned long fileNo) : DLS::Sample((DLS::File*) pFile, waveList, WavePoolOffset) { |
306 |
pInfo->UseFixedLengthStrings = true; |
static const DLS::Info::FixedStringLength fixedStringLengths[] = { |
307 |
|
{ CHUNK_ID_INAM, 64 }, |
308 |
|
{ 0, 0 } |
309 |
|
}; |
310 |
|
pInfo->FixedStringLengths = fixedStringLengths; |
311 |
Instances++; |
Instances++; |
312 |
FileNo = fileNo; |
FileNo = fileNo; |
313 |
|
|
2108 |
// * |
// * |
2109 |
|
|
2110 |
Region::Region(Instrument* pInstrument, RIFF::List* rgnList) : DLS::Region((DLS::Instrument*) pInstrument, rgnList) { |
Region::Region(Instrument* pInstrument, RIFF::List* rgnList) : DLS::Region((DLS::Instrument*) pInstrument, rgnList) { |
|
pInfo->UseFixedLengthStrings = true; |
|
|
|
|
2111 |
// Initialization |
// Initialization |
2112 |
Dimensions = 0; |
Dimensions = 0; |
2113 |
for (int i = 0; i < 256; i++) { |
for (int i = 0; i < 256; i++) { |
2594 |
// * |
// * |
2595 |
|
|
2596 |
Instrument::Instrument(File* pFile, RIFF::List* insList, progress_t* pProgress) : DLS::Instrument((DLS::File*)pFile, insList) { |
Instrument::Instrument(File* pFile, RIFF::List* insList, progress_t* pProgress) : DLS::Instrument((DLS::File*)pFile, insList) { |
2597 |
pInfo->UseFixedLengthStrings = true; |
static const DLS::Info::FixedStringLength fixedStringLengths[] = { |
2598 |
|
{ CHUNK_ID_INAM, 64 }, |
2599 |
|
{ CHUNK_ID_ISFT, 12 }, |
2600 |
|
{ 0, 0 } |
2601 |
|
}; |
2602 |
|
pInfo->FixedStringLengths = fixedStringLengths; |
2603 |
|
|
2604 |
// Initialization |
// Initialization |
2605 |
for (int i = 0; i < 128; i++) RegionKeyTable[i] = NULL; |
for (int i = 0; i < 128; i++) RegionKeyTable[i] = NULL; |
2868 |
// *************** File *************** |
// *************** File *************** |
2869 |
// * |
// * |
2870 |
|
|
2871 |
|
const DLS::Info::FixedStringLength File::FixedStringLengths[] = { |
2872 |
|
{ CHUNK_ID_IARL, 256 }, |
2873 |
|
{ CHUNK_ID_IART, 128 }, |
2874 |
|
{ CHUNK_ID_ICMS, 128 }, |
2875 |
|
{ CHUNK_ID_ICMT, 1024 }, |
2876 |
|
{ CHUNK_ID_ICOP, 128 }, |
2877 |
|
{ CHUNK_ID_ICRD, 128 }, |
2878 |
|
{ CHUNK_ID_IENG, 128 }, |
2879 |
|
{ CHUNK_ID_IGNR, 128 }, |
2880 |
|
{ CHUNK_ID_IKEY, 128 }, |
2881 |
|
{ CHUNK_ID_IMED, 128 }, |
2882 |
|
{ CHUNK_ID_INAM, 128 }, |
2883 |
|
{ CHUNK_ID_IPRD, 128 }, |
2884 |
|
{ CHUNK_ID_ISBJ, 128 }, |
2885 |
|
{ CHUNK_ID_ISFT, 128 }, |
2886 |
|
{ CHUNK_ID_ISRC, 128 }, |
2887 |
|
{ CHUNK_ID_ISRF, 128 }, |
2888 |
|
{ CHUNK_ID_ITCH, 128 }, |
2889 |
|
{ 0, 0 } |
2890 |
|
}; |
2891 |
|
|
2892 |
File::File() : DLS::File() { |
File::File() : DLS::File() { |
2893 |
pGroups = NULL; |
pGroups = NULL; |
2894 |
pInfo->UseFixedLengthStrings = true; |
pInfo->FixedStringLengths = FixedStringLengths; |
2895 |
} |
} |
2896 |
|
|
2897 |
File::File(RIFF::File* pRIFF) : DLS::File(pRIFF) { |
File::File(RIFF::File* pRIFF) : DLS::File(pRIFF) { |
2898 |
pGroups = NULL; |
pGroups = NULL; |
2899 |
pInfo->UseFixedLengthStrings = true; |
pInfo->FixedStringLengths = FixedStringLengths; |
2900 |
} |
} |
2901 |
|
|
2902 |
File::~File() { |
File::~File() { |