Starts analog playback of an audio CD track, using a CDA file on the CD.
DWORD BASS_CD_Analog_PlayFile( char *file, DWORD pos );
file | The CDA filename... for example, "D:\Track01.cda". |
pos | Position in frames to start playback from. There are 75 frames per second. |
BASS_ERROR_FILEOPEN | The file could not be opened. |
BASS_ERROR_FILEFORM | The file was not recognised as a CDA file. |
BASS_ERROR_DEVICE | The drive could not be found. |
BASS_ERROR_POSITION | pos is invalid. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
In analog playback, the sound bypasses BASS; it goes directly from the CD drive to the soundcard (assuming the drive is cabled up to the soundcard). This means that BASS output does not need to be initialized to use analog playback. It also means it is not possible to apply any DSP/FX to the sound, and nor is it possible to visualise it (unless you record the sound from the soundcard).
Analog playback is not possible while digital streaming is in progress; the streaming will kill the analog playback. So if you wish to switch from digital to analog playback, you should first free the stream using BASS_StreamFree.