Re: Newbie.please help
Re: Newbie.please help
- Subject: Re: Newbie.please help
- From: Kurt Revis <email@hidden>
- Date: Sat, 1 Feb 2003 19:16:59 -0800
On Saturday, February 1, 2003, at 06:59 PM, spacestation wrote:
NSSound of seems very basic compared to AudioToolbox.
Even though I have an average knowledge of C,I'm having trouble making
the connection in using
the C written AudioToolbox files with Obj-C code.
If I have a NSSound instance in Obj-C,how can I manipulate it using
the C functions in AudioToolbox?
Am I right in saying AudioToolbox relates to CoreAudio?or is it just
for OS9 SoundManager?
NSSound is currently implemented using the Carbon Sound Manager. The
Sound Manager itself is implemented on top of CoreAudio, but NSSound
doesn't have any direct connection to CoreAudio. NSSound doesn't let
you do much with a sound, other than play it, unfortunately. If you
need to do more, you'll need to write it yourself.
The AudioToolbox framework contains some higher-level modules which are
built on top of the "base" CoreAudio and AudioUnit frameworks.
Generally on this list we talk about all three of them (and CoreMIDI).
Is there any examples anyone could point me to showing the use of
CoreAudio in Obj-C?
Here are links to a lot of sample code, some of which is written in
Objective-C:
http://www.mat.ucsb.edu:8000/CoreAudio/2
Keep in mind that you can call any C code from Objective-C, without
doing anything special. (And if you compile as Objective-C++, you can
call C++ code as well.) You don't have to do *everything* in
Objective-C.
--
Kurt Revis
email@hidden
_______________________________________________
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.