BASS.NET API for the Un4seen BASS Audio LibraryBassCd ClassBASS.NET API for the Un4seen BASS Audio Library
BASS.NET API wrapper for BASSCD.DLL

Requires: basscd.dll - CD Audio Tracks (CD) Add-On - available @ www.un4seen.com.

Inheritance Hierarchy

SystemObject
  Un4seen.Bass.AddOn.CdBassCd

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

public sealed class BassCd

The BassCd type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCode exampleBASS_CD_Analog_GetPosition(Int32)
Retrieves the current position and track on a drive.
Public methodStatic memberCode exampleBASS_CD_Analog_GetPosition(Int32, Int32)
Retrieves the current position on a drive in seconds.
Public methodStatic memberBASS_CD_Analog_IsActive
Checks if analog playback is in progress on a drive.
Public methodStatic memberCode exampleBASS_CD_Analog_Play(Int32, Int32, Double)
Starts analog playback of an audio CD track.
Public methodStatic memberCode exampleBASS_CD_Analog_Play(Int32, Int32, Int32)
Starts analog playback of an audio CD track.
Public methodStatic memberCode exampleBASS_CD_Analog_PlayFile(String, Double)
Starts analog playback of an audio CD track, using a CDA file on the CD.
Public methodStatic memberCode exampleBASS_CD_Analog_PlayFile(String, Int32)
Starts analog playback of an audio CD track, using a CDA file on the CD.
Public methodStatic memberBASS_CD_Analog_Stop
Stops analog playback on a drive.
Public methodStatic memberCode exampleBASS_CD_Door
Opens, closes, locks or unlocks a drive door.
Public methodStatic memberBASS_CD_DoorIsLocked
Checks if a drive door/tray is locked.
Public methodStatic memberBASS_CD_DoorIsOpen
Checks if a drive door/tray is open.
Public methodStatic memberBASS_CD_GetCache
Gets the read cache of a CD drive.
Public methodStatic memberBASS_CD_GetDriveCount
Returns the total number of available CD drives.
Public methodStatic memberBASS_CD_GetDriveCount(Boolean)
Returns the total number of available CD drives.
Public methodStatic memberCode exampleBASS_CD_GetID
Retrieves identification info from the CD in a drive.
Public methodStatic memberCode exampleBASS_CD_GetIDText
Retrieves CD-Text identification info from the CD in a drive (BASS_CDID_TEXT).
Public methodStatic memberCode exampleBASS_CD_GetInfo(Int32)
Retrieves information on a drive.
Public methodStatic memberCode exampleBASS_CD_GetInfo(Int32, Boolean)
Retrieves information on a drive.
Public methodStatic memberCode exampleBASS_CD_GetInfo(Int32, BASS_CD_INFO)
Retrieves information on a drive.
Public methodStatic memberBASS_CD_GetInfos
Returns all available CD drive information.
Public methodStatic memberBASS_CD_GetInfos(Boolean)
Returns all available CD drive information.
Public methodStatic memberBASS_CD_GetISRC
Returns the International Standard Recording Code of a track.
Public methodStatic memberBASS_CD_GetSpeed
Retrieves the current read speed setting of a drive.
Public methodStatic memberBASS_CD_GetSpeedFactor
Retrieves the current read speed factor of a drive.
Public methodStatic memberCode exampleBASS_CD_GetTOC(Int32, BASSCDTOCMode)
Retrieves the TOC from the CD in a drive.
Public methodStatic memberCode exampleBASS_CD_GetTOC(Int32, BASSCDTOCMode, BASS_CD_TOC)
Retrieves the TOC from the CD in a drive.
Public methodStatic memberBASS_CD_GetTrackLength
Retrieves the length (in bytes) of a track.
Public methodStatic memberBASS_CD_GetTrackLengthSeconds
Retrieves the length (in seconds) of a track.
Public methodStatic memberCode exampleBASS_CD_GetTrackPregap
Retrieves the pregap length (in bytes) of a track.
Public methodStatic memberBASS_CD_GetTracks
Retrieves the number of tracks on the CD in a drive.
Public methodStatic memberBASS_CD_IsReady
Checks if there is a CD ready in a drive.
Public methodStatic memberBASS_CD_Release
Releases a drive to allow other applications to access it.
Public methodStatic memberBASS_CD_SetCache
Sets the read cache of a CD drive.
Public methodStatic memberBASS_CD_SetInterface
Sets the interface to use to access CD drives
Public methodStatic memberBASS_CD_SetOffset
Sets the read offset of a drive.
Public methodStatic memberBASS_CD_SetSpeed(Int32, Int32)
Sets the read speed of a drive in KB/s.
Public methodStatic memberBASS_CD_SetSpeed(Int32, Single)
Sets the read speed of a drive.
Public methodStatic memberCode exampleBASS_CD_StreamCreate
Creates a sample stream from an audio CD track.
Public methodStatic memberBASS_CD_StreamCreateEx
Creates a sample stream from an audio CD track, optionally providing a callback function to receive sub-channel data and/or C2 error info.
Public methodStatic memberBASS_CD_StreamCreateFile
Creates a sample stream from an audio CD track, using a CDA file on the CD.

This overload implements Unicode filenames. The BASS_UNICODE flag will be added automatically, if not set.

Public methodStatic memberBASS_CD_StreamCreateFileEx
Creates a sample stream from an audio CD track, using a CDA file on the CD, optionally providing a callback function to receive sub-channel data and/or C2 error info.

This overload implements Unicode filenames. The BASS_UNICODE flag will be added automatically, if not set.

Public methodStatic memberCode exampleBASS_CD_StreamGetTrack
Retrieves the drive and track number of a CD stream.
Public methodStatic memberCode exampleBASS_CD_StreamSetTrack
Changes the track of a CD stream.
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 memberSupportedStreamExtensions
Supported file extensions of the basscd.dll
Public fieldStatic memberSupportedStreamName
Supported file format name of the basscd.dll
Top
Remarks

BASSCD is an extension to the BASS audio library, enabling the streaming and ripping of CD audio tracks.

The CD format is used in very much the same way as any of the built-in BASS stream formats - simply call the CD stream creation function instead of the BASS built-in functions. The BASS plugin system (see BASS_PluginLoad(String)) is also supported for CDA files.

Plus there are many additional CD drive, digital as well as analog related methods.

See Also

Reference