• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is kAudioUnitSubType_DLSSynth compatible with the Mac OS X App sandbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Thu, 23 May 2013 17:38:05 +1000

Hi Chris,

Thanks for pointing that out. I didn't realise the DLS Synth was bundled in CoreAudio.component.

Based on this it seems like it would be best to dump DLS Synth and look for an audio unit that can be bundled directly into the app.

I wonder whether there is a free/open source component that could be used as a substitute for DLS Synth?

Ross


On 17/05/2013 10:55 PM, Christopher Liscio wrote:
Ross,

On May 17, 2013, at 2:04 AM, Ross Bencina <email@hidden> wrote:
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?

TN2247 doesn't talk about the DLS Synth specifically, but it does give you a hint on where the safety of the unit would be found: in the description dictionary.

Check out /System/Library/Components/CoreAudio.component/Contents/Info.plist, and you'll see that the 2nd item (Item 1) of the AudioComponents array does not contain the sandboxSafe key:

<dict>
	<key>description</key>
	<string>Apple's DLS or SoundFont based software synthesizer</string>
	<key>factoryFunction</key>
	<string>DLSMusicDeviceFactory</string>
	<key>manufacturer</key>
	<string>appl</string>
	<key>name</key>
	<string>Apple: DLSMusicDevice</string>
	<key>resourceUsage</key>
	<dict>
		<key>temporary-exception.files.all.read-write</key>
		<true/>
	</dict>
	<key>subtype</key>
	<string>dls </string>
	<key>type</key>
	<string>aumu</string>
	<key>version</key>
	<integer>67072</integer>
</dict>

Note that many other units do publish the sandboxSafe flag, so I would not imagine that the units are registering themselves using the AudioComponentRegister() API in addition to using the Info.plist above.

With that said, TN2247 also implies that the DLSSynth unit cannot be made sandbox safe unless the user is prompted to locate the required file (in this case, the DLS sound bank) and a security-scoped bookmark is created.

Frankly, I'm not sure DLSSynth can be made sandbox-safe without some major changes to the way it works. For instance, it could require a host-supplied DLS sound bank (located in the application's resources) in order to run.

Alternatively, Apple could introduce a similar concept to the document-scoped bookmark, where the security entitlement is tied to the DLSSynth and not just a single application that uses it. Of course, this bookmark needs to be created somehow (by user intervention, as I understand it.)

If I know it is possible I will debug my code. If I know it is not possible I will work around it.

I've been led to believe that the only course of action is to work around this until further notice.

Hope this helps,

Chris Liscio
http://supermegaultragroovy.com
Learn _your_ music with Capo: http://capoapp.com

_______________________________________________
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

References: 
 >Re: Is kAudioUnitSubType_DLSSynth compatible with the Mac OS X App sandbox (From: Roni Music <email@hidden>)
 >Re: Is kAudioUnitSubType_DLSSynth compatible with the Mac OS X App sandbox (From: Douglas Scott <email@hidden>)
 >Re: Is kAudioUnitSubType_DLSSynth compatible with the Mac OS X App sandbox (From: Ross Bencina <email@hidden>)
 >Re: Is kAudioUnitSubType_DLSSynth compatible with the Mac OS X App sandbox (From: Christopher Liscio <email@hidden>)

  • Prev by Date: Editing a looping MusicTrack as it plays
  • Next by Date: Re: Listener for when stream formats change (Leopard)
  • Previous by thread: Re: Is kAudioUnitSubType_DLSSynth compatible with the Mac OS X App sandbox
  • Next by thread: Re: Dynamic AU parameters (Taylor Holliday)
  • Index(es):
    • Date
    • Thread