Re: Setting the Number of Channels
Re: Setting the Number of Channels
- Subject: Re: Setting the Number of Channels
- From: Brian Willoughby <email@hidden>
- Date: Thu, 19 Jun 2003 03:05:42 -0700
You're right, Bill, it is easy enough to use the C++ CAStreamBasicDescription
class within an ObjC project, but it sure slows down the compiler. I remember
someone else complaining about how slow the ObjC++ compiler is, and now that I
am using CAStreamBasicDescription in a Cocoa app, I know just what they're
talking about. This really hurts rapid prototyping.
I haven't looked at MTCoreAudio.framework yet, but I am hoping that it
provides all of the functionality of CAStreamBasicDescription without the
overhead.
One side-benefit is that the ObjC++ compiler forces you to write "better"
ObjC! The ANSI C++ compiler is much more strict, so cleaning out the warnings
is probably an improvement (although many of the compiler's complaints are not
about "bad" code, per se).
Brian Willoughby
Sound Consulting
Begin forwarded message:
Subject: Re: Setting the Number of Channels
Cc: Michael Thornburgh <email@hidden>, CoreAudio API
<email@hidden>
To: Jeff Zacharias <email@hidden>
From: Bill Stewart <email@hidden>
At the risk of belabouring this point... :)
The classes in the SDK in PublicUtility will save you a lot of this
kind of trouble - in this case CAStreamBasicDescription or the other
one (we've unified these both so that's even better next SDK rev!)
takes care of these details for you and also provides things like match
operators (operator==), etc...
Oh wait. its C++ ...
Don't Panic!
Its a very simple class (as are nearly if not all of the PublicUtility
classes) to use and doesn't dynamically allocate memory so there are no
gc issues to resolve. It should be easy enough to use within an ObjC
environment...
Bill
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.