Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Edited Issue: ASIO number of channels [16365]

$
0
0
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!

Viewing all articles
Browse latest Browse all 738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>