• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Alignment and endianness question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Alignment and endianness question


  • Subject: Alignment and endianness question
  • From: Tim Murison <email@hidden>
  • Date: Mon, 22 Aug 2011 02:54:18 -0400

Hi,

I'm trying to determine what data should look like when it is unpacked. I think I understand it now, but I'd like some confirmation.

Say I have a 20-bit sample: 0xABCDE that needs to be stored in a 32-bit audio stream formatted as below:

aligned high & little endian: 0xABCDE000
aligned low & little endian: 0x000ABCDE

aligned high & big endian: 0x00E0CDAB
aligned low & big endian: 0xABCDE000

Is this correct?

-Tim


 _______________________________________________
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

  • Follow-Ups:
    • Re: Alignment and endianness question
      • From: Brian Willoughby <email@hidden>
  • Prev by Date: kAudioUnitSubType_Sampler
  • Next by Date: Re: Alignment and endianness question
  • Previous by thread: kAudioUnitSubType_Sampler
  • Next by thread: Re: Alignment and endianness question
  • Index(es):
    • Date
    • Thread