|
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]
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.
|