Locks a stream, MOD music or recording channel to the current thread.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- handle
- Type: SystemInt32
The channel handle... a HMUSIC, HSTREAM or HRECORD handle. - state
- Type: SystemBoolean
If , unlock the channel, else lock it.
Return Value
Type: BooleanIf succesful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
Examples
Bass.BASS_ChannelLock(channel, true); // lock channel Bass.BASS_ChannelSetDSP(channel, DspProc1, null, 0); // set 1st DSP Bass.BASS_ChannelSetDSP(channel, DspProc2, null, 0); // set 2nd DSP Bass.BASS_ChannelLock(channel, false); // unlock channel
See Also