View Single Post
Old 01-08-2012, 08:07 AM   #82
Human being with feelings
Tale's Avatar
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,005

You could check which input channels are connected. If your plug-in's PLUG_CHANNEL_IO is "1-1 2-2", and the 2nd channel is not connected, then you have mono input:

void MyPlug::ProcessDoubleReplacing(double** inputs, double** outputs, int nFrames)
	bool isMono = !IsInChannelConnected(1);
	if (isMono)
		// Mono processing
		// Stereo processing
Martinic Kee Bass - Scanner Vibrato - Elka Panther - Tale's JSFX Pack

Last edited by Tale; 01-09-2012 at 03:31 PM. Reason: Oops, fixed curly brackets
Tale is offline   Reply With Quote