/// <summary> /// Inits the driver from the asio driver name. /// </summary> /// <param name="driverName">Name of the driver.</param> private void InitFromName(String driverName) { // Get the basic driver ASIODriver basicDriver = ASIODriver.GetASIODriverByName(driverName); // Instantiate the extended driver driver = new ASIODriverExt(basicDriver); this.ChannelOffset = 0; }
/// <summary> /// Dispose /// </summary> public void Dispose() { if (driver != null) { if (playbackState != PlaybackState.Stopped) { driver.Stop(); } driver.ReleaseDriver(); driver = null; } }