Copyright © 2005-2020 MultiMedia Soft

ASIO.DeviceGetChannelsCount method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the number of output or input channels for the given ASIO device. The friendly name of each channel can be obtained through the ASIO.DeviceGetChannelDesc method.

 

For further details about the use of ASIO drivers see the ASIOMan class and the How to manage ASIO drivers tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function DeviceGetChannelsCount (

nDeviceIndex as Int16,

bInputChannel as Boolean

) as Int16


 

[C#]

public Int16 DeviceGetChannelsCount (

Int16 nDeviceIndex,

bool bInputChannel

);


 

[C++]

public: Int16 DeviceGetChannelsCount (

Int16 nDeviceIndex,

bool bInputChannel

);


 

Parameter

Description

 

 

nDeviceIndex

Number representing the zero-based index of the ASIO device.

This index is related to available ASIO devices so it must be the related to the enumeration performed through the ASIO.DeviceGetCount and ASIO.DeviceGetDesc methods: it must not be confused with indexes related to generic output devices enumerated through the GetOutputDevicesCount and GetOutputDeviceDesc methods which may contain both DirectSound and ASIO devices.

bInputChannel

Boolean value that specifies if the we want to obtain the number of input or of output channel.

Supported values are the following:

Mnemonic constant

Meaning

false

Output channels

true

Input channels

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

>= 0

The number of available channels