diff options
author | Chris Robinson <[email protected]> | 2023-11-25 18:58:00 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-11-25 18:58:00 -0800 |
commit | 2a27a2ca5ea0f6b6b8fff065212959ea60021647 (patch) | |
tree | 0eaa72a89e008f8cc52ca34e9c0a81ae3c601d9c /alc/backends/coreaudio.cpp | |
parent | 889f2daf1f0453fbbebc7ebba74c58584a335043 (diff) |
Fix some unused parameter and unhandled enum warnings
Diffstat (limited to 'alc/backends/coreaudio.cpp')
-rw-r--r-- | alc/backends/coreaudio.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp index eb4e5880..16b0781e 100644 --- a/alc/backends/coreaudio.cpp +++ b/alc/backends/coreaudio.cpp @@ -1013,12 +1013,17 @@ BackendPtr CoreAudioBackendFactory::createBackend(DeviceBase *device, BackendTyp return nullptr; } -alc::EventSupport CoreAudioBackendFactory::queryEventSupport(alc::EventType eventType, BackendType type) +alc::EventSupport CoreAudioBackendFactory::queryEventSupport(alc::EventType eventType, BackendType) { - switch(eventType) { - case alc::EventType::DefaultDeviceChanged: { - return alc::EventSupport::FullSupport; - } + switch(eventType) + { + case alc::EventType::DefaultDeviceChanged: + return alc::EventSupport::FullSupport; + + case alc::EventType::DeviceAdded: + case alc::EventType::DeviceRemoved: + case alc::EventType::Count: + break; } return alc::EventSupport::NoSupport; } |