Need to apply db_to_gain to convert decibel to gain

This commit is contained in:
twinaphex 2017-06-08 22:32:03 +02:00
parent 420d0d0607
commit 5812471350
2 changed files with 2 additions and 2 deletions

View File

@ -1240,7 +1240,7 @@ void audio_set_float(enum audio_action action, float val)
switch (action)
{
case AUDIO_ACTION_VOLUME_GAIN:
audio_driver_volume_gain = val;
audio_driver_volume_gain = db_to_gain(val);
break;
case AUDIO_ACTION_RATE_CONTROL_DELTA:
audio_driver_rate_control_delta = val;

View File

@ -1686,7 +1686,7 @@ void general_write_handler(void *data)
}
break;
case MENU_ENUM_LABEL_AUDIO_VOLUME:
audio_set_float(AUDIO_ACTION_VOLUME_GAIN, db_to_gain(*setting->value.target.fraction));
audio_set_float(AUDIO_ACTION_VOLUME_GAIN, *setting->value.target.fraction);
break;
case MENU_ENUM_LABEL_AUDIO_LATENCY:
case MENU_ENUM_LABEL_AUDIO_DEVICE: