This commit is contained in:
dasl-
2023-07-13 21:49:29 -04:00
parent ebe1ca17f2
commit 1a55537790
+2 -2
View File
@@ -388,11 +388,11 @@ char *base64_enc(uint8_t *input, int length);
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.