• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MTCoreAudio quickie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: MTCoreAudio quickie
      • From: Michael Thornburgh <email@hidden>
  • Prev by Date: Retrieving Waveform Information from Audio Files
  • Next by Date: Re: Using MIDIThruConnection.h
  • Previous by thread: Retrieving Waveform Information from Audio Files
  • Next by thread: Re: MTCoreAudio quickie
  • Index(es):
    • Date
    • Thread