• 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
Strange behavior of IOAudioEngine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange behavior of IOAudioEngine


  • Subject: Strange behavior of IOAudioEngine
  • From: BlazeAudio Developer <email@hidden>
  • Date: Fri, 11 Aug 2006 14:01:02 +0530

Hi,

I'm observing some really strange behavior of IOAudioEngine.

It looks like there might be a bug in IOAudioFamily, but it's very difficult for me to say for sure yet.

Here's what I'm seeing:

[This is a device with 4 streams, 2 for Input, 2 for Output]

I have placed the following traces at the beginning of perormAudioEngineStart() and performAudioEngineStop() respectively.

FireLog ("MyDriver: AEStart: input streams %p, count = %d\n", inputStreams, inputStreams->getCount());

FireLog ("MyDriver: AEStop: input streams %p, count = %d\n", inputStreams, inputStreams->getCount());

Now, when I Open the Audio System Preferences Panel, go to the Input tab, and click on my device. I get the first trace with count = 2.

When I close the System Preferences Panel, I get the second trace, but this time, count is 0!!

In other words, the streams have just vanished from the inputStreams set!

Please note that the streams do not go away from the device, or the IORegistry! They are just gone from the inputStreams set.

This is what I see on a PPC Mac (OS 10.4.7, IOAudioFamily 1.5.5b2).

However, this does not haappen on an Intel Mac (OS 10.4.7, IOAudioFamily 1.5.9b2).

I looked into the IOAudioFamily source(155.2.2) and it seems like the only place that the inputStreams gets flushed is in detachAudioStreams(). However, detachAudioStreams() is not really being called in the above case!

How's this possible?

Is it that my code is thrashing the inputStreams object in some manner?

Any help in this matter would be greatly appreciated!

Thanks.
Devendra.

 _______________________________________________
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

References: 
 >AU Cleanup / destructor, what to do in which method? (From: Chris <email@hidden>)
 >Re: AU Cleanup / destructor, what to do in which method? (From: William Stewart <email@hidden>)

  • Prev by Date: Re: Using AudioDeviceIOProc for Java
  • Next by Date: removing audio deicde crash
  • Previous by thread: Re: AU Cleanup / destructor, what to do in which method?
  • Next by thread: Re: AU Cleanup / destructor, what to do in which method?
  • Index(es):
    • Date
    • Thread