uint8_t *rsa_apply(uint8_t *input, int inlen, int *outlen, int mode);
// given a volume (0 to -30) and high and low attenuations in dB*100 (e.g. 0 to -6000 for 0 to -60
-// dB), return an attenuation depending on a linear interpolation along along the range
+// dB), return an attenuation depending on a linear interpolation along the range
double flat_vol2attn(double vol, long max_db, long min_db);
// given a volume (0 to -30) and high and low attenuations in dB*100 (e.g. 0 to -6000 for 0 to -60
-// dB), return an attenuation depending on a logarithmic interpolation along along the range.
+// dB), return an attenuation depending on a logarithmic interpolation along the range.
// The intention behind this attenuation function is that a given percentage change in volume
// should result in the same percentage change in perceived loudness. For instance, a doubling
// (100% increase) of volume level should result in a doubling of perceived loudness.