Hello,
I do not understand why the properties NumberOfInputChannel NumberofOutputChannel ASIO drivers and was always zero while the function getChannels is correct.
So I added a few lines in the class ASIOOut, function InifromName,
and I added two property CapacityNumberOfOutputChannels ,CapacityNumberOfInputChannels
private void initFromName(String driverName)
{
// Get the basic driver
ASIODriver basicDriver = ASIODriver.GetASIODriverByName(driverName);
///////////////////////////////////////////// Add Channels Number
int nbchannelin;
int nbchannelout;
basicDriver.getChannels(out nbchannelin, out nbchannelout);
CapacityNumberOfInputChannels = nbchannelin;
CapacityNumberOfOutputChannels = nbchannelout;
////////////////////////////////////////////// End Add
// Instantiate the extended driver
driver = new ASIODriverExt(basicDriver);
this.ChannelOffset = 0;
}
public int CapacityNumberOfOutputChannels { get; private set; }
public int CapacityNumberOfInputChannels { get; private set; }
there is little to be another way for these parameters!
I do not understand why the properties NumberOfInputChannel NumberofOutputChannel ASIO drivers and was always zero while the function getChannels is correct.
So I added a few lines in the class ASIOOut, function InifromName,
and I added two property CapacityNumberOfOutputChannels ,CapacityNumberOfInputChannels
private void initFromName(String driverName)
{
// Get the basic driver
ASIODriver basicDriver = ASIODriver.GetASIODriverByName(driverName);
///////////////////////////////////////////// Add Channels Number
int nbchannelin;
int nbchannelout;
basicDriver.getChannels(out nbchannelin, out nbchannelout);
CapacityNumberOfInputChannels = nbchannelin;
CapacityNumberOfOutputChannels = nbchannelout;
////////////////////////////////////////////// End Add
// Instantiate the extended driver
driver = new ASIODriverExt(basicDriver);
this.ChannelOffset = 0;
}
public int CapacityNumberOfOutputChannels { get; private set; }
public int CapacityNumberOfInputChannels { get; private set; }
there is little to be another way for these parameters!