Closed pinobatch closed 5 years ago
Basic NSFe generation is in. But because the length of psfx
depends on NUM_SOUNDS
yet must be determined at assembly time, adding psfx
will have to wait for include file generation, which I plan to add along with #38.
Verifying the last part (psfx
) depends on an NSFPlay defect fixed in b100dfc. Will close once that fix lands in the next beta release and I can test.
NSFPlay 2.4b13 fixes psfx
parsing, reading the NSFe correctly.
The NSFe format allows including more structured metadata than NSF. It begins with four bytes
NSFE
in ASCII, followed by a sequence of chunks as length, fourcc, data tuples: "INFO" first and "NEND" last. Integers are little-endian as in NSF, and no CRC is used unlike PNG.NSFPlay and VLC media player can reportedly play NSFe files.
INFO
,DATA
, andNEND
PENTLY_USE_PAL_ADJUST
, enable Dendy mode in the player by writing aregn
chunk containing07 00
auth
chunk containing"$title\x00$author\x00$publisher\x00"
After #38, add credit metadata:
auth
chunk not to hardcode the stringstlbl
chunktaut
chunkPENTLY_USE_NSF_SOUND_FX
, write apsfx
chunk containing all bytes fromNUM_SONGS
throughNUM_SONGS + NUM_SOUNDS - 1
.