Re: AudioUnitGetProperty with Swift 3
Re: AudioUnitGetProperty with Swift 3
- Subject: Re: AudioUnitGetProperty with Swift 3
- From: Doug Wyatt <email@hidden>
- Date: Mon, 31 Oct 2016 11:47:35 -0700
You should be able to use AudioUnitGetPropertyInfo instead of AudioUnitGetProperty with a null pointer when wanting to fetch a property's size.
We added __nullable to AudioUnitConnection.sourceAudioUnit recently.
One of the design goals of the AUAudioUnit API was to provide a replacement API that is less difficult to use from Swift than the C AudioUnit API's. Is there a reason you're preferring the C API's?
Doug
> On Oct 26, 2016, at 2:10 , Benjamin Federer <email@hidden> wrote:
>
> I filed a radar with the Apple Bug Reporter.
>
> rdar://28956261
>
> Anyone else having similar issues should file a radar, too, to bring this to Appleās attention.
>
>
>> Am 21.10.2016 um 18:26 schrieb Lucas Goossen <email@hidden>:
>>
>> This is what broke it:
>> SE-0055 https://github.com/apple/swift-evolution/blob/master/proposals/0055-optional-unsafe-pointers.md
>>
>> Another Core Audio API broken by this is AudioUnitConnection. We used to be able to pass nill to sourceAudioUnit to disconnect.
>>
>> AudioUnitConnection.sourceAudioUnit needs to become optional.
>
> _______________________________________________
> 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