Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Müller <nexyon@gmail.com>2021-03-14 14:46:47 +0300
committerJörg Müller <nexyon@gmail.com>2021-03-17 01:21:45 +0300
commit12c08ceee3b034e360824969ea4e1aaed4be2daf (patch)
tree022c4bd87118b19af6e8477593466a3e7c25d2a4 /extern/audaspace/src
parentbc5798530663a9b3fec8df60feba510bd681c5ad (diff)
Audaspace: add support for CoreAudio on macOS
This adds CoreAudio as audio backend on macOS. CoreAudio is the standard audio API on macOS. Ref T86590
Diffstat (limited to 'extern/audaspace/src')
-rw-r--r--extern/audaspace/src/plugin/PluginManagerUnix.cpp.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/extern/audaspace/src/plugin/PluginManagerUnix.cpp.in b/extern/audaspace/src/plugin/PluginManagerUnix.cpp.in
index d08804bc2e7..3ab24986a0c 100644
--- a/extern/audaspace/src/plugin/PluginManagerUnix.cpp.in
+++ b/extern/audaspace/src/plugin/PluginManagerUnix.cpp.in
@@ -83,7 +83,12 @@ void PluginManager::loadPlugins(const std::string& path)
while(dirent* entry = readdir(dir))
{
const std::string filename = entry->d_name;
+
+#ifdef __APPLE__
+ const std::string end = ".dylib";
+#else
const std::string end = ".so";
+#endif
if(filename.length() >= end.length() && filename.substr(filename.length() - end.length()) == end)
{