Showing the changes to interface/src/Menu.cpp (1 of 28 files). Show all
Unified · Split
| @@ -490,7 +490,7 @@ Menu::Menu() : · 489 unmodified lines | ||
| 490 | 490 | addCheckableActionToQMenuAndActionHash(timingMenu, MenuOption::PipelineWarnings); |
| 491 | 491 | addCheckableActionToQMenuAndActionHash(timingMenu, MenuOption::SuppressShortTimings); |
| 492 | 492 | |
| 493 | − auto audioIO = DependencyManager::get<Audio>(); | |
| 493 | + auto audioIO = DependencyManager::get<AudioClient>(); | |
| 494 | 494 | QMenu* audioDebugMenu = developerMenu->addMenu("Audio"); |
| 495 | 495 | addCheckableActionToQMenuAndActionHash(audioDebugMenu, MenuOption::AudioNoiseReduction, |
| 496 | 496 | 0, |
| @@ -615,7 +615,7 @@ void Menu::loadSettings(QSettings* settings) { · 118 unmodified lines | ||
| 615 | 615 | _receivedAudioStreamSettings._windowSecondsForDesiredReduction = settings->value("windowSecondsForDesiredReduction", DEFAULT_WINDOW_SECONDS_FOR_DESIRED_REDUCTION).toInt(); |
| 616 | 616 | _receivedAudioStreamSettings._repetitionWithFade = settings->value("repetitionWithFade", DEFAULT_REPETITION_WITH_FADE).toBool(); |
| 617 | 617 | |
| 618 | − auto audio = DependencyManager::get<Audio>(); | |
| 618 | + auto audio = DependencyManager::get<AudioClient>(); | |
| 619 | 619 | audio->setOutputStarveDetectionEnabled(settings->value("audioOutputStarveDetectionEnabled", DEFAULT_AUDIO_OUTPUT_STARVE_DETECTION_ENABLED).toBool()); |
| 620 | 620 | audio->setOutputStarveDetectionThreshold(settings->value("audioOutputStarveDetectionThreshold", DEFAULT_AUDIO_OUTPUT_STARVE_DETECTION_THRESHOLD).toInt()); |
| 621 | 621 | audio->setOutputStarveDetectionPeriod(settings->value("audioOutputStarveDetectionPeriod", DEFAULT_AUDIO_OUTPUT_STARVE_DETECTION_PERIOD).toInt()); |
| @@ -680,7 +680,7 @@ void Menu::saveSettings(QSettings* settings) { · 58 unmodified lines | ||
| 680 | 680 | settings->setValue("windowSecondsForDesiredReduction", _receivedAudioStreamSettings._windowSecondsForDesiredReduction); |
| 681 | 681 | settings->setValue("repetitionWithFade", _receivedAudioStreamSettings._repetitionWithFade); |
| 682 | 682 | |
| 683 | − auto audio = DependencyManager::get<Audio>(); | |
| 683 | + auto audio = DependencyManager::get<AudioClient>(); | |
| 684 | 684 | settings->setValue("audioOutputStarveDetectionEnabled", audio->getOutputStarveDetectionEnabled()); |
| 685 | 685 | settings->setValue("audioOutputStarveDetectionThreshold", audio->getOutputStarveDetectionThreshold()); |
| 686 | 686 | settings->setValue("audioOutputStarveDetectionPeriod", audio->getOutputStarveDetectionPeriod()); |
| @@ -1297,7 +1297,7 @@ void Menu::toggleToolWindow() { · 610 unmodified lines | ||
| 1297 | 1297 | void Menu::audioMuteToggled() { |
| 1298 | 1298 | QAction *muteAction = _actionHash.value(MenuOption::MuteAudio); |
| 1299 | 1299 | if (muteAction) { |
| 1300 | − muteAction->setChecked(DependencyManager::get<Audio>()->isMuted()); | |
| 1300 | + muteAction->setChecked(DependencyManager::get<AudioClient>()->isMuted()); | |
| 1301 | 1301 | } |
| 1302 | 1302 | } |
| 1303 | 1303 | |