Attempting to set kAudioUnitProperty_StreamFormat -> kAudioUnitScope_Input returning kAudioUnitErr_FormatNotSupported
Attempting to set kAudioUnitProperty_StreamFormat -> kAudioUnitScope_Input returning kAudioUnitErr_FormatNotSupported
- Subject: Attempting to set kAudioUnitProperty_StreamFormat -> kAudioUnitScope_Input returning kAudioUnitErr_FormatNotSupported
- From: Peter MacWhinnie <email@hidden>
- Date: Mon, 25 Aug 2008 18:14:44 -0400
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