Display the correct sign of replaygain for levels from -0.99 to -0.01 dB.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29814 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9af2ca7340
commit
8aa1577a0b
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ void replaygain_itoa(char* buffer, int length, long int_gain)
|
|||
/* int_gain uses Q19.12 format. */
|
||||
int one = abs(int_gain) >> FP_BITS;
|
||||
int cent = ((abs(int_gain) & 0x0fff) * 100 + (FP_ONE/2)) >> FP_BITS;
|
||||
snprintf(buffer, length, "%d.%02d dB", (int_gain<0) ? -one : one, cent);
|
||||
snprintf(buffer, length, "%s%d.%02d dB", (int_gain<0) ? "-":"", one, cent);
|
||||
}
|
||||
|
||||
static long fp_atof(const char* s, int precision)
|
||||
|
|
Loading…
Reference in a new issue