aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/coreaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-31 16:12:49 -0700
committerChris Robinson <[email protected]>2023-05-31 16:13:57 -0700
commit456e1e828235a721bfab6930fe0c0157fd0d8277 (patch)
treec450f9478b23dc0625bd57b61e9a001641eead4b /alc/backends/coreaudio.cpp
parentb93c425126de67bef30f9ee9cc112d4278c04954 (diff)
Include IOAudioTypes.h only when needed
Diffstat (limited to 'alc/backends/coreaudio.cpp')
-rw-r--r--alc/backends/coreaudio.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp
index 521f085d..13665a4c 100644
--- a/alc/backends/coreaudio.cpp
+++ b/alc/backends/coreaudio.cpp
@@ -41,17 +41,16 @@
#include <AudioUnit/AudioUnit.h>
#include <AudioToolbox/AudioToolbox.h>
-#include <IOKit/audio/IOAudioTypes.h>
-
-
-namespace {
#if TARGET_OS_IOS || TARGET_OS_TV
#define CAN_ENUMERATE 0
#else
+#include <IOKit/audio/IOAudioTypes.h>
#define CAN_ENUMERATE 1
#endif
+namespace {
+
constexpr auto OutputElement = 0;
constexpr auto InputElement = 1;