QTSetComponentProperty
QTSetComponentProperty
- Subject: QTSetComponentProperty
- From: "Sandeep Chandna" <email@hidden>
- Date: Thu, 30 Nov 2006 18:37:59 +0530
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:
This email sent to email@hidden