/// <summary> /// Get information on a recording device. /// </summary> /// <param name="device">The device to get the information of... 0 = first. </param> /// <returns>Information of device.</returns> public static DeviceInfo GetDeviceInfomation(int device) { DeviceInfo result = new DeviceInfo(); RecordModule.RecordGetDeviceInfoFunction.CheckResult( RecordModule.RecordGetDeviceInfoFunction.Delegate(device, ref result)); return result; }
/// <summary> /// Get information on an output device. /// </summary> /// <param name="device">The device to get the information of... 0 = first. </param> /// <returns>Device information.</returns> /// <exception cref="BassNotLoadedException" accessor="get">Bass DLL not loaded, you must use <see cref="Interop.Core.Initialize"/> to load Bass DLL first.</exception> /// <exception cref="BassErrorException" accessor="get">Some error occur to call a Bass function, check the error code and error message to get more error information.</exception> public static DeviceInfo GetDeviceInfo(int device) { DeviceInfo deviceInfo = new DeviceInfo(); BassCoreModule.GetDeviceInfoFunction.CheckResult(BassCoreModule.GetDeviceInfoFunction.Delegate(device, ref deviceInfo)); return deviceInfo; }