I'm sampling an audio signal using the ADC and store the data in a buffer to create a delay effect.
I would like to feedback the old data pulled from RAM together with the new sample. If the gain is lower than 1 it should be fading out slowly and create an echo type of effect. The samples are 8bit wide and stored as unsigned numbers.
What would be a simple approach that would let me mix them together and possibly control the ratio to some degree?