Extract the table size off U-he metadata
This commit is contained in:
parent
34d6ed0291
commit
71ae5943c9
1 changed files with 9 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue