HearthSim / python-fsb5

Library and tool to extract audio from FSB5 (FMOD Sample Bank) files
https://hearthsim.info
MIT License
133 stars 38 forks source link

Unknown CRC32 for some vorbis samples #4

Closed synap5e closed 7 years ago

synap5e commented 8 years ago

Some vorbis samples fail to decode as the crc32 is not known, so the encoding options cannot be derived.

This seems to have something to do with specifying quality when creating samples with Unity3D's fsbtool.

robert-nix commented 7 years ago

this crc = crc32b(header info) as in 38e3efabda9ee72e1f820c17f3b4ebdda4939cfa

robert-nix commented 7 years ago

The reason this doesn't work is these setup headers are generated using an older or modified version of libvorbis with potentially different codebook generation. This also means that this (the lookup tables in particular) will break if a version of libvorbis with different codebook generation is used.

Probably better would be to embed the setup headers themselves (as FMod does) instead of the encoding parameters, although that data is somewhat large.