|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Jun 8, 2007, at 10:34 AM, Michael T. Luongo wrote:
They have no options. But essentially: open scaudio component If you have an input format from which you'll be converting, set the input basic description property. Set output asbd with format set to MAC6 or MAC3. You can leave all the fields set to zero in the asbd that you don't know. But at a minimum, you probably want to fill in mFormatID, mSampleRate, and mChannelsPerFrame. So, for instance: out.mFormatID = 'MAC3'; out.mSampleRate = 44100.; out.mChannelsPerFrame = 1; QTSetComponentProperty(scAudio, kQTPropertyClass_SCAudio, kQTSCAudioPropertyID_BasicDescription, ... &out, ... ) now get the kQTSCAudioPropertyID_CodecSpecificSettingsArray property. You won't get one for MAC3 unless your input and output sample rates don't match, in which case you'll get some sample rate conversion settings (quality, etc). If you want to make ui for supported sample rates (common to all formats), use the kQTSCAudioPropertyID_AvailableSampleRateList and kQTSCAudioPropertyID_ApplicableSampleRateList properties. If you want to make ui for supported channel layouts (common to all formats), use the kQTSCAudioPropertyID_AvailableChannelLayoutTagList/kQTSCAudioPropertyID_AvailableChannelLayoutTagNamesList and kQTSCAudioPropertyID_ApplicableChannelLayoutTagList/kQTSCAudioPropertyID_ApplicableChannelLayoutTagNamesList properties. If you want to list all the available encoders on the system, use the kQTSCAudioPropertyID_AvailableCompressionFormatList/kQTSCAudioPropertyID_AvailableCompressionFormatNamesList properties. -Brad Ford QuickTime Engineering |
_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| References: | |
| >DisplayCodecSpecificSettings (From: "Michael T. Luongo" <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.