Mailing Lists: Apple Mailing Lists

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

Re: How do I use SoundComponentGetInfo() properly and avoid getting siUnknownInfoType



Douglas,

nothing wrong with your code that I can see.

siUnknownInfoType is a legitimate reply value - I think many of the things you're asking of an 'scom' are properties of a 'sinp' - although you can never be sure in SoundManager land.

If you're trying to determine what input sample rates a codec can support (for example), then it's possible that you have to actually try and ask it directly to do that... otherwise I think if you just use the normal API the Sound Manager will intercede and do the rate/format conversion for you.

but who knows for sure, as I said, some of this stuff is uncertain except to those that have the actual source code.

cheers,

dean


On 23/12/2004, at 12:51 AM, Douglas A. Welton wrote:

Hi All,

My program needs to gather information about the available Sound Components.  Unfortunately, as I iterate through the Sound Compressor components, when I ask for various information using SoundComponentGetInfo(), I am consistently getting a returned value of –231 (siUnknownInfoType).

I am asking for 6 types of data: siNumberChannels, siQuality, siVolume, siSampleRateAvailable, siSampleSizeAvailable and siOptionsDialog.  The first 5 always fail to return data. The last type, siOptionsDialog, does return data and actually appears to work as expected.

Would you take a look at the code snippet below and tell me if I am doing something that is obviously incorrect?  Any pointers will be greatly appreciated.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden

References: 
 >How do I use SoundComponentGetInfo() properly and avoid getting siUnknownInfoType (From: "Douglas A. Welton" <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.