Problems with multiple subclasses of IOAudioEngine
Problems with multiple subclasses of IOAudioEngine
- Subject: Problems with multiple subclasses of IOAudioEngine
- From: Andrew White <email@hidden>
- Date: Tue, 28 Dec 2004 18:19:12 +1100
I'm having problems with subclassing IOAudioEngine...
In .h:
class MyAbstractAudioEngine : public IOAudioEngine
{
OSDeclareAbstractStructors (MyAbstractAudioEngine)
}
In .cpp
OSDefineMetaClassAndAbstractStructors (MyAbstractAudioEngine, IOAudioEngine)
In .h
class MyAudioEngine : public MyAbstractAudioEngine
{
OSDeclareDefaultStructors (MyAudioEngine)
}
In .cpp
OSDefineMetaClassAndStructors (MyAudioEngine, MyAbstractAudioEngine)
All compiles fine. But after I load it, the engine doesn't seem to be
found (by HALLab at least). And when I try to unload it, it fails, with an
error complaining that there is 1 instance of both MyAudioEngine and
MyAbstractAudioEngine.
This seems suspicious to me. The shouldn't be an instance of
MyAbstractAudioEngine - it's abstract. I'm wondering if the reference
counting is getting messed up somewhere.
Any thoughts or suggestions?
--
Andrew White
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden