BASS.NET API for the Un4seen BASS Audio LibraryBassAsioHandlerSetMirror Method BASS.NET API for the Un4seen BASS Audio Library
Mirrors the current ASIO Channel to the given output channel.

Namespace: Un4seen.BassAsio
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public bool SetMirror(
	int asioChannel
)

Parameters

asioChannel
Type: SystemInt32
The output channel number... 0 = first.

Return Value

Type: Boolean
On success is returned, else will be returned (use BASS_ASIO_ErrorGetCode to retrieve the error code).
Remarks

This function allows the input or output Channel to be duplicated in other output channel. Mirroring is only available on the same ASIO Device!

If you need to monitor an input channel on a different ASIO device, you might use the SetFullDuplex(Int32, Int32) method instead.

The following will be done internally:

1. The ASIO Device will only be stopped, if already started - it will automatically be started again if needed.

2. The ASIO output asioChannel will be enabled and mirrored (only if not already enabled). All according to the given ChannelNumChans, meaning starting with the asioChannel this one and the next channels will be used as the mirror channels.

To disable and remove the mirror option call RemoveMirror.

Examples

Automatic use of the BassAsioHandler (recording input, mirrored):
VB
Private _asio As BassAsioHandler
...
' assign ASIO input to the first device and channel (stereo, 32-bit float, 48kHz)
_asio = New BassAsioHandler(True, 0, 0, 2, BASSASIOFormat.BASS_ASIO_FORMAT_FLOAT, 48000)
' set the mirror option to the first ASIO output device and channel
_asio.SetMirror(0)
...
' start ASIO
_asio.Start(0)
...
' remove the mirror when not needed
_asio.RemoveMirror()
...
private BassAsioHandler _asio;
...
// assign ASIO input to the first device and channel (stereo, 32-bit float, 48kHz)
_asio = new BassAsioHandler(true, 0, 0, 2, BASSASIOFormat.BASS_ASIO_FORMAT_FLOAT, 48000);
// set the mirror option to the first ASIO output device and channel
_asio.SetMirror(0);
...
// start ASIO
_asio.Start(0);
...
// remove the mirror when not needed
_asio.RemoveMirror();
...
See Also

Reference