Re: ioproc and recording audio
Re: ioproc and recording audio
- Subject: Re: ioproc and recording audio
- From: Bill Stewart <email@hidden>
- Date: Tue, 17 Jun 2003 22:11:54 -0700
Dom
The device when it is started, calls your I/O proc on a regular basis -
its a callback type API, where the period of the I/O proc is given by
the frames per slice you run the I/O proc in (you can see this by
comparing the different values of the mSampleTime field in the
TimeStamp passed to your I/O Proc)...
The input is presented to you at the same time you are given output...
Now - if you are using Audio Units then you don't see the input side in
Jaguar... so you need to look at AudioHardware.h in the CoreAudio
framework
Bill
On Tuesday, June 17, 2003, at 07:26 PM, email@hidden wrote:
Hello All,
I've been trying to figure out how to use an ioproc to record a sound
file (.aiff?). The Sinewave sample code that's out there helps when
illustrating how the Mac plays sound but I haven't grasped how to
record... For that matter, how does the ioproc get called in the
classic Sinewave example. I understand the "start" call but it seems
the for loop in the ioproc would exit and then the sound would stop
playing... any documentation or faq on ioprocs would be greatly
appreciated. (I have searched the archives and gotten glimpses of the
answers, but some of the posts raise as many questions as they do
answers).
Thanks,
Dom Ochotorena
_______________________________________________
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.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.