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

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:

Code:
void MyPlug::ProcessDoubleReplacing(double** inputs, double** outputs, int nFrames)
{
	bool isMono = !IsInChannelConnected(1);
	if (isMono)
	{
		// Mono processing
	}
	else
	{
		// 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