• 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
kAudioHardwareUnsupportedOperationError after calling AudioDeviceStop/AudioDeviceRemoveIOProc from atexit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kAudioHardwareUnsupportedOperationError after calling AudioDeviceStop/AudioDeviceRemoveIOProc from atexit


  • Subject: kAudioHardwareUnsupportedOperationError after calling AudioDeviceStop/AudioDeviceRemoveIOProc from atexit
  • From: Mike Kronenberg <email@hidden>
  • Date: Thu, 17 Nov 2005 14:25:48 +0100

I'm writing the coreaudio sound output for the CPU emulator QEMU.

The coreaudio module is working fine until QEMU is closed and the functions of atexit get executed.

I have functions to stop audio and to remove the IOProc.
These function can be called during emulation, when the emulator gets paused or stopped.
They work as expected and return no error.


If the same functions get called on cleanup from atexit() I get kAudioHardwareUnsupportedOperationError.
I double checked that the AudioDeviceID is still present and correct.
I found postings on the list


http://lists.apple.com/archives/coreaudio-api/2003/Oct/msg00279.html
http://lists.apple.com/archives/Coreaudio-api/2001/Jun/msg00052.html

suggesting that the IOProc hasn't been registered with the device (yet) - which can't be, since it's functioning alright when called elsewhere.

Is it possible that the IOProc gets unregistered before by the system without notice? How can I be sure that it's been cleanly removed?

Thanks for Your Time

Mike Kronenberg

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: kAudioHardwareUnsupportedOperationError after calling AudioDeviceStop/AudioDeviceRemoveIOProc from atexit
      • From: Jeff Moore <email@hidden>
  • Prev by Date: New CA SDK Available (1.4.3)
  • Next by Date: Re: kAudioHardwareUnsupportedOperationError after calling AudioDeviceStop/AudioDeviceRemoveIOProc from atexit
  • Previous by thread: Re: New CA SDK Available (1.4.3)
  • Next by thread: Re: kAudioHardwareUnsupportedOperationError after calling AudioDeviceStop/AudioDeviceRemoveIOProc from atexit
  • Index(es):
    • Date
    • Thread