Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

SFXPak.txt

By: thelink2012 on Jan 27th, 2014  |  syntax: None  |  size: 0.64 KB  |  views: 83  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ==== SFX Package File ====
  2.  
  3. (Files without extension at audio/SFX)
  4.  
  5. The file structure is basically many bank headers (at any offset) followed by the sound buffers.
  6. The offset where each bank is located is specified by the file BankLkup.dat.
  7.  
  8. Bank header structure:
  9.     uint16_t        Number of sounds in this bank
  10.     uint16_t        __padding
  11.     repeat (400) times:
  12.         uint32_t    Sound buffer offset relative to the end of the header (The buffer must be raw mono PCM-16)
  13.         uint32_t    Loop offset (divided by two)
  14.         uint16_t    Sample rate
  15.         uint16_t    Sound headroom
  16.        
  17.     ... SOUND BUFFERS HERE ...