Binary Compatibility in AppleUSBAudioPlugin.h
Binary Compatibility in AppleUSBAudioPlugin.h
- Subject: Binary Compatibility in AppleUSBAudioPlugin.h
- From: Robert Kukuchka <email@hidden>
- Date: Mon, 21 Mar 2005 10:11:21 -0800
Hello,
I posted this to the Device Driver list, but I'm hoping maybe someone here might be able to help as well. I'm trying to use the AppleUSBAudioPlugin to perform some DSP on incoming audio streams. For some reason when I inherit from AppleUSBAudioPlugin.h the methods pluginProcessInput() and pluginSetDirection() are considered private, and not public. These two methods were added later to the header using the reserved space area, and for some reason it doesn't seem to be working correctly. I've included the basics of my client header.Thus when AppleUSBAudio.kext calles mPlugin->pluginSetDirection() or ->pluginProcessInput() it's calling the virtual parent functions. Does anyone know why these are not inheriting correctly? I'm in a crunch here, so time is of the essence. All help is greatly appreciated. I'm hoping someone at Apple might be able to lend a hand here.
Cheers
~Rob
#include "AppleUSBAudioPlugin.h"
#include "ProcessFloatSamples.h"
class com_CLIENT_driver_CLIENTUSBAudioPlugin : public AppleUSBAudioPlugin {
OSDeclareDefaultStructors (com_CLIENT_driver_CLIENTUSBAudioPlugin);
private:
ParamStruct mParamStruct; // for filter parameters
StateStruct mStateStruct; // for state variables
UInt32 mSampleRate;
UInt32 mNumChannels;
public:
virtual bool start (IOService * provider);
virtual void stop (IOService * provider);
virtual IOReturn pluginInit (IOService * provider, UInt16 vendorID, UInt16 modelID);
virtual IOReturn pluginStart ();
virtual IOReturn pluginReset ();
virtual IOReturn pluginSetFormat (const IOAudioStreamFormat * const newFormat, const IOAudioSampleRate * const newSampleRate);
virtual IOReturn pluginProcess (float * mixBuf, UInt32 numSampleFrames, UInt32 numChannels);
virtual IOReturn pluginStop ();
virtual IOReturn pluginProcessInput (float * destBuf, UInt32 numSampleFrames, UInt32 numChannels);
virtual IOReturn pluginSetDirection (IOAudioStreamDirection direction);
_______________________________________________
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