コード例 #1
0
 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);
 }
コード例 #2
0
 public static bool isSupported()
 {
     return(AsioOut.GetDriverNames().Length > 0);
 }