mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
Need to apply db_to_gain to convert decibel to gain
This commit is contained in:
parent
420d0d0607
commit
5812471350
@ -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;
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user