GetInputDeviceType method |
![]() ![]() ![]() |
Remarks
Obtains the type of a given input device and if it's a loopback device (*).
IMPORTANT NOTE ABOUT THE WINDOWS VERSION: This method is only intended for usage with Windows Vista and later versions; for Windows XP use the GetInputDeviceChannelType method. |
(*) Loopback devices are recording devices, available starting from Windows Vista, that capture the mixing of all of the audio streams being rendered by a specific render device, also if audio streams are being played by third-party multimedia application like Windows Media Player: each render device always has a corresponding loopback device.
Syntax
[Visual Basic] control.GetInputDeviceType ( nInputDevice as integer, nDeviceType as enumCoreAudioDeviceTypes, bIsLoopback as enumBoolean ) as enumErrorCodes |
[C++] short control.GetInputDeviceType ( short nInputDevice, long *nDeviceType, long *bIsLoopback ); |
Parameter |
Description |
|||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||
nInputDevice |
Number representing the zero-based index of the input device |
|||||||||||||||||||||||||||||||||||||||
nDeviceType |
Reference that, on return from the method call, will contain the type of input device. Supported values are the following:
|
|||||||||||||||||||||||||||||||||||||||
bIsLoopback |
Reference that, on return from the method call, will tell if the device is a loopback. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.ERR_NOERROR (0) |
The master volume has been changed correctly |