• 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
ExtAudioFile for audio recording
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ExtAudioFile for audio recording


  • Subject: ExtAudioFile for audio recording
  • From: Fernando Valente <email@hidden>
  • Date: Sat, 31 Jul 2010 23:39:39 -0300

I'm developing an update for my radio app and I would like to let the user record audio. I'm trying to use ExtAudioFile with no luck. The problem is happening when setting the kExtAudioFileProperty_ClientDataFormat. Here's my code:

AudioStreamBasicDescription mDesc;
mDesc.mChannelsPerFrame = 1;
mDesc.mSampleRate = 44100.0;
mDesc.mFormatID = kAudioFormatLinearPCM;
mDesc.mFormatFlags = kLinearPCMFormatFlagIsBigEndian | kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked;
mDesc.mBitsPerChannel = 16;
mDesc.mBytesPerFrame = mDesc.mChannelsPerFrame * mDesc.mBitsPerChannel / 8;
mDesc.mFramesPerPacket = 1;
mDesc.mBytesPerPacket = mDesc.mBytesPerFrame * mDesc.mFramesPerPacket;
UInt32 propSize = sizeof(mDesc);
createFile = ExtAudioFileSetProperty(ref, kExtAudioFileProperty_ClientDataFormat, propSize, &mDesc);


Fernando Valente
Chiaro Software
email@hidden
http://www.chiarosoft.com
http://www.twitter.com/chiarosoftware

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Device sample rates and stream virtual formats
  • Previous by thread: Device sample rates and stream virtual formats
  • Index(es):
    • Date
    • Thread