You don't even need to compute new samples. Merely repeat the last sample while lowering its volume until you reach zero.
You don't even need to compute new samples. Merely repeat the last sample while lowering its volume until you reach zero.