why am I getting kAudioHardwareIllegalOperationError?
why am I getting kAudioHardwareIllegalOperationError?
- Subject: why am I getting kAudioHardwareIllegalOperationError?
- From: Benjamin Reed <email@hidden>
- Date: Sat, 16 Nov 2002 22:34:26 -0500
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.