BASS_ASIO_Start

Starts the device.

BOOL BASS_ASIO_Start(
    DWORD buflen,
    DWORD threads
);

Parameters

buflenBuffer length in samples... 0 = use current length.
threadsThe maximum number of processing threads to use... 0 = use current number.

Return value

If successful, then TRUE is returned, else FALSE is returned. Use BASS_ASIO_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_INITBASS_ASIO_Init has not been successfully called.
BASS_ERROR_ALREADYThe device has already been started.
BASS_ERROR_NOCHANNo channels have been enabled.
BASS_ERROR_UNKNOWNSome other mystery problem!

Remarks

Before starting the device, channels must be enabled using BASS_ASIO_ChannelEnable or BASS_ASIO_ChannelEnableBASS. Once started, no more channels can be enabled until the device is stopped using BASS_ASIO_Stop.

The default number of processing threads is 1, which means that the enabled channels' ASIOPROC functions get called in series (starting with the lowest input channel). Multiple channels can be processed in parallel if multiple threads are created for that purpose via the threads parameter. All input channels will be processed before any output channels are, so that full duplex is unaffected. The number of threads is automatically capped at the number required to process all enabled channels simultaneously.

See also

BASS_ASIO_ChannelEnable, BASS_ASIO_ChannelGetLevel, BASS_ASIO_ChannelIsActive, BASS_ASIO_ChannelPause, BASS_ASIO_GetLatency, BASS_ASIO_GetInfo, BASS_ASIO_IsStarted, BASS_ASIO_Stop