Copyright © 2006-2019 MultiMedia Soft

ASIO.DeviceRecordParamsSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets parameters for determining how ASIO mono channels are managed during a recording session. Current parameters can be obtained through the ASIO.DeviceRecordParamsGet 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 DeviceRecordParamsSet (

nDeviceIndex as Int16,

bPerformMixOnStereoOut as Boolean,

nMonoChanToStereoOutMode as enumAsioRecordMonoToStereoMode

) as enumErrorCodes


 

[C#]

public enumErrorCodes DeviceRecordParamsSet (

Int16 nDeviceIndex,

bool bPerformMixOnStereoOut,

enumAsioRecordMonoToStereoMode nMonoChanToStereoOutMode

);


 

[C++]

public: enumErrorCodes DeviceRecordParamsSet (

Int16 nDeviceIndex,

bool bPerformMixOnStereoOut,

enumAsioRecordMonoToStereoMode nMonoChanToStereoOutMode

);


 

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 input devices enumerated through the GetInputDevicesCount and GetInputDeviceDesc methods which may contain both DirectSound and ASIO devices.

bPerformMixOnStereoOut

Boolean value that determines if ASIO mono channels are mixed together before being sent to the stereo output.

Supported values are the following:

Mnemonic constant

Meaning

false

Mono channels are kept separated

true (default)

Mono channels are mixed

nMonoChanToStereoOutMode

Value that determines how a single ASIO mono channel is rendered on a stereo output.

Supported values are the following:

Mnemonic constant

Value

Meaning

ASIO_REC_MONO_BOTH_CHANS (default)

0

The ASIO mono channel is rendered on both left and right channels of the stereo output

ASIO_REC_MONO_LEFT_CHAN

1

The ASIO mono channel is rendered on the left channel only of the stereo output

ASIO_REC_MONO_RIGHT_CHAN

2

The ASIO mono channel is rendered on the right channel only of the stereo output

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.