Re: audioconverter and unpacked source
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