Flipnote Files/PPM: Difference between revisions
m →Palette |
No edit summary |
||
| Line 350: | Line 350: | ||
The outB and inB are pointers to pre-allocated memory blocks, the inB is a pointer to the file, and the outB is the output data block. The useByte is the 4 bytes that is at the start of the line, if your reading a type 3 line (full raw data) just pass in 0xFFFFFFFF. The pen and paper values are what was read from the pen and paper information block. | The outB and inB are pointers to pre-allocated memory blocks, the inB is a pointer to the file, and the outB is the output data block. The useByte is the 4 bytes that is at the start of the line, if your reading a type 3 line (full raw data) just pass in 0xFFFFFFFF. The pen and paper values are what was read from the pen and paper information block. | ||
==Sound data section== | |||
The position of the sound header is 0x6A0 + AnimationDataSize | |||
{| class="wikitable" | |||
|- style="background-color: #ddd;" | |||
! Length | |||
! Description | |||
|- | |||
| FrameCount | |||
| Sound effect usage. Each byte is a frame, and bit number one represents Sound 1, bit number two represents Sound 2 and bit number three represents Sound 3 | |||
|- | |||
| ??? | |||
| Padding - only used if FrameCount isn't dividable by 4 | |||
|- | |||
| 4 | |||
| Size of Background music(0 if not used) | |||
|- | |||
| 4 | |||
| Size of Sound effect 1(0 if not used) | |||
|- | |||
| 4 | |||
| Size of Sound effect 2(0 if not used) | |||
|- | |||
| 4 | |||
| Size of Sound effect 3(0 if not used) | |||
|- | |||
| 20 | |||
| Tags. Used for sound decoding? (speed, compression, etc...) | |||
|} | |||
I have yet to figure out the decoding...--[[User:Pbsds|pbsds]] 17:38, 6 June 2010 (UTC) | |||