Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

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]

Topic Posted by  Date 
MP2 Replay Cooper Jan,14.2008-20:05
  Re: MP2 Replay Cooper Jan,14.2008-20:06
    Re: MP2 Replay ggn Jan,15.2008-09:23
      Re: MP2 Replay ggn Jan,15.2008-14:03
        Re: MP2 Replay Cooper Jan,15.2008-20:21
  Re: MP2 Replay Swe Jan,26.2008-10:16
    Re: MP2 Replay (PeP gets OT) Peter Jan,27.2008-18:18
      Re: MP2 Replay (PeP gets OT) earx Jan,28.2008-10:30


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson