BASS.NET API for the Un4seen BASS Audio Library

BassAsio Class

BASS.NET API for the Un4seen BASS Audio Library
.NET API wrapper for BASSASIO.DLL

Requires: bassasio.dll - ASIO driver library - available @ www.un4seen.com.

Inheritance Hierarchy

SystemObject
  Un4seen.BassAsioBassAsio

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

public sealed class BassAsio

The BassAsio type exposes the following members.

Methods

  NameDescription
Public methodStatic memberBASS_ASIO_AddDevice
Adds a driver to the device list.
Public methodStatic memberCode exampleBASS_ASIO_ChannelEnable
Enable/disable processing of an Asio channel.
Public methodStatic memberBASS_ASIO_ChannelEnableBASS
Enables a channel, and sets it to use a BASS channel.
Public methodStatic memberCode exampleBASS_ASIO_ChannelEnableMirror
Enables an output channel, and makes it mirror another channel.
Public methodStatic memberBASS_ASIO_ChannelGetFormat
Retrieves a channel's sample format.
Public methodStatic memberCode exampleBASS_ASIO_ChannelGetInfo(Boolean, Int32)
Retrieves information on an Asio channel.
Public methodStatic memberCode exampleBASS_ASIO_ChannelGetInfo(Boolean, Int32, BASS_ASIO_CHANNELINFO)
Retrieves information on an Asio channel.
Public methodStatic memberCode exampleBASS_ASIO_ChannelGetLevel
Retrieves the level (peak amplitude) of a channel.
Public methodStatic memberBASS_ASIO_ChannelGetRate
Retrieves a channel's sample rate.
Public methodStatic memberBASS_ASIO_ChannelGetVolume
Retrieves a channel's volume setting.
Public methodStatic memberBASS_ASIO_ChannelIsActive
Checks if a channel is enabled for processing.
Public methodStatic memberCode exampleBASS_ASIO_ChannelJoin
Join a channel to another.
Public methodStatic memberBASS_ASIO_ChannelPause
Suspends processing of a channel (or all channels).
Public methodStatic memberCode exampleBASS_ASIO_ChannelReset
Resets the attributes of a channel (or all channels).
Public methodStatic memberCode exampleBASS_ASIO_ChannelSetFormat
Sets a channel's sample format.
Public methodStatic memberCode exampleBASS_ASIO_ChannelSetRate
Sets a channel's sample rate.
Public methodStatic memberCode exampleBASS_ASIO_ChannelSetVolume
Sets a channel's volume.
Public methodStatic memberBASS_ASIO_CheckRate
Checks if a sample rate is supported by the device.
Public methodStatic memberBASS_ASIO_ControlPanel
Displays the current Asio driver's control panel.
Public methodStatic memberBASS_ASIO_ErrorGetCode
Retrieves the error code for the most recent BASSASIO function call in the current thread.
Public methodStatic memberBASS_ASIO_Free
Releases the Asio device/driver.
Public methodStatic memberBASS_ASIO_Future(Int32, IntPtr)
Provides access to the driver's 'future' function.
Public methodStatic memberBASS_ASIO_Future(BASSASIOFuture, Object)
Provides access to the driver's 'future' function.
Public methodStatic memberBASS_ASIO_GetCPU
Retrieves the current CPU usage of BASSASIO.
Public methodStatic memberBASS_ASIO_GetDevice
Retrieves the Asio device setting in the current thread.
Public methodStatic memberBASS_ASIO_GetDeviceCount
Returns the total number of available Asio devices.
Public methodStatic memberCode exampleBASS_ASIO_GetDeviceInfo(Int32)
Retrieves information on an Asio device.
Public methodStatic memberCode exampleBASS_ASIO_GetDeviceInfo(Int32, BASS_ASIO_DEVICEINFO)
Retrieves information on an Asio device.
Public methodStatic memberBASS_ASIO_GetDeviceInfos
Returns all available Asio devices.
Public methodStatic memberCode exampleBASS_ASIO_GetInfo
Retrieves information on the Asio device being used.
Public methodStatic memberCode exampleBASS_ASIO_GetInfo(BASS_ASIO_INFO)
Retrieves information on the Asio device being used.
Public methodStatic memberCode exampleBASS_ASIO_GetLatency
Retrieves the latency of input or output channels of the current Asio device
Public methodStatic memberBASS_ASIO_GetRate
Retrieves the current Asio device's sample rate.
Public methodStatic memberCode exampleBASS_ASIO_GetVersion
Retrieves the version number of the BASSASIO.DLL that is loaded.
Public methodStatic memberCode exampleBASS_ASIO_GetVersion(Int32)
Retrieves the version of the BASSASIO.DLL that is loaded.
Public methodStatic memberBASS_ASIO_Init
Initializes an Asio device/driver.
Public methodStatic memberBASS_ASIO_IsStarted
Checks, if the current Asio device has been started.
Public methodStatic memberBASS_ASIO_Lock
Locks the device to the current thread.
Public methodStatic memberBASS_ASIO_Monitor
Set the direct input monitoring state.
Public methodStatic memberCode exampleBASS_ASIO_SetDevice
Sets the device to use for subsequent calls in the current thread.
Public methodStatic memberBASS_ASIO_SetDSD
Sets the device's sample format to DSD or PCM.
Public methodStatic memberBASS_ASIO_SetNotify
Sets a notification callback on the ASIO driver.
Public methodStatic memberCode exampleBASS_ASIO_SetRate
Sets the Asio device's sample rate.
Public methodStatic memberCode exampleBASS_ASIO_Start(Int32)
Starts the current Asio device.
Public methodStatic memberCode exampleBASS_ASIO_Start(Int32, Int32)
Starts the current Asio device.
Public methodStatic memberBASS_ASIO_Stop
Stops the current Asio device.
Public methodStatic memberFreeMe
Unloads this library. This must be called when you have previously called LoadMe.
Public methodStatic memberCode exampleLoadMe
Loads this library into memory. The library will be search in the current application directory.
Public methodStatic memberCode exampleLoadMe(String)
Loads this library into memory. The library will be loaded from the given path.
Top
Fields

  NameDescription
Public fieldStatic memberBASSASIOVERSION
Current BASSASIO version (without minor revision).
Top
Remarks

BASSASIO is basically a wrapper for ASIO drivers, with the addition of channel joining, format conversion and resampling.

BASSASIO requires a soundcard with ASIO drivers installed. It also makes use of SSE2 and 3DNow optimizations, but is fully functional without them. BASS is not required by BASSASIO, but BASS can of course be used to decode, apply DSP/FX, etc.

Note, that Bass.Net automatically tries to initialize BASSASIO to use with unicode.

See Also

Reference