Strange behavior of IOAudioEngine
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