Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MTCoreAudio quickie



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.