mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
refactor: Remove unused function
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user