diff options
author | Joerg Mueller <nexyon@gmail.com> | 2011-12-14 12:38:21 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2011-12-14 12:38:21 +0400 |
commit | b9614b0e523e3fd8c5584e07d6892383adcc9952 (patch) | |
tree | a623e575e221ea4df81d0432072d858c1987cfb6 /intern/audaspace | |
parent | 6b652928a756a62356d96dc3a122b72530d77bb0 (diff) |
Fix for Jens commit, otherwise OSX will crash without Jack as soon as audio access is tried.
Diffstat (limited to 'intern/audaspace')
-rw-r--r-- | intern/audaspace/intern/AUD_C-API.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/intern/audaspace/intern/AUD_C-API.cpp b/intern/audaspace/intern/AUD_C-API.cpp index c2a7677a400..9100a277124 100644 --- a/intern/audaspace/intern/AUD_C-API.cpp +++ b/intern/audaspace/intern/AUD_C-API.cpp @@ -139,13 +139,16 @@ int AUD_init(AUD_DeviceType device, AUD_DeviceSpecs specs, int buffersize) case AUD_JACK_DEVICE: #ifdef __APPLE__ struct stat st; - if(stat("/Library/Frameworks/Jackmp.framework",&st) != 0){ - printf("Warning: Jack Framework not installed\n"); - break; - } else { + if(stat("/Library/Frameworks/Jackmp.framework", &st) != 0) + { + printf("Warning: Jack Framework not installed\n"); + // No break, fall through to default, to return false + } + else + { #endif - dev = new AUD_JackDevice("Blender", specs, buffersize); - break; + dev = new AUD_JackDevice("Blender", specs, buffersize); + break; #ifdef __APPLE__ } #endif |