Copyright © 2005-2016 MultiMedia Soft

ASIO.DeviceMonoToStereoSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Tells to the ASIO device to reproduce mono streams as stereo.

 

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 DeviceMonoToStereoSet (

nDeviceIndex as Int16,

bMonoToStereo as Boolean

) as enumErrorCodes


 

[C#]

public enumErrorCodes DeviceMonoToStereoSet (

Int16 nDeviceIndex,

bool bMonoToStereo

);


 

[C++]

public: enumErrorCodes DeviceMonoToStereoSet (

Int16 nDeviceIndex,

bool bMonoToStereo

);


 

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.

bMonoToStereo

Boolean value that specifies if mono streams must be rendered as stereo.

Supported values are the following:

Mnemonic constant

Meaning

false (default)

Mono streams are reproduced in mono on a single ASIO channel.

true

Mono streams are reproduced in stereo on two ASIO channels. This option should be used ONLY when dealing with mono streams: the quality of the output is not guaranteed in case stereo streams should be played by players attached to this output device.

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.NOERROR (0)

The method call was successful.