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: the format flag kLinearPCMFormatFlagIsPacked



When kAudioFormatFlagIsPacked is set, it means that all the bits in the sample are significant. When it is unset, it means that some bits in the sample aren't used. Which bits those are is determined by whether kAudioFormatFlagIsAlignedHigh is set or not.

In your case, you should set kAudioFormatFlagIsPacked. In fact, you might just want to go ahead and use the pre-assembled flag constant, kAudioFormatFlagsNativeFloatPacked.

On Jan 18, 2008, at 12:17 PM, Roland Silver wrote:

I want to output (using Audio Queue) a time-series of algorithmically generated sound signals in linear PCM format: left-channel-signal #1, right-channel-signal #1, left-channel-signal #2, right-channel-signal #2, etc. Each signal is represented as a 32-bit float. 

Question: Should the format flag kLinearPCMFormatFlagIsPacked be set?

I've read Core Audio: Audio Stream Basic Description, but I'm still not clear on the answer to my question, because I don't understand what "packed" means, exactly. I think my data is packed, but I'd like to make sure.




-- 

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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden

References: 
 >the format flag kLinearPCMFormatFlagIsPacked (From: Roland Silver <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.