headkaze · 34334
Format: IMA-ADPCM (4 bit)Sample Rate: 11025 KhzChannels: 1 (Mono)
sox -V "Warhawk - Title (Dany Carpentier 97 Mix).wav" -r11025 -t ima title.wavsox -V "Warhawk - Ingame (Q Mix).wav" -r11025 -t ima ingame.wavsox -V "Warhawk - Game Over (Ferrara).wav" -r11025 -t ima gameover.wav
SCHANNEL_LENGTH(channel + 1) = (((bytes + 4) & 0x7FFFFFFF) >> 2);
ldr r0, =SCHANNEL_LENGTH(0)ldr r1, =IPC_SOUND_LEN(0)ldr r2, [r1]and r2, #(~7)add r2, #4and r2, #0x7FFFFFFFlsr r2, r2, #3str r2, [r0]
typedef struct GBFS_FILE{ char magic[16]; /* "PinEightGBFS\r\n\032\n" */ u32 total_len; /* total length of archive */ u16 dir_off; /* offset in bytes to directory */ u16 dir_nmemb; /* number of files */ char reserved[8]; /* for future use */} GBFS_FILE;typedef struct GBFS_ENTRY{ char name[24]; /* filename, nul-padded */ u32 len; /* length of object in bytes */ u32 data_offset; /* in bytes from beginning of file */} GBFS_ENTRY;