Cleanup up unnecessary audio init functions

This commit is contained in:
Henrik Rydgård
2023-03-21 12:08:03 +01:00
parent 5fae4f36db
commit f5472ba0d8
17 changed files with 31 additions and 110 deletions
-4
View File
@@ -917,10 +917,6 @@ namespace MainWindow {
case ID_EMULATION_SOUND:
g_Config.bEnableSound = !g_Config.bEnableSound;
if (g_Config.bEnableSound) {
if (PSP_IsInited() && !IsAudioInitialised())
Audio_Init();
}
break;
case ID_HELP_OPENWEBSITE:
-6
View File
@@ -175,9 +175,6 @@ void WindowsHost::SetWindowTitle(const char *message) {
PostMessage(mainWindow_, MainWindow::WM_USER_WINDOW_TITLE_CHANGED, 0, 0);
}
void WindowsHost::InitSound() {
}
// UGLY!
extern WindowsAudioBackend *winAudioBackend;
@@ -186,9 +183,6 @@ void WindowsHost::UpdateSound() {
winAudioBackend->Update();
}
void WindowsHost::ShutdownSound() {
}
void WindowsHost::PollControllers() {
static int checkCounter = 0;
static const int CHECK_FREQUENCY = 71;
-2
View File
@@ -39,9 +39,7 @@ public:
void PollControllers() override;
void ShutdownGraphics() override;
void InitSound() override;
void UpdateSound() override;
void ShutdownSound() override;
bool AttemptLoadSymbolMap() override;
void SaveSymbolMap() override;