Added function to load from bytes array#31
Added function to load from bytes array#31nb-programmer wants to merge 1 commit intoelectronoora:masterfrom
Conversation
|
To forgo the need for the user to explicitly set the format and player properties before calling
which would return a boolean value depending on whether the contents of the buffer look like a S3M module - probably just by checking the file signature.
This would probably be a more robust way for detecting the file type also for |
|
The |
Added a function
loadBuffer(buffer)to load Module data from an existing Buffer (useful for game engines that preload resources)Still some things pending in this PR that I can't do without asking you:
parsefunction of the tracker classes require the use ofUint8Arraydata, otherwise the function fails. Potential solution: Maybe a force cast can be done to the argumentloadBuffercan be reused inloadI have also put these as TODO in the code that will need to be removed