That's the canonical format; that's what's now set. Just to be sure I set that explicitly and sound is still wrong. Here's the ASBDs again for reference:
// Set desired audio output format
memset(&_outputASBD, 0, sizeof(_outputASBD));
_outputASBD.mSampleRate = 44100.0;
_outputASBD.mFormatID = kAudioFormatLinearPCM;
_outputASBD.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked;
_outputASBD.mBytesPerPacket = 2 * 2; // 2 channels, 2 bytes per
_outputASBD.mBytesPerFrame = 2 * 2; // 2 channels, 2 bytes per
_outputASBD.mFramesPerPacket = 1;
_outputASBD.mChannelsPerFrame = 2;
_outputASBD.mBitsPerChannel = 16;
// Set recording format
memset(&_fileASBD, 0, sizeof(_fileASBD));
_fileASBD.mSampleRate = 44100.00;
_fileASBD.mFormatID = kAudioFormatLinearPCM;
_fileASBD.mFormatFlags = kAudioFormatFlagsCanonical;
_fileASBD.mBytesPerPacket = 2 * 2;
_fileASBD.mBytesPerFrame = 2 * 2;
_fileASBD.mFramesPerPacket = 1;
_fileASBD.mChannelsPerFrame = 2;
_fileASBD.mBitsPerChannel = 16;
On Thu, Dec 6, 2012 at 3:50 PM, Tim Kemp <
email@hidden> wrote:
I did so: changed my RemoteIO ASBD to use kAudioUnitFlagsCanonical.
What are the flags in kAudioUnitFlagsCanonical?
Did you make sure the flags in your file's ASBD are
kAudioUnitFlagsCanonical also?
From what I've seen of your code thus far, I think you want
kAudioFormatFlagIsSignedInteger | kAudioFormatFlagsNativeEndian |
kAudioFormatFlagIsPacked.
--------------------------------------------------------------------------
for hire: mac osx device driver ninja. kernel, usb and coreaudio drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs |
http://www.linkedin.com/in/joelreymont---------------------+------------+---------------------------------------