Please. someone help with unpack/pack script for .KAT soundbank from Dreamcast games

Codecs, formats, encoding/decoding of game audio, video and music
YAGAMI55
Posts: 55
Joined: Sun May 24, 2020 9:16 pm

Please. someone help with unpack/pack script for .KAT soundbank from Dreamcast games

Post by YAGAMI55 »

Hi guys, I need help with this container. This is from the MDK2 Dreamcast game, the same containers in MK Gold, THPS, RUSH 2049. Could anyone have written a QuickBMS script for unpacking / packing (extract raw/adpcm sound and reimoprt them to current offset). The beginning of the offsets of sounds, their frequency and ADPCM / RAW format are registered in the container. Yes, there’s a mix soundbank))) Please))) I’m too lazy to manually insert sounds at the addresses, there are under 100 of them in one container.
Popular game have this container))) But no one make script for this(

Here example of container
https://drive.google.com/file/d/1kSuHl0 ... sp=sharing

in this container 96 sounds
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Please. someone help with unpack/pack script for .KAT soundbank from Dreamcast games

Post by aluigi »

I don't know what codec it uses but this is the format:

Code: Select all

get FILES long
for i = 0 < FILES
    get CHANNELS long
    get OFFSET long
    get SIZE long
    get FREQUENCY long
    get ZERO long
    get BITS long
    getdstring ZERO 20

    log "" OFFSET SIZE
next i
YAGAMI55
Posts: 55
Joined: Sun May 24, 2020 9:16 pm

Re: Please. someone help with unpack/pack script for .KAT soundbank from Dreamcast games

Post by YAGAMI55 »

Oooooo!!! Thanks aluigi )))
That great. Adio format is mixed some Yamaha ADPCM, some basicly RAW 16 bit uncompress