• 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
Accessing AudioCodec from AudioConverter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing AudioCodec from AudioConverter?


  • Subject: Accessing AudioCodec from AudioConverter?
  • From: "Stephen F. Booth" <email@hidden>
  • Date: Tue, 27 Dec 2005 09:21:17 -0800

Hello all,

I am new to Core Audio programming and am stuck! In essence, I want to set the options for the codec used by an AudioConverter; specifically I want to set the bitrate mode (CBR, ABR, VBR) on the AAC codec. Setting the kAudioConverterSampleRateConverterQuality property does not seem to do the trick. I am aware of the kAudioConverterPropertyInputCodecParameters / kAudioConverterPropertyOutputCodecParameters properties, but I cannot find any documentation on how to use them. I have also looked into the kAudioFormatProperty_FormatIsVBR property on AudioStreamBasicDescription, but this seems informational only. "AudioCodec.h" defines the following

// constants to be used with kAudioCodecBitRateFormat
enum
{
kAudioCodecBitRateFormat_CBR = 0, // Every encoded frame is the same size
// eg IMA, MACE, old MP3, most early audio codecs
kAudioCodecBitRateFormat_ABR = 1, // Encoder attempts to keep close to the given bit rate, can vary
// eg modern MP3 CBR, AAC (anything that has a "minimum" frame size
// or implements a bit pool for "CBR")
kAudioCodecBitRateFormat_VBR = 2 // Encoder varies frames size attempting to maintain constant quality
// eg MP3 VBR (Xing), AAC VBR
};


but I cannot find a way to access the AudioCodec (which I presume is used internally by AudioConverter) directly.

Could anyone shed some light on this matter?

Stephen
_______________________________________________
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: Accessing AudioCodec from AudioConverter?
      • From: William Stewart <email@hidden>
  • Prev by Date: Writing a private device driver
  • Next by Date: Re: Writing a private device driver
  • Previous by thread: Re: Writing a private device driver
  • Next by thread: Re: Accessing AudioCodec from AudioConverter?
  • Index(es):
    • Date
    • Thread