BASS.NET API for the Un4seen BASS Audio LibraryBassAsioBASS_ASIO_SetDSD Method BASS.NET API for the Un4seen BASS Audio Library
Sets the device's sample format to DSD or PCM.

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

[DllImportAttribute("bassasio.dll", CharSet = CharSet.Auto)]
public static bool BASS_ASIO_SetDSD(
	bool dsd
)

Parameters

dsd
Type: SystemBoolean
Set the sample format to DSD?

Return Value

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

When a device is switched between PCM and DSD formats, the ASIO channels' format will change accordingly, as reported by BASS_ASIO_ChannelGetInfo(Boolean, Int32, BASS_ASIO_CHANNELINFO). Any BASS_ASIO_ChannelSetFormat(Boolean, Int32, BASSASIOFormat) and BASS_ASIO_ChannelSetRate(Boolean, Int32, Double) settings that have been applied will be reset to defaults. Other channel settings are unchanged.

ERROR CODEDescription
BASS_ERROR_INITBASS_ASIO_Init(Int32, BASSASIOInit) has not been successfully called.
BASS_ERROR_NOTAVAILDSD is not supported by the device/driver.
BASS_ERROR_UNKNOWNSome other mystery problem.

See Also

Reference