FS#12966: display '+' for positive replaygain values
Change-Id: I976d5511096c2d4d19eb14fa1c6adf8dd3cd9006
This commit is contained in:
parent
77f8c9c9f1
commit
17a367e0c4
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, "%s%d.%02d dB", (int_gain<0) ? "-":"", 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