Assembly: Bass.Net (in Bass.Net.dll) Version: 184.108.40.206
[DllImportAttribute("bassasio")] public static bool BASS_ASIO_ChannelPause( bool input, int channel )
<DllImportAttribute("bassasio">] Public Shared Function BASS_ASIO_ChannelPause ( input As Boolean, channel As Integer ) As Boolean
- Type: SystemBoolean
Dealing with an input channel? = an output channel.
- Type: SystemInt32
The input/output channel number... 0 = first.
Return ValueType: Boolean
If succesful, then is returned, else is returned. Use BASS_ASIO_ErrorGetCode to get the error code.
Channels can only be disabled when the device is stopped. When you want to stop processing only some of the enabled channels, there are few ways that could be done. You could quickly stop the device, disable the unwanted channels, and restart the device. In the case of output channels, you could fill the channels' buffers with silence (0s) in the ASIOPROC. Or you could pause the channels, using this function. The less channels BASSASIO has to process, the less CPU it'll use, so stopping and restarting the device would be the most efficient, but that could cause a slight break in the sound of the other channels. Filling the buffers with silence is the least efficient, as BASSASIO will still process the data as if it was "normal", but it does mean that other channels are unaffected. Pausing is a compromise between the two - the channels will still be enabled, but BASSASIO will bypass any additional processing (resampling/etc) that may normally be required.
Use BASS_ASIO_ChannelReset(Boolean, Int32, BASSASIOReset) to resume processing of a paused channel.
|BASS_ERROR_INIT||BASS_ASIO_Init(Int32, BASSASIOInit) has not been successfully called.|
|BASS_ERROR_ILLPARAM||The input and channel combination is invalid.|