CludgeSound sound#,address: an IFF 8SVX sample in memory as an audiolib sound object.
Checks "8SVX"/"VHDR" at address+8/+12, takes the sample rate (samplesPerSec, fixed: #832), finds the BODY chunk among the first seven chunks of the FORM (with the IFF pad bytes, fixed: #828), then frees the object's old sample and clears its pointer (memlib globfree; not DecodeSound's in-place "cL" data, fixed: #945; after the checks, fixed: #831), copies all of the BODY into chip memory (memlib globalloc; fixed: #829) and fills the object: sample, period 3579545 / rate, length in words, no loop, the "cL" mark cleared.
- Parameters
-
| sound | d0: the sound number (globfree gets d0 with the old length in its low word) |
| sram | d1: the 8SVX file |
| saddr | a0: the sound object (!libs audiolib,ia0|pd0) |
- Returns
- d0: BB_TRUE, BB_FALSE if it is no 8SVX/VHDR file, its rate is 0 (fixed: #830), it has no BODY among the first seven chunks of the FORM, the BODY is empty or 131072 bytes or longer (fixed: #829) - the sound unchanged (fixed: #831) - or the chip memory is missing (the sound then has no sample)