/// <summary> /// Get names of installed devices. /// インストール済みのデバイス名を得ます。 /// </summary> /// <returns></returns> public static string[] GetDeviceNames() { uint devs = Win32.waveInGetNumDevs(); string[] devNames = new string[devs]; for (uint i = 0; i < devs; i++) { Win32.WaveInCaps caps = new Win32.WaveInCaps(); Win32.waveInGetDevCaps(i, out caps, Win32.WaveInCaps.SizeOfWaveInCaps); devNames[i] = caps.szPname; } return(devNames); }
/// <summary> /// Get names of installed devices. /// �C���X�g�[���ς݂̃f�o�C�X���܂��B /// </summary> /// <returns></returns> public static string[] GetDeviceNames() { uint devs = Win32.waveInGetNumDevs(); string[] devNames = new string[devs]; for (uint i = 0; i < devs; i++) { Win32.WaveInCaps caps = new Win32.WaveInCaps(); Win32.waveInGetDevCaps(i, out caps, Win32.WaveInCaps.SizeOfWaveInCaps); devNames[i] = caps.szPname; } return devNames; }