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

Atari demoscene BBS
 
Re: Amanita
Posted by: evil Mar,12.2010-13:23 

The datas are shifted 3 bits in the first 10k of the files, this is to prevent them to play on PC or Macs.

Why? Because the files are of unstandard sample frequency. MPEG 1 supports 44100 or 48000Hz and the Falcon wants 49170Hz. So to prevent people to play the tunes and hear them wrongly on their PC or Mac, we decided to do corrupt the files a little bit. Of course the demo itself de-corrupt the files before playing :)

Here's the code snippet from the mp2 loader in the demo:

move.l mp2_adr,a0
move.w #1024*10-1,d7
.decrypt:
move.b (a0),d0
ror.b #3,d0
move.b d0,(a0)+
dbra d7,.decrypt

Nothing advanced, but does the trick.

About the DSP DMA transfer skew, I don't know why and what happens, but I know Noring worked on that a bit until he got it to work.

--
Anders Eriksson
ae@dhs.nu







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Amanita ggn Mar,02.2010-15:37
  Re: Amanita Grey Mar,02.2010-19:34
  Re: Amanita mikro Mar,02.2010-21:29
    Re: Amanita ChrisTOS Mar,02.2010-23:32
      Re: Amanita macFalcon Mar,03.2010-10:45
        Re: Amanita Cyprian Mar,03.2010-16:29
  Re: Amanita PeP Mar,03.2010-13:44
  Re: Amanita Leonard Mar,03.2010-15:17
    Re: Amanita evil Mar,03.2010-15:46
      Re: Amanita Leonard Mar,03.2010-23:13
        Re: Amanita CiH Mar,04.2010-02:15
        Re: Amanita evil Mar,04.2010-09:37
          Re: Amanita Sallafranque Mar,10.2010-23:14
            Re: Amanita evil Mar,12.2010-13:23
              Re: Amanita Sallafranque Mar,15.2010-14:21
                Re: Amanita evil Mar,16.2010-11:02
                Re: Amanita proteque Mar,30.2010-22:28
  Re: Amanita Simon Sunnyboy / Paradize Mar,07.2010-19:32


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