• 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
Re: Audio File writing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio File writing


  • Subject: Re: Audio File writing
  • From: Dave Fernandes <email@hidden>
  • Date: Thu, 2 Aug 2007 15:04:08 -0400

Just a guess, but I think you might want to set gAACFormat.mFormatFlags = 0;
You might also try setting gAACFormat.mFramesPerPacket = 0;


Dave

On Aug 2, 2007, at 1:50 PM, sheen mac wrote:

Hi All,

I am developing a audio file writing application based on RecordAudioToFile
code.Can I use this fOutputFormat as clientData format and gAACFormat
as file format ?.I tried based on this but it not working.


Waiting for your valuable suggestion.

Thanks In Advance,
Sheen


fOutputFormat.mSampleRate = 44100;
fOutputFormat.mFormatID = kAudioFormatLinearPCM;
fOutputFormat.mFormatFlags = kAudioFormatFlagIsBigEndian | kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
fOutputFormat.mBytesPerPacket = fOutputFormat.mBytesPerFrame = fDeviceFormat.mChannelsPerFrame * sizeof(SInt16);
fOutputFormat.mFramesPerPacket = 1;
fOutputFormat.mChannelsPerFrame = fDeviceFormat.mChannelsPerFrame;
fOutputFormat.mBitsPerChannel = 16;


AudioStreamBasicDescription gAACFormat = {44100.0, kAudioFormatMPEG4AAC, kAudioFormatFlagIsBigEndian, 0, 1024, 0, 2, 0, 0};



Need a vacation? Get great deals to amazing places on Yahoo! Travel.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40utoronto.ca


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Audio File writing (From: sheen mac <email@hidden>)

  • Prev by Date: Re: Coreaudio-api Digest, Vol 4, Issue 206
  • Next by Date: Re: AU Lab shows only AU effects in the effect list
  • Previous by thread: Audio File writing
  • Next by thread: Audio File writing
  • Index(es):
    • Date
    • Thread