コード例 #1
0
ファイル: BASS.cs プロジェクト: kirileec/SoundEx
        /// <summary>
        ///     Retrieves information on an output device
        /// </summary>
        /// <param name="device">The device to get the information; 0 = first</param>
        /// <returns>If successful, device information structure is returned, else blank structure is returned</returns>
        public static BASS_DEVICEINFO BASS_GetDeviceInfo(UInt32 device)
        {
            var a = new BASS_DEVICEINFOP();

            if (BASS_GetDeviceInfo(device, ref a))
            {
                var info = new BASS_DEVICEINFO();
                info.name   = Marshal.PtrToStringAnsi(a.name);
                info.driver = Marshal.PtrToStringAnsi(a.driver);
                info.flags  = a.flags;
                return(info);
            }
            return(new BASS_DEVICEINFO());
        }
コード例 #2
0
ファイル: BASS.cs プロジェクト: kirileec/SoundEx
 private static extern bool BASS_GetDeviceInfo(UInt32 device, ref BASS_DEVICEINFOP info);