|
Atari coding BBS
Re: MP2 Replay |
Posted by: ggn
|
Jan,15.2008-14:03
|
Ok, just took a quick look at evil's demo shell, and actually it's much simpler than I thought :)
(****DISCLAIMER: USE AT YOUR OWN RISK!!****)
Basically you need to load mp2inc.bin in memory (found in the demo engine archive), and then:
- load your mp2 in memory (for example in memory address addr%)
- lpoke replay%+mp2_address,addr%
- lpoke replay%+mp2_length,length_of_mp2%
- lpoke replay%+mp2_freq,32000
- lpoke replay%+mp2_ext,0
- lpoke replay%+mp2_repeat,0 !1=loop, 0=no loop
Then call replay%+mp2_start to start playing! To stop, call replay%+stop.
And here are the offsets:
mp2_address: equ 28 ;offsets
mp2_length: equ 32 ;
mp2_freq: equ 36 ;
mp2_ext: equ 40 ;
mp2_repeat: equ 44 ;
mp2_start: equ 48 ;
mp2_stop: equ 52 ;
Make sure that your mp2 is 32000hz and all will be fine (I guess, I haven't tested ANY of the above, I'm just looking what the source says ;)
Now, all you good boys say "Thank you Evil!"
P.S. read http://alive.atari.org/alive1/falcsys.php for some more bits.
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|