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

Atari coding BBS
 
Re: STE DMA Channels
Posted by: Peter Jul,31.2006-08:01 

Howdy,

If you're really short on CPU time you could make some allocation/priority thingy as follows:

Each sample is assigned a value depending on how loud/long/important it is.

Each time a sample is triggered, write this value in some register or address

Decrease that value cyclically based on some timer.

When a new sample is triggered, compare its priority value to the value in the buffer. If higher, replace the current sample with the new one. If lower, skip the new sample.

If sample length varies a lot, you might want to use some additional tables..

Trial and error is the key. I used this approach once, and it sounds a lot better than one would expect.

-- Peter







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

Topic Posted by  Date 
STE DMA Channels Bod/STAX Jul,26.2006-18:25
  Re: STE DMA Channels earx Jul,26.2006-22:15
    Re: STE DMA Channels Bod/STAX Jul,27.2006-14:49
      Re: STE DMA Channels Peter Jul,31.2006-08:01
        Re: STE DMA Channels Bod/STAX Jul,31.2006-17:13
          Re: STE DMA Channels Adam Klobukowski Aug,01.2006-13:52
            Re: STE DMA Channels gwEm Aug,01.2006-20:45


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