• 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: skips in file using ExtAudioFileWrite in aac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: skips in file using ExtAudioFileWrite in aac


  • Subject: Re: skips in file using ExtAudioFileWrite in aac
  • From: Hamilton Feltman <email@hidden>
  • Date: Mon, 19 Jul 2010 20:33:27 -0700

Oh one thing I forgot to mention, after changing encoder properties, you must flush the config through:

CFArrayRef config = NULL;
err = ExtAudioFileSetProperty(outfile, kExtAudioFileProperty_ConverterConfig, sizeof(config), &config);



On Jul 19, 2010, at 8:31 PM, Hamilton Feltman wrote:


On Jul 16, 2010, at 10:06 PM, Guy Shaviv wrote:


I've tested my code on the simulator, and on the simulator the AAC file is created fine. So I'm more and more getting the feeling this is something with the hardware encoder on the ipad.

It's working good for me on all arm7 and later devices. No skips.

Is there a way to request a software encoder on the ipad or are there any parameters to control the hardware encoder, like how do I set the bit-rate of the file? I only saw a way to specify the AAC encoding type (low-complexity/high-efficiency) but not bit rate?

You want to grab out the AudioConverter from the extAudioFile, then apply settings to it

size = sizeof(AudioConverterRef);
AudioConverterRef converter = NULL;
err = ExtAudioFileGetProperty(outfile, kExtAudioFileProperty_AudioConverter, &size, &converter);

...

UInt32 theBitRate = 192000;
err = AudioConverterSetProperty(converter, kAudioConverterEncodeBitRate, sizeof(theBitRate), &theBitRate);

Hope this helps.

 _______________________________________________
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

  • Follow-Ups:
    • Re: skips in file using ExtAudioFileWrite in aac
      • From: Guy Shaviv <email@hidden>
References: 
 >skips in file using ExtAudioFileWrite in aac (From: Guy Shaviv <email@hidden>)
 >Re: skips in file using ExtAudioFileWrite in aac (From: Jonathan <email@hidden>)
 >Re: skips in file using ExtAudioFileWrite in aac (From: Guy Shaviv <email@hidden>)
 >Re: skips in file using ExtAudioFileWrite in aac (From: Hamilton Feltman <email@hidden>)

  • Prev by Date: Re: skips in file using ExtAudioFileWrite in aac
  • Next by Date: Re: skips in file using ExtAudioFileWrite in aac
  • Previous by thread: Re: skips in file using ExtAudioFileWrite in aac
  • Next by thread: Re: skips in file using ExtAudioFileWrite in aac
  • Index(es):
    • Date
    • Thread