diff options
author | Chris Robinson <[email protected]> | 2022-02-23 02:26:25 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-23 02:26:25 -0800 |
commit | 357fb467fe7ffe5d4898ef4333dac9f679a79762 (patch) | |
tree | e62e8cf38fd52858b2552f2a700d569539e7de6a /alc/backends/coreaudio.cpp | |
parent | cadf0d1de5ca5a845b0e6fdb3aaaff7c8c741f9e (diff) |
Define the CoreAudio default name only when needed
Diffstat (limited to 'alc/backends/coreaudio.cpp')
-rw-r--r-- | alc/backends/coreaudio.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp index 1111b340..ed85e2a9 100644 --- a/alc/backends/coreaudio.cpp +++ b/alc/backends/coreaudio.cpp @@ -51,8 +51,6 @@ namespace { #define CAN_ENUMERATE 1 #endif -static const char ca_device[] = "CoreAudio Default"; - #if CAN_ENUMERATE struct DeviceEntry { @@ -246,6 +244,10 @@ void EnumerateDevices(std::vector<DeviceEntry> &list, bool isCapture) newdevs.shrink_to_fit(); newdevs.swap(list); } + +#else + +static constexpr char ca_device[] = "CoreAudio Default"; #endif |