aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/main.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2023-11-04 14:20:58 +0100
committerArisotura <thetotalworm@gmail.com>2023-11-04 14:20:58 +0100
commit76976fef3038918ad01a9dbda4c0e5d9bebef9af (patch)
treebf9a8b62f760a1f4f945599032bcef4d8fd7bd57 /src/frontend/qt_sdl/main.cpp
parentac38faef1409553c016a2a8c9a8cf74f2e5e0249 (diff)
convert SPU to OOP
Diffstat (limited to 'src/frontend/qt_sdl/main.cpp')
-rw-r--r--src/frontend/qt_sdl/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index dcd52bd..700caea 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -342,7 +342,7 @@ void EmuThread::run()
GPU::InitRenderer(videoRenderer);
GPU::SetRenderSettings(videoRenderer, videoSettings);
- SPU::SetInterpolation(Config::AudioInterp);
+ NDS::SPU->SetInterpolation(Config::AudioInterp);
Input::Init();
@@ -2942,12 +2942,12 @@ void MainWindow::onPathSettingsFinished(int res)
void MainWindow::onUpdateAudioSettings()
{
- SPU::SetInterpolation(Config::AudioInterp);
+ NDS::SPU->SetInterpolation(Config::AudioInterp);
if (Config::AudioBitDepth == 0)
- SPU::SetDegrade10Bit(NDS::ConsoleType == 0);
+ NDS::SPU->SetDegrade10Bit(NDS::ConsoleType == 0);
else
- SPU::SetDegrade10Bit(Config::AudioBitDepth == 1);
+ NDS::SPU->SetDegrade10Bit(Config::AudioBitDepth == 1);
}
void MainWindow::onAudioSettingsFinished(int res)