Beispiel #1
0
void	SDP_PlugIn::DeviceGetPropertyData(UInt32 inChannel, Boolean isInput, AudioDevicePropertyID inPropertyID, UInt32& ioPropertyDataSize, void* outPropertyData) const
{
	switch(inPropertyID)
	{
		case kSampleDriverPlugInDevicePropertyFoo:
			{
				//	make sure the size is right
				ThrowIf(ioPropertyDataSize != DeviceGetPropertyDataSize(inChannel, isInput, inPropertyID), CAException(kAudioHardwareBadPropertySizeError), "SDP_PlugIn::DeviceGetPropertyData: wrong data size for kSampleDriverPlugInDevicePropertyFoo");
				
				//	set the return value
				*((UInt32*)outPropertyData) = GetFoo(mHostInfo.mIOAudioEngine);
			}
			break;
		
		default:
			HP_DriverPlugIn::DeviceGetPropertyData(inChannel, isInput, inPropertyID, ioPropertyDataSize, outPropertyData);
			break;
	};
}
Beispiel #2
0
int main()
{
    Foo f = GetFoo();
}