BASS.NET API for the Un4seen BASS Audio Library

BassAsioBASS_ASIO_Lock Method

BASS.NET API for the Un4seen BASS Audio Library
Locks the device to the current thread.

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

[DllImportAttribute("bassasio")]
public static int BASS_ASIO_Lock(
	bool dolock
)

Parameters

dolock
Type: SystemBoolean
If , unlock the device, else lock it.

Return Value

Type: Int32
If successful, then is returned, else is returned. Use BASS_ASIO_ErrorGetCode to get the error code.
Remarks

Locking a device prevents other threads from performing most functions on it, including the channel processing. Other threads wanting to access a locked device will block until it is unlocked, so it should only be locked very briefly. A device must be unlocked in the same thread that it was locked.

ERROR CODEDescription
BASS_ERROR_INITBASS_ASIO_Init(Int32, BASSASIOInit) has not been successfully called.

See Also

Reference