public AsioOut(int driverIndex) { this.syncContext = SynchronizationContext.Current; string[] driverNames = AsioOut.GetDriverNames(); if (driverNames.Length == 0) { throw new ArgumentException("There is no ASIO Driver installed on your system"); } if (driverIndex < 0 || driverIndex > driverNames.Length) { throw new ArgumentException(string.Format("Invalid device number. Must be in the range [0,{0}]", driverNames.Length)); } this.driverName = driverNames[driverIndex]; this.InitFromName(this.driverName); }
public static bool isSupported() { return(AsioOut.GetDriverNames().Length > 0); }