• 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
start fails to start... sometimes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

start fails to start... sometimes


  • Subject: start fails to start... sometimes
  • From: Bob Stuller <email@hidden>
  • Date: Wed, 19 Sep 2007 09:03:31 -0400

Folks, Greetings!

The symptom: Every so often AudioOutputUnitStart fails to start.

I am using the AUHAL to connect to input devices &, generally, this approach is working pretty well. Ordinarily, my Render callback gets called on a regular basis, drops the samples into a circular buffer and a consumer thread pulls the samples out. And all is well. But, infrequently, I'll be watching Thread Viewer & my consumer thread will be walking up at intervals but the Core Audio round-robin thread is nowhere to be seen.

It's a busy environment: The consumer thread is a timeshared pthread & the audio is passed off to other MP threads for processing. Audio gets started and stopped frequently. The application itself calls WaitNextEvent to retrieve events. Don't ask.

Mind you, the AUHAL never complains. I've added calls to GetComponentInstanceError to see if it's had a problem & doesn't want to talk about it. I've added a call to AudioUnitReset (global scope, input element) after AudioOutputUnitStop. I've tried sprinkling usleep calls to see if things need to settle down between state changes. I've tried discarding my AUHAL instance & totally rebuilding it but that made it happen more often.

Any insight would be most welcome.  Thanks in advance.

Peace,
Bob
--

One measurement is worth a thousand guesses.
	- Anonymous
_______________________________________________
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: start [snip] Please Ignore!
      • From: Bob Stuller <email@hidden>
  • Prev by Date: RE: SetParameter
  • Next by Date: Re: start [snip] Please Ignore!
  • Previous by thread: Re: Answering my own question...
  • Next by thread: Re: start [snip] Please Ignore!
  • Index(es):
    • Date
    • Thread