Re: Objective C and C++
Re: Objective C and C++
- Subject: Re: Objective C and C++
- From: "tahome izwah" <email@hidden>
- Date: Mon, 22 Dec 2008 08:32:00 +0100
Actually, all the CA... files contain C++ code, not just
CAStreamBasicDescription. You can still use a "regular"
AudioStreamBasicDescription if you don't want to deal with C++ at this
point, though I fail to see what difference this would make (if you
rename the Cocoa files properly you can mix C++ and ObjC with no
problems and zero overhead).
--th
2008/12/22 Brian Willoughby <email@hidden>:
> Nick has a good point. CoreAudio and CoreMIDI are C API, so you don't need
> anything fancy at all. ObjC is a superset of C, so every CoreAudio/MIDI
> call can be made from a normal Cocoa source file. No C++ needed.
>
> The only potential need for C++ that I have run into is the
> CAStreamBasicDescription object. It's very handy, but I usually just make
> do without it. Sometimes it's more trouble to get C++ to mix in a Cocoa
> than to simply roll your own description structures. Now that I think about
> it, Apple should rewrite CAStreamBasicDescription as C (if possible) or make
> an ObjC variant available. That would save a lot of Cocoa developers from
> needless hassle.
>
> Brian Willoughby
> Sound Consulting
>
_______________________________________________
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