Sets the read offset of a drive.
Namespace: Un4seen.Bass.AddOn.Cd
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("basscd")] public static bool BASS_CD_SetOffset( int drive, int offset )
Parameters
- drive
- Type: SystemInt32
The drive... 0 = the first drive. - offset
- Type: SystemInt32
The offset (in samples; bytes/4) to set.
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
When a negative offset is used, reading the beginning of the first track will require accessing the lead-in, and when a positive offset is used, reading the end of the last track will require accessing the lead-out. The drive may not support that (overreading), in which case those parts will be replaced with silence.
Changes do not affect an existing CD stream, unless BASS_CD_StreamSetTrack(Int32, Int32) is called (and any sub-channel/C2 reading is using a CDDATAPROC).
See Also