Swift and CoreAudio pointers
Swift and CoreAudio pointers
- Subject: Swift and CoreAudio pointers
- From: Robert Burns <email@hidden>
- Date: Wed, 04 Jun 2014 19:19:00 -0700
Hi All,
So I’m poking around the new Swift language Apple gave us and I’m stuck trying to make a pointer to an AudioComponentDescription.
This gets me the AudioComponentDescription
let delaycd = AudioComponentDescription(componentType: OSType(kAudioUnitType_Effect), componentSubType: OSType(kAudioUnitSubType_MatrixReverb), componentManufacturer: OSType(kAudioUnitManufacturer_Apple), componentFlags: 0, componentFlagsMask: 0)
But adding it to the AUGraph requires a pointer to it. I get:
'AudioComponentDescription' is not convertible to 'CConstPointer<AudioComponentDescription>’
when I try creating a pointer to my delayed object with
let delayPointer:CConstPointer<AudioComponentDescription> = delaycd
Any ideas?
Thanks!
Bob |
_______________________________________________
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