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

Atari coding BBS
 
STe DMAsound crackling
Posted by: Pete Jul,07.2012-03:41 

Hi Guys, I've sampled a 10 sec song at 12517hz and play it back and it plays quite well through the sound DMA channel.

Then I thought, why not change the background color while the sample is playing( nothing special just change the background color on the fly.)

move.w #$ffff,d0 ;color 0 counter
loop1:
move.w d0,$ff8240 ;color reg 0
loop2:
move.w #100,d1
dbra d1,loop2
sub #$111,d0 ; all grey colours
brne loop1

jsr wait_key ; ESC to return to assembler
bra loop1

When I add this code the sampled sound plays back with crackling in the sound. It seems to me that the sound DMA channel is being interrupted by the CPU for a few nano's which causes the crackling sound, would that be correct?

I would think that DMA sound would have it's own memory buffers so this type of problem would not accur.

Any info on this guys ?

Pete












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

Topic Posted by  Date 
STe DMAsound crackling Pete Jul,07.2012-03:41
  Re: STe DMAsound crackling Pete Jul,07.2012-10:45
  Re: STe DMAsound crackling ggn Jul,08.2012-12:21
    Re: STe DMAsound crackling Pete Jul,08.2012-23:58
      Re: STe DMAsound crackling ggn Jul,09.2012-12:22


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