Improve audio poppings

This commit is contained in:
Lorenzooone
2024-06-24 04:21:10 +02:00
parent 4f6998ab33
commit 7d831d2911
8 changed files with 61 additions and 17 deletions

View File

@@ -1176,6 +1176,12 @@ void WindowScreen::poll(bool do_everything) {
case AUDIO_MENU_VOLUME_INC:
this->audio_data->change_audio_volume(true);
break;
case AUDIO_MENU_MAX_LATENCY_DEC:
this->audio_data->set_max_audio_latency(this->audio_data->get_max_audio_latency() - 1);
break;
case AUDIO_MENU_MAX_LATENCY_INC:
this->audio_data->set_max_audio_latency(this->audio_data->get_max_audio_latency() + 1);
break;
case AUDIO_MENU_MUTE:
this->audio_data->change_audio_mute();
break;