BASS.NET API for the Un4seen BASS Audio Library

BassWasapiHandler Constructor (Int32, Boolean, Int32, Int32, Single, Single)

BASS.NET API for the Un4seen BASS Audio Library
Creates an instance of the WASAPI handler.

Namespace:  Un4seen.BassWasapi
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public BassWasapiHandler(
	int device,
	bool exclusive,
	int freq,
	int chans,
	float buffer,
	float period
)

Parameters

device
Type: SystemInt32
The device to use... 0 = first device.
exclusive
Type: SystemBoolean
Use the WASAPI device in exclusive mode?
freq
Type: SystemInt32
The sample rate to use (only used in exclusive mode, in shared mode the default mixer sample rate is used).
chans
Type: SystemInt32
The number of channels to use (only used in exclusive mode, in shared mode the default mixer number of channels are used).
buffer
Type: SystemSingle
The buffer size (in seconds) to use (set to 0 to use the default buffer length).
period
Type: SystemSingle
The update period (in seconds) to use (set to 0 to use the default update period).
Exceptions

ExceptionCondition
ArgumentExceptionInvalid device: the Wasapi device is invalid.
NotSupportedExceptionInternal Mixer: the internal mixer cannot be created (e.g. BASS_Init(Int32, Int32, BASSInit, IntPtr, IntPtr) was never called).
Remarks

The instance automatically detects according to the device being used, if this handler will be dealing with as input (capture or loopback) or with output (rendering) endpoint device. You might use the IsInput property to validate this.

Exclusive Mode: The requested number of channels are used. The requested sample rate is used.

Shared Mode: The default mixer number of channels are used. The default mixer sample rate is used (the freq parameter is ignored).

See Also

Reference