![]() Where the start of the loop is (in samples). Offset of the PCM buffer from the end of the bank header. Most of the bank header is made up of sound metadata, which has the following structure: Packages are in the audio/SFX directory and have no file extension.Īn unmodified game has the following packages:Įach bank stored in a package file has two parts: the header and the PCM buffers. Package files contain banks, which contain sound data (including the raw PCM data). If BankSize is too big, the game will read too far on the last sound, which often causes a segmentation fault. ![]() ![]() The BankSize field must be updated if the size of the bank changes, especially if the size increases, because the game works out the length of each sound the same way as the calculateBufferSize function displayed below. Note that the game uses hardcoded indices to reference specific banks, so changes in order can lead to problems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |