This is O(n) logs per buffer. Is it necessary to update the compression on a per-sample basis or could we do it on a per-callback basis (with just linear ramping for each buffer)?