Help: IFF 8SVX VHDR Format
Hi. According to the docs I've found on the IFF sample format, a VHDR block should consist of the following:
Code:
ULONG oneShotHiSamples, /* # samples in the high octave 1-shot part */ Code:
0000(0000) 46 4f 52 4d 00 00 16 f6 38 53 56 58 56 48 44 52 FORM....8SVXVHDR 00 00 00 14 - oneshot 00 00 16 B6 - repeat 00 00 00 00 - samples/hi cycle 00 00 - ??? samples per sec (WRONG) 00 - ??? number of octaves (WRONG) 20 - ??? compression (WRONG) 20 AB 01 00 - ???? garbage (WRONG) 00 01 00 00 - Volume The only way I could make the parsing work was to treat all values as being 32-bit aligned/packed: 00 00 00 14 - oneshot 00 00 16 B6 - repeat 00 00 00 00 - samples/hi cycle 00 00 00 20 - samples per sec (correct???) 20 AB 01 00 - 2 bytes packed into DWORD, 01=#octaves, 00=compression 00 01 00 00 - Volume Is what I've done correct or are there other versions/formats of IFF 8SVX sample headers?? I don't think what I've done is correct - I suspect there is something missing from the documentation I have (http://amigadev.elowar.com/read/ADCD.../node02CD.html) because I cannot honestly see the samples per second being only 0x20 (32 samples per second). Can somebody please assist? I have checked with another sample - one from the good old ST-xx disks and it had the same format header as I have shown above. |
Hello Sparky,
the first long value after the chunk name is the chunk length. 00 00 16 b6 - oneShotHitSample 00 00 00 00 - repeat 00 00 00 20 - Sample per cycle 20 ab - samples per sec 01 - octave 00 - compression 00 01 00 00 - Volume Bye Fabio |
Quote:
|
All times are GMT +2. The time now is 04:44. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.