Emagic VST2AU SDK and multi-output MusicDevice
Emagic VST2AU SDK and multi-output MusicDevice
- Subject: Emagic VST2AU SDK and multi-output MusicDevice
- From: Malcolm Haylock <email@hidden>
- Date: Wed, 30 Apr 2003 09:07:10 +0100
Hi everyone,
I've sent the following message to Emagic developer support several
times since last November but have never received a reply. Has anyone
found the same problem and a workaround? Everything works fine with 2
outputs only.
I'm having a problem porting a multi-out VST plugin to AU using
Emagic's VST2AU SDK (LPAUSDK5).
You can duplicate the problem using the XSynth demo plugin provided
in the SDK. This will cause a segmentation fault as it seems Logic
has only allocated space for stereo outputs.
1) Set kNumOutputs = 8 in vstxsynth.h
2) Set the 'processReplacing' routine to:
//-----------------------------------------------------------------------------------------
void VstXSynth::processReplacing (float **inputs, float **outputs,
long sampleFrames)
{
float* out1 = outputs[0];
float* out2 = outputs[1];
float* out3 = outputs[2];
float* out4 = outputs[3];
float* out5 = outputs[4];
float* out6 = outputs[5];
float* out7 = outputs[6];
float* out8 = outputs[7];
while (--sampleFrames >= 0)
{
*out1++ = 0;
*out2++ = 0;
*out3++ = 0;
*out4++ = 0;
*out5++ = 0;
*out6++ = 0;
*out7++ = 0;
*out8++ = 0;
}
}
Thanks,
Malcolm Haylock
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.