488 |
SampleLoops = wsmp->ReadUint32(); |
SampleLoops = wsmp->ReadUint32(); |
489 |
} else { // 'wsmp' chunk missing |
} else { // 'wsmp' chunk missing |
490 |
uiHeaderSize = 0; |
uiHeaderSize = 0; |
491 |
UnityNote = 64; |
UnityNote = 60; |
492 |
FineTune = 0; // +- 0 cents |
FineTune = 0; // +- 0 cents |
493 |
Gain = 0; // 0 dB |
Gain = 0; // 0 dB |
494 |
SamplerOptions = F_WSMP_NO_COMPRESSION; |
SamplerOptions = F_WSMP_NO_COMPRESSION; |
963 |
} |
} |
964 |
} |
} |
965 |
} |
} |
|
if (index < 0) throw Exception("Could not save Region, could not find Region's sample"); |
|
966 |
WavePoolTableIndex = index; |
WavePoolTableIndex = index; |
967 |
// update 'wlnk' chunk |
// update 'wlnk' chunk |
968 |
store16(&pData[0], WaveLinkOptionFlags); |
store16(&pData[0], WaveLinkOptionFlags); |