mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix some more errors and warnings from 0c7b787
.
Change-Id: Ib67d0ab344e36964cadbcc982dc2afe35733770b
This commit is contained in:
parent
0971f57634
commit
bbd991ad63
9 changed files with 10 additions and 62 deletions
|
@ -103,13 +103,6 @@ void sound_set(int setting, int value)
|
|||
sound_set_val(value);
|
||||
}
|
||||
|
||||
/* Return the sound value scaled to centibels (tenth-decibels) */
|
||||
static int sound_value_to_cb(int setting, int value)
|
||||
{
|
||||
long e = (1 - sound_numdecimals(setting)) << 16;
|
||||
return fp_mul(value, fp_exp10(e, 16), 16);
|
||||
}
|
||||
|
||||
#if !defined(AUDIOHW_HAVE_CLIPPING)
|
||||
/*
|
||||
* The prescaler compensates for any kind of boosts, to prevent clipping.
|
||||
|
@ -132,6 +125,13 @@ static int current_bass = 0; /* tenth dB */
|
|||
static int current_eq_band_gain[AUDIOHW_EQ_BAND_NUM]; /* tenth dB */
|
||||
#endif
|
||||
|
||||
/* Return the sound value scaled to centibels (tenth-decibels) */
|
||||
static int sound_value_to_cb(int setting, int value)
|
||||
{
|
||||
long e = (1 - sound_numdecimals(setting)) << 16;
|
||||
return fp_mul(value, fp_exp10(e, 16), 16);
|
||||
}
|
||||
|
||||
static void set_prescaled_volume(void)
|
||||
{
|
||||
int prescale = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue