aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/pulseaudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/backends/pulseaudio.cpp')
-rw-r--r--alc/backends/pulseaudio.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp
index 23ed1415..bebc182d 100644
--- a/alc/backends/pulseaudio.cpp
+++ b/alc/backends/pulseaudio.cpp
@@ -1491,15 +1491,17 @@ BackendFactory &PulseBackendFactory::getFactory()
return factory;
}
-alc::EventSupport PulseBackendFactory::queryEventSupport(alc::EventType eventType, BackendType type)
+alc::EventSupport PulseBackendFactory::queryEventSupport(alc::EventType eventType, BackendType)
{
- switch(eventType) {
- case alc::EventType::DeviceAdded: {
- return alc::EventSupport::FullSupport;
- }
- case alc::EventType::DeviceRemoved: {
- return alc::EventSupport::FullSupport;
- }
+ switch(eventType)
+ {
+ case alc::EventType::DeviceAdded:
+ case alc::EventType::DeviceRemoved:
+ return alc::EventSupport::FullSupport;
+
+ case alc::EventType::DefaultDeviceChanged:
+ case alc::EventType::Count:
+ break;
}
return alc::EventSupport::NoSupport;
}