• 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
Re: why am I getting kAudioHardwareIllegalOperationError?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: why am I getting kAudioHardwareIllegalOperationError? (From: Benjamin Reed <email@hidden>)

  • Prev by Date: Re: OT: loud macs [was: It had to be tried...]
  • Next by Date: Re: why am I getting kAudioHardwareIllegalOperationError?
  • Previous by thread: Re: why am I getting kAudioHardwareIllegalOperationError?
  • Next by thread: Re: why am I getting kAudioHardwareIllegalOperationError?
  • Index(es):
    • Date
    • Thread