Login
Back to forumSee the full topicGo to last reply

Posted By

KiCHY
on 2009-05-13
04:19:32
 Re: TED Music Collection?

"We have to decide: a single format header ... OR two different..."
I prefer to stay at ONE header for all, but a flexible one, like ID3 for music. A very simple example:
"TED" -> to identify file header format
"TITL" + $14 + "Auf Wiedesehen Monty" -> means the song title is a 20 chars long text, alt.1
"PUBL" + $10 + "Gremlin Graphics" -> the publisher, 16 chars
"VERS" + $10 -> means a "version 1.0" data
"LADR" + $34 + $12 -> means a "load address" data, which is $1234
"INIT" + $00/$01/etc -> how to init the music
"IADR" + $45 + $23 -> emu should jump to $2345 to init music
"PADR" + $48 + $23 -> emu should jump to $2348 to play music
...and more various field types may came later.
So plz forget the fixed sized headers, it fits only for lazy programmers wink The ordering of these fields are indifferent, if TEDPlay program can't find "AUTR" then it knows there is no "author" field in header, it says "Author: Unknown" for the user.
Well, this way our header can be twice as long as the "hardcoded header format", but is more flexible and expandable. We need support for TED+SID? Lets put some SID-specific fields somewhere in header... happy If TEDPlay finds it, it will know its a TED+SID music.



Back to top


Copyright © Plus/4 World Team, 2001-2024