At 18:31 26-11-97 +0000, you wrote:
>>If you cannot trust the extension, look at the header.
>>
>>MB1.4 user files have no header. MB1.4 edit files always start with a
>>certain byte (I forgot which one). In this way you can tell user files
>>apart from edit files. Note that the replayer can only play user files.
>
>So, if a music is not MBMS and not MB14 in edit mode, I must assume that it
>is MB14 user mode? There is no way to be 100% sure that a music is MB14
>user?
No way that is 100% sure, I think.
If you want, you can do some check, like:
- check that the song title only contains valid characters
- check that the number of patterns is a possible value
There are probably more such checks you can do.
But doing so will make your replayer code larger, which is not a good
thing. Maybe you should make it the user's responsibility to only play
valid files.
Bye,
Maarten
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****