mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 08:14:45 +02:00
Implement the option for auto audio devices switching for Windows too
(previously SDL-only)
This commit is contained in:
@@ -59,7 +59,7 @@ public:
|
||||
deviceChanged_ = false;
|
||||
}
|
||||
|
||||
bool HasDeviceChanged() {
|
||||
bool HasDefaultDeviceChanged() const {
|
||||
return deviceChanged_;
|
||||
}
|
||||
|
||||
@@ -529,7 +529,7 @@ void WASAPIAudioThread::Run() {
|
||||
}
|
||||
|
||||
// Check if we should use a new device.
|
||||
if (notificationClient_ && notificationClient_->HasDeviceChanged()) {
|
||||
if (notificationClient_ && notificationClient_->HasDefaultDeviceChanged() && g_Config.bAutoAudioDevice) {
|
||||
hresult = audioInterface_->Stop();
|
||||
ShutdownAudioDevice();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user