[Coco] MUSICA 2 files
    Roger Taylor 
    operator at coco3.com
       
    Wed Dec 26 17:26:54 EST 2007
    
    
  
At 05:21 PM 12/25/2007, you wrote:
>Roger,
>did you get the DSK images I tried to send?
>Regards,
>Torsten
Sorry for the delay.  Yes, I got them, thanks.  I also found my own 
Musica file disks but I was using the wimgtool.exe utility to extract 
the .mus files which was doing a LF/CR translation as if they were in 
ASCII format.  Now I'm using port.exe.
Another issue, as I've mentioned before, is that some .mus files have 
an extra 256 bytes at the start for playing the music.  Some 
don't.  If you assume all do, and type LOADM, then EXEC, some will 
crash.  However, if you first load one that has the embedded player, 
then you can LOADM any other mus files later and then EXEC 16128 to 
play the current one, whether it came with an embedded player or not.
Ofcourse, my games use an IRQ/FIRQ handler for playing these in the 
background, so only the music data is needed.  I can embed MUSICA 
files using CCASM by doing something like:
         org     3584
         .. some code, data, etc. ..
         align   $100
tune1   includebin      bee.mus
         align   $100
tune2   includebin      venice.mus
         align   $100
tune3   includebin      imperial.mus
    
    
More information about the Coco
mailing list