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 09:59:40 -0800
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.
On Saturday, November 16, 2002, at 07:34 PM, Benjamin Reed wrote:
I'm trying to write a driver for arts (the kde sound server) with
coreaudio, and I'm running into an issue in initialization.
Here's what's happening:
---(snip!)---
if (param(direction) & directionWrite) {
NotifyOnError( AudioDeviceAddIOProc(deviceData.deviceID,
(AudioDeviceIOProc)PlaybackIOProc, &deviceData),
"AudioDeviceAddIOProc (PlaybackIOProc)" );
}
---(snip!)---
deviceData is a struct to various data about the device and such, and
PlaybackIOProc is basically just a stub for now:
---(snip!)---
OSStatus PlaybackIOProc (
AudioDeviceID inDevice,
const AudioTimeStamp *inNow,
const AudioBufferList *inInputData,
const AudioTimeStamp *inInputTime,
AudioBufferList *outOutputData,
const AudioTimeStamp *inOutputTime,
void *inClientData
) {
return (kAudioHardwareNoError);
}
---(snip!)---
I've found some other CoreAudio code samples that are doing similar
things, I just can't place what I'm doing wrong. When I try running
what I've currently got, I get a kAudioHardwareIllegalOperationError.
I can find basically *no* docs on what all of the coreaudio error
codes actually mean, so I'm really not sure how to go about debugging
from here.
Any ideas what should I be looking for?
TIA
_______________________________________________
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.
--
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.