Re: Attempting to set kAudioUnitProperty_StreamFormat -> kAudioUnitScope_Input returning kAudioUnitErr_FormatNotSupported
Re: Attempting to set kAudioUnitProperty_StreamFormat -> kAudioUnitScope_Input returning kAudioUnitErr_FormatNotSupported
- Subject: Re: Attempting to set kAudioUnitProperty_StreamFormat -> kAudioUnitScope_Input returning kAudioUnitErr_FormatNotSupported
- From: William Stewart <email@hidden>
- Date: Mon, 25 Aug 2008 15:29:48 -0700
you need to set the de-interleaved bit - AUHAL takes a variety of
sample formats, but most AUs will only accept the canonical sample
format - which is Float32, de-interleaved
Have a look at CAStreamBasicDescripiton's SetCanonical method
Bill
On Aug 25, 2008, at 3:14 PM, Peter MacWhinnie wrote:
I am attempting to chain AudioUnit effects within an AUGraph and no
matter what AudioUnit I have attempted to test with, when I call
AudioUnitSetProperty for kAudioUnitProperty_StreamFormat in scope
kAudioUnitScope_Input I am given a kAudioUnitErr_FormatNotSupported
error.
I could be completely missing something, but, my format seems within
normal parameters and it works just fine with the
kAudioUnitSubType_HALOutput AudioUnit that is the head of the AUGraph.
The AudioStreamBasicDescription typically looks like this:
{
mFormatFlags = (kAudioFormatFlagIsFloat | kAudioFormatFlagIsPacked
| kAudioFormatFlagsNativeEndian),
mFormatID = kAudioFormatLinearPCM,
mSampleRate = 44100.000000,
mBytesPerPacket = 8,
mFramesPerPacket = 1,
mBytesPerFrame = 8,
mBitsPerChannel = 32,
mChannelsPerFrame = 2
}
I could be (and feel like I am) missing something fairly basic, but
I've been trying to figure this out for quite a while now with no
luck.
Sincerely,
Peter MacWhinnie
http://petermacwhinnie.com
_______________________________________________
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
_______________________________________________
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