Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MAGIC: CWAV
- 0x0A: 01
- 0x0C: File Size
- 0x16: 00 70 (INFO)
- 0x1C: INFO Size
- 0x20: 01 70 (DATA)
- 0x24: DATA Size
- MAGIC: CSTM
- 0x0A: 00
- 0x0C: File Size
- 0x14: 00 40 (INFO)
- 0x1C: INFO Size
- 0x20: 01 40 (SEEK) -Note: If SEEK isn't wanted, DATA can be placed here.
- 0x28: SEEK Size
- 0x2C: 02 40 (DATA)
- 0x34: DATA Size
- ---------------------------------------------------------------------------------------------------------
- MAGIC: INFO
- PCM16/PCM8:
- BCWAV:
- 49 4E 46 4F II II 00 00 WW VV 00 00 XX XX 00 00
- YY YY 00 00 ZZ ZZ ZZ ZZ 00 00 00 00 NN NN 00 00
- 00 71 00 00 14 00 00 00 00 71 00 00 28 00 00 00
- 00 1F 00 00 18 00 00 00 00 00 00 00 FF FF FF FF
- 00 00 00 00 00 1F 00 00 PP PP PP PP 00 00 00 00
- FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00
- 0x04: INFO Size (I)
- 0x08: Type (W)
- 0x09: Enables Loop, if loop is present and this is not enabled, song will only loop once and play to end. (V)
- 0x0C: Sample Rate (X)
- 0x10: 01 if looped, but byte doesn't do anything. (Y)
- 0x14: Sample Count (Z)
- 0x1C: Channel Count (N)
- 0x48: Pointer to second channel (P)
- BCSTM:
- 49 4E 46 4F II II 00 00 00 41 00 00 18 00 00 00
- 01 01 00 00 50 00 00 00 01 01 00 00 5C 00 00 00
- WW VV NN NN XX XX 00 00 YY YY 00 00 ZZ ZZ ZZ ZZ
- ?? ?? 00 00 00 20 00 00 00 10 00 00 ?? ?? ?? ??
- ?? ?? ?? ?? ?? ?? ?? ?? 04 00 00 00 00 10 00 00
- 00 1F 00 00 18 00 00 00 01 00 00 00 01 41 00 00
- 20 00 00 00 02 00 00 00 02 41 00 00 28 00 00 00
- 02 41 00 00 30 00 00 00 7F 40 00 00 00 01 00 00
- 0C 00 00 00 02 00 00 00 00 01 00 00 00 00 00 00
- 0x04: INFO Size (I)
- 0x20: Type (W)
- 0x21: Enables Loop, if loop is present and this is not enabled, song will only loop once and play to end. (V)
- 0x22: Channel Count (N)
- 0x24: Sample Rate (X)
- 0x28: 01 if looped, but byte doesn't do anything. (Y)
- 0x2C: Sample Count (Z)
- ---------------------------------------------------------------------------------------------------------
- MAGIC: DATA
- 0x04: DATA Size (Same as above)
- 0x20: Channel 1 Starts
- 0x2020: DATA Sections for BCSTM and BCWAV are different starting here.
- DATA for BCSTM and BCWAV are not 1:1, Channels are stored differently.
- BCWAV BCSTM SIZE Channel
- 0x20 0x20 0x2000 01
- 0x2020 0x4020 0x2000 01
- 0x4020 0x8020 0x2000 01
- 0x6020 0xC020 0x2000 01
- 0x8020 0xE020 0x2000 01
- Channel 2 starts after Channel 1 in the BCWAV.
- For BCSTM, Channel 2 starts at 0x2020 for 0x2000 bytes, then at 0x6020 it continues, and so on.
- 1 0x2000 > 2 0x2000 >1 0x2000 > 2 0x2000 > etc...
- Note: Multiple Streams in a BCSTM translate to more channels, the 3ds will call to specific channels if needed.
- For example, if there are two streams, each with 2 channels. Channel count will be 4.
- It works the same as 2 channels, 1 0x2000 > 2 0x2000 > 3 0x2000 > 4 0x2000 > 1 0x2000 > 2 0x2000 > 3 0x2000 > 4 0x2000 > etc...
- If you want to replace said channels, they have to be in the same order.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement