Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QTSetComponentProperty



Hi,

       I wrote an application which displays the settings dialogue for encoding of audio (like scaudiocompress example) but I am not calling the SCRequestImageSettings function to get the settings and doing it myself.

       I am following the flow as:

       -> get a formatID
       -> create a ASBD(AudioStreamBasicDescription) and set it to different formats like PCM, QDesign, AppleLossless (set in the formatID)
       -> OpenADefaultComponent(StandardCompressionType,StandardCompressionSubTypeAudio,&m_ci)
       -> Do a QTSetComponentProperty(m_ci, .. , asbd, .. );

       -> And get the properties like applicableSampleRates etc corresponding to that particular codec ( asbd.formatID)

      Now my problem is that doing OpenADefaultComponent/QTSetComponentProperty for each codec ( I call a function with a particular formatID say PCM or QDesign etc) is takes a long time to execute and is making the application slow.

      Can I avoid calling QTSetComponentProperty every time (It is taking the most amount of time) and still get the codec specific settings? Anyone has any idea how " SCRequestImageSettings" function internally does all this very quickly?

Thank you
Sandeep
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.