• 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
AudioDeviceIOProc not called after AudioDeviceStart
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioDeviceIOProc not called after AudioDeviceStart


  • Subject: AudioDeviceIOProc not called after AudioDeviceStart
  • From: Alain Mazy <email@hidden>
  • Date: Thu, 01 Apr 2004 16:07:39 +0200

Here is a piece of code I have to start an audio device (input).

err = AudioDeviceAddPropertyListener(fInputDevice->mID, 0, TRUE,
kAudioDevicePropertyDeviceIsRunning, AudioDeviceIsRunningListenerProc,
NULL);
err = AudioDeviceAddIOProc(fInputDevice->mID,
AudioDeviceSourceInputIOProc, self);
err = AudioDeviceStart(fInputDevice->mID, AudioDeviceSourceInputIOProc);

The PropertyListener callback is called and tells me the device is running
but the AudioDeviceIOProc is never called. I get no error message.

Actually, this piece of code sometimes work and sometimes not. It depends
on what the user has done before. However, the failure/success of this code
does not depend on the creation code or startup code for the AudioDevice
which is always the same.

An here comes the 'funniest' part: if I put a breakpoint on the first line
and then execute the code step by step it ALWAYS work !

So what's the problem ? Timing ? Multi-thread related ? How should I know
since the API tells me that everything is fine ?

Thanks a lot for your help.

Alain.
_______________________________________________
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: AudioDeviceIOProc not called after AudioDeviceStart
      • From: Jeff Moore <email@hidden>
  • Prev by Date: MIDI processing question
  • Next by Date: Confused on DefaultOutputUnit and conversions
  • Previous by thread: RE: MIDI processing question
  • Next by thread: Re: AudioDeviceIOProc not called after AudioDeviceStart
  • Index(es):
    • Date
    • Thread