Problems with multiple subclasses of IOAudioEngine
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mozilla Thunderbird 0.9 (Macintosh/20041103) 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) Any thoughts or suggestions? -- Andrew White _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Andrew White