• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
why am I getting kAudioHardwareIllegalOperationError?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: why am I getting kAudioHardwareIllegalOperationError?
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: It had to be tried...
  • Next by Date: RE: It had to be tried...
  • Previous by thread: SampleUSBMIDIDriver problem
  • Next by thread: Re: why am I getting kAudioHardwareIllegalOperationError?
  • Index(es):
    • Date
    • Thread