Resets the attributes of a channel (or all channels).
Namespace: Un4seen.BassAsio
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("bassasio")] public static bool BASS_ASIO_ChannelReset( bool input, int channel, BASSASIOReset flags )
Parameters
- input
- Type: SystemBoolean
Dealing with an input channel? = an output channel. - channel
- Type: SystemInt32
The input/output channel number... 0 = first, -1 = all channels. - flags
- Type: Un4seen.BassAsioBASSASIOReset
The attributes to reset. A combination of the following (see BASSASIOReset):BASS_ASIO_RESET_ENABLE Disable the channel. BASS_ASIO_RESET_JOIN Unjoin the channel. BASS_ASIO_RESET_PAUSE Unpause the channel. BASS_ASIO_RESET_FORMAT Set the channel's sample format to the native format. BASS_ASIO_RESET_RATE Set the channel's sample rate to the device rate. BASS_ASIO_RESET_VOLUME Set the channel's volume to normal (1.0). BASS_ASIO_RESET_JOINED Also reset any channels that are joined to the specified channel. This can be used in combination with BASS_ASIO_RESET_JOIN to unjoin all channels from the specified one.
Return Value
Type: BooleanIf succesful, then is returned, else is returned. Use BASS_ASIO_ErrorGetCode to get the error code.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_INIT | BASS_ASIO_Init(Int32, BASSASIOInit) has not been successfully called. |
BASS_ERROR_ILLPARAM | The input and channel combination is invalid, or flags is. |
BASS_ERROR_START | The device has been started - it needs to be stopped before disabling or unjoining channels. |
Examples
BassAsio.BASS_ASIO_ChannelReset(false, -1, BASSASIOReset.BASS_ASIO_RESET_ENABLE | BASSASIOReset.BASS_ASIO_RESET_JOIN);
See Also