Re: Is kAudioUnitSubType_DLSSynth compatible with the Mac OS X App sandbox
Re: Is kAudioUnitSubType_DLSSynth compatible with the Mac OS X App sandbox
- Subject: Re: Is kAudioUnitSubType_DLSSynth compatible with the Mac OS X App sandbox
- From: Ross Bencina <email@hidden>
- Date: Fri, 17 May 2013 16:04:43 +1000
On 15/05/2013 2:55 AM, Douglas Scott wrote:
Please make sure to study
https://developer.apple.com/library/mac/#technotes/tn2247 carefully.
Hello Doug,
I apologise for being thick, however I have not found the answer to my
question in TN2247 (see below). Could you please provide a definitive
Yes or No to the following question:
Q: Is Apple's DLS Synth Audio Unit (kAudioUnitSubType_DLSSynth)
"Sandbox-Safe". Can it be used without the user being shown a security
warning dialog?
If I know it is possible I will debug my code. If I know it is not
possible I will work around it.
...
More info:
TN2247 does not clarify the sandbox-safe status of DLSSynth. I have
tried to deduce the sandbox-safe status of DLSSynth based on information
in the TN but so far I have not succeeded. Here's the results of my
study of TN2247:
TN2247 mentions that sandbox safe components have the "sandboxSafe"
Info.plist key set and non-sandbox safe componets may list
"resourceUsage" keys.
I thought this would allow me to answer my original question about
DLSSynth by checking its plist to establish its sandbox-safe status.
However I have been unable to locate a *.component or *.audiocomp file
on my system corresponding to DLSSynth. Where is it located?
TN2247 also mentions kAudioComponentFlag_SandboxSafe. It is unclear
whether this flag is needed when *loading* an Audio Unit or only when
enumerating Audio Units. My application does not perform any
enumeration. I have now tried using the flag with AUGraphAddNode when
creating the DLS Synth. The warning is still displayed (on 10.7, haven't
tried 10.8).
Also I notice that kAudioComponentFlag_SandboxSafe is only declared in
the 10.8 SDK. The 10.7 SDK header does not even mention sandboxing.
(see MacOSX10.7/Frameworks/AudioUnit.framework/AudioComponent.h
vs MacOSX10.8/Frameworks/AudioUnit.framework/AudioComponent.h).
Many thanks,
Ross
-DS
On May 13, 2013, at 10:45 PM, Roni Music <email@hidden
<mailto:email@hidden>> wrote:
Hello all,
Q: Is Apple's DLS Synth Audio Unit (kAudioUnitSubType_DLSSynth)
compatible with the Mac OS X sandbox? (on OS X 10.7, 10.8 and later).
The only way I have been able to get it to work is by adding the
following entitlement:
com.apple.security.temporary-exception.audio-unit-host
This entitlement causes an unpleasant security message to be displayed
to the user [0].
Q: Is there a way to use DLS Synth without the unpleasant security
message?
I haven't found another way
Q: Does anyone know whether the App Store will publish apps with
com.apple.security.temporary-exception.audio-unit-host set?
My Sweet MIDI Player app is published at the app store with
"com.apple.security.temporary-exception.audio-unit-host"
set so that should not be a problem.
But it would be interresting to know why this flag must be used.
Rolf Nilsson/Roni Music
I have not found direct confirmation to these questions anywhere,
although there is a similar unanswered question on Stack Overflow [1].
Similar questions have been asked (and not answered) regarding
kAudioUnitSubType_AudioFilePlayer [2,3,4].
It would be most excellent to get a definitive answer from Apple. But
failing that I'd be happy to hear from anyone who has had the same issue.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden
<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden