• 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: audioconverter and unpacked source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: audioconverter and unpacked source


  • Subject: Re: audioconverter and unpacked source
  • From: David Duncan <email@hidden>
  • Date: Mon, 4 Dec 2006 11:37:08 -0800

On Dec 4, 2006, at 11:14 AM, Christopher Skogen wrote:

i've been looking at this and still haven't figured it out.

fmt.mSampleRate = 44100;
fmt.mFramesPerPacket = 1;
fmt.mChannelsPerFrame = 1;
fmt.mBitsPerChannel = 16;
fmt.mBytesPerFrame = 4;
fmt.mBytesPerPacket = 4;
fmt.mFormatID = audioFormatLinearPCM;
fmt.mFormatFlags = kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsSignedInteger;
fmt.mReserved = 0;

Have you tried using kAudioFormatFlagIsBigEndian instead of kAudioFormatFlagsNativeEndian? It sounds like you expect your low- aligned ints to be in the lower 16-bits of the integer, which on a Big Endian system are the 3rd and 4th bytes but on a Little Endian system are the 1st and 2nd bytes.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden




_______________________________________________
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: 
 >Re: audioconverter and unpacked source (From: Christopher Skogen <email@hidden>)

  • Prev by Date: Re: audioconverter and unpacked source
  • Next by Date: Re: Bug in CoreAudio, Channel Names property?
  • Previous by thread: Re: audioconverter and unpacked source
  • Next by thread: USB Audio Glitching
  • Index(es):
    • Date
    • Thread