Re: why am I getting kAudioHardwareIllegalOperationError?
Re: why am I getting kAudioHardwareIllegalOperationError?
- Subject: Re: why am I getting kAudioHardwareIllegalOperationError?
- From: Jeff Moore <email@hidden>
- Date: Mon, 18 Nov 2002 17:50:07 -0800
On Monday, November 18, 2002, at 05:15 PM, Benjamin Reed wrote:
On Monday, November 18, 2002, at 12:59 PM, Jeff Moore wrote:
The most likely explanation is that you are adding the same IOProc
multiple times, which is expressly illegal in the API.
Apart from that guess, there just isn't enough context in your
question to judge properly what else might be failing.
Actually, it turns out that I was trying to set things that apparently
don't actually work (at least, all of the "real world" code I've seen
has been forced to disable it).
In a StreamBasicDescription, setting mBitsPerChannel, mBytesPerPacket,
mBytesPerFrame, and mFormatID all cause the property setting to fail.
Is there any way at all to be able to pass signed 16-bit data to
coreaudio directly without having to do my own conversion routines?
Use an OutputAudioUnit. It uses the AudioConverter to massage the data
into what the IOProc asks for.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.