refactor: Remove unused function

This commit is contained in:
Lars Toenning
2024-12-23 13:20:43 +01:00
parent a866b7e75a
commit 7527ef2526
4 changed files with 0 additions and 17 deletions

View File

@@ -19,15 +19,4 @@ namespace swift::misc::audio
return QProcess::startDetached("SndVol.exe");
}
void initWindowsAudioDevices()
{
if (!CBuildConfig::isRunningOnWindowsNtPlatform()) { return; }
// force init of device lists
// see https://discordapp.com/channels/539048679160676382/539925070550794240/676418182038421534
// TODO Is this still required with Qt 6?
QMediaDevices::audioInputs();
QMediaDevices::audioOutputs();
}
} // namespace swift::misc::audio

View File

@@ -12,10 +12,6 @@ namespace swift::misc::audio
{
//! Start the Windows mixer
SWIFT_MISC_EXPORT bool startWindowsMixer();
//! On windows init the audio devices
//! \remarks workaround for WASAPI driver crashes, hoping that upfront init already sets global vars. etc.
SWIFT_MISC_EXPORT void initWindowsAudioDevices();
} // namespace swift::misc::audio
#endif // SWIFT_MISC_AUDIO_UTILS_H

View File

@@ -24,7 +24,6 @@ int main(int argc, char *argv[])
QApplication qa(argc, argv);
Q_UNUSED(qa) // init of qa is required, but qa not used
// initWindowsAudioDevices();
CCrashHandler::instance()->init();
CGuiApplication a(CApplicationInfo::swiftCore(), CApplicationInfo::PilotClientCore, CIcons::swiftCore24());
a.addWindowStateOption();

View File

@@ -25,7 +25,6 @@ int main(int argc, char *argv[])
QApplication qa(argc, argv);
Q_UNUSED(qa) // application init needed
// initWindowsAudioDevices();
CCrashHandler::instance()->init();
// at shutdown the whole application will be "deleted" outside the block