• 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
Re: Alignment and endianness question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alignment and endianness question


  • Subject: Re: Alignment and endianness question
  • From: Richard Dobson <email@hidden>
  • Date: Mon, 22 Aug 2011 15:46:47 +0100

On 22/08/2011 15:24, Tim Murison wrote:
On 2011-08-22, at 3:00 AM, Brian Willoughby wrote:

On Aug 21, 2011, at 23:54, Tim Murison wrote:
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?
No.

Would you care to enlighten me?

Try http://en.wikipedia.org/wiki/Endianness

and NB: byte-reversal reverses the order of bytes, not bits or nybbles
within a byte. You are approximately back to front (or front to back;
but not trorf ot kcab) in your ordering.

Richard Dobson
_______________________________________________
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


References: 
 >Alignment and endianness question (From: Tim Murison <email@hidden>)
 >Re: Alignment and endianness question (From: Brian Willoughby <email@hidden>)
 >Re: Alignment and endianness question (From: Tim Murison <email@hidden>)

  • Prev by Date: Re: Alignment and endianness question
  • Next by Date: Re: Identifying AUs from host?
  • Previous by thread: Re: Alignment and endianness question
  • Next by thread: iOS: Is it possible to have multiple parallel AUGraphs using a Remote-I/O Output Unit?
  • Index(es):
    • Date
    • Thread