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, properties that are functional.

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);

NumberOfInputChannels = nbchannelin;
NumberOfOutputChannels = nbchannelout;

// Instantiate the extended driver
driver = new ASIODriverExt(basicDriver);
this.ChannelOffset = 0;
}

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>