MTCoreAudio quickie
MTCoreAudio quickie
- Subject: MTCoreAudio quickie
- From: Rick Bourner <email@hidden>
- Date: Wed, 24 Sep 2003 16:32:26 +0100
Just a quick question from a newb -
I'm creating my first sound app for OS X. It's been hell so far and it
seems to be the same for most people trying
to record sound for the first time.
The venerable MTCoreAudio framework helped. Within a day I was
recording from various input sources - great!
Within my IOProc callback function I do the following for each input
received:
int i;
long size;
for ( size = 0, i = 0; i < inInputData->mNumberBuffers; i++ )
[_data appendBytes: inInputData->mBuffers[i].mData length:
inInputData->mBuffers[i].mDataByteSize ];
where _data is a simple NSMutableData object. I then save the
NSMutableData to disk
and convert to MP3 using lame.
It works but the recording has **loads** of noise.
It would be great if you could help me get a crisp recording. If I can
get it working I'll
release the code for the other newb's to core-audio.
Cheers,
Rick.
_______________________________________________
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.