• 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
Swift and CoreAudio pointers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Swift and CoreAudio pointers
      • From: "T.J. Usiyan" <email@hidden>
  • Prev by Date: Re: VPIO unit in a graph
  • Next by Date: Re: Swift and CoreAudio pointers
  • Previous by thread: RE: VPIO unit in a graph
  • Next by thread: Re: Swift and CoreAudio pointers
  • Index(es):
    • Date
    • Thread