forked from bartvdbraak/blender
Fix for Jens commit, otherwise OSX will crash without Jack as soon as audio access is tried.
This commit is contained in:
parent
6b652928a7
commit
b9614b0e52
@ -139,13 +139,16 @@ int AUD_init(AUD_DeviceType device, AUD_DeviceSpecs specs, int buffersize)
|
|||||||
case AUD_JACK_DEVICE:
|
case AUD_JACK_DEVICE:
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if(stat("/Library/Frameworks/Jackmp.framework",&st) != 0){
|
if(stat("/Library/Frameworks/Jackmp.framework", &st) != 0)
|
||||||
printf("Warning: Jack Framework not installed\n");
|
{
|
||||||
break;
|
printf("Warning: Jack Framework not installed\n");
|
||||||
} else {
|
// No break, fall through to default, to return false
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
#endif
|
#endif
|
||||||
dev = new AUD_JackDevice("Blender", specs, buffersize);
|
dev = new AUD_JackDevice("Blender", specs, buffersize);
|
||||||
break;
|
break;
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user