• 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: Audio Unit hosting requires c++?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio Unit hosting requires c++?


  • Subject: Re: Audio Unit hosting requires c++?
  • From: patrick machielse <email@hidden>
  • Date: Wed, 13 Jun 2007 21:48:10 +0200

A few days ago I posted the following question:

I'm trying to get a feel for working with Audio Units. To this end I've written a small command line program that sets up a minimal AUGraph consisting of an AUFilePlayer and the default output unit. Essentially this is a re-implementation of the SimpleSDK PlayFile program, but in a way that actually makes sense (if I say so myself), using just C API.

My simple command line tool works fine and plays audio files if I compile it as a C++ or Objective-C++ program. However, when I try it as a regular C or Objective-C it will compile and link just fine, but the call to AUGraphOpen() will return with an error -2005 (badComponentType).

It seems that this behavior is _reversed_ for Debug builds. (zerolink is turned off)


Furthermore, when I try the code from a Cocoa program, I always get that error, no matter how I compile the code. It seems I'm overlooking something obvious, but I don't know what...

I would be grateful if someone could comment on this, and maybe have a look through my simple source code, which can be found here:


<http://www.hieper.nl/files/SimpleGUIPlayer.zip>

I really need a push in the right direction...

patrick
_______________________________________________
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: 
 >Audio Unit hosting requires c++? (From: patrick machielse <email@hidden>)

  • Prev by Date: Re: Coreaudio-api Digest, Vol 4, Issue 164
  • Next by Date: how to make kAudioUnitProperty_BusCount writable
  • Previous by thread: Audio Unit hosting requires c++?
  • Next by thread: Re: Audio Unit hosting requires c++?
  • Index(es):
    • Date
    • Thread