Re: iPhone kAudioUnitSubType_RemoteIO what does AudioStreamBasicDescription.mFormatFlags = 3116 mean?
Re: iPhone kAudioUnitSubType_RemoteIO what does AudioStreamBasicDescription.mFormatFlags = 3116 mean?
- Subject: Re: iPhone kAudioUnitSubType_RemoteIO what does AudioStreamBasicDescription.mFormatFlags = 3116 mean?
- From: Jeff Moore <email@hidden>
- Date: Mon, 19 Jan 2009 15:28:10 -0800
On Jan 19, 2009, at 3:14 PM, Andrew E. Davidson wrote: Does anyone know of any easy way to decompose mFormatFlags into their components The kAudioUnitSubType_RemoteIO on the iPhone returns mFormatFlags = 3116? What does this mean? (this is the value displayed in the debugger) If my math is correct 3116 = bit wise & of 2048, 1024, 32, 8, 4 (in decimal) Going through the documentation I found kAudioFormatFlagIsSignedInteger = (1 << 2) // 0x4 kAudioFormatFlagIsPacked = ( 1 <<3) // 0x8 kAudioFormatFlagIsNonInterleved = (1 << 5) // 0x20 any idea what 1024 and 2048 are?
That's the canonical form for the fixed point sample linear PCM sample format in use.
3116 == kAudioFormatFlagsAudioUnitCanonical == kAudioFormatFlagIsSignedInteger + kAudioFormatFlagIsPacked + kAudioFormatFlagIsNonInterleaved + (kAudioUnitSampleFractionBits << kLinearPCMFormatFlagsSampleFractionShift)
The last part is what is signifying that this is actually a fixed point format.
Is there a utility function that will print out these values in human readable forms?
The CAStreamBasicDescription in our SDK is generally the place to look for that kind of code.
--
Jeff Moore Core Audio Apple
|
_______________________________________________
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