Extract the table size off U-he metadata

This commit is contained in:
Jean Pierre Cimalando 2020-08-10 00:01:21 +02:00
parent 34d6ed0291
commit 71ae5943c9

View file

@ -377,9 +377,16 @@ bool FileMetadataReader::Impl::extractUheWavetable(WavetableInfo &wt)
if (!uhwt)
return false;
// u-he Hive: no idea what is inside this one, 2048 assumed
// zeros (chunk version?), 4 bytes LE
// number of tables, 4 bytes LE
// table size, 4 bytes LE
uint8_t data[12];
if (readRiffData(uhwt->index, data, sizeof(data)) != sizeof(data))
return false;
wt.tableSize = u32le(data + 8);
wt.tableSize = 2048;
wt.crossTableInterpolation = 0;
wt.oneShot = false;