Esempio n. 1
0
 /// <summary>
 /// Retrieves the TOC from the CD in a drive.
 /// </summary>
 /// <param name="Drive">The drive to get info on... 0 = the first drive.</param>
 /// <param name="Mode">TOC Mode.</param>
 /// <returns>If successful, an instance of the <see cref="TOC" /> strucure is returned. Throws <see cref="BassException"/> on Error.</returns>
 /// <remarks>This function gives the TOC in the form that it is delivered by the drive, except that the byte order may be changed to match the system's native byte order (the TOC is originally big-endian).</remarks>
 /// <exception cref="Errors.Device"><paramref name="Drive" /> is not valid.</exception>
 /// <exception cref="Errors.NoCD">There's no CD in the drive.</exception>
 public static TOC GetTOC(int Drive, TOCMode Mode)
 {
     if (!GetTOC(Drive, Mode, out var toc))
     {
         throw new BassException();
     }
     return(toc);
 }
Esempio n. 2
0
 public static extern bool GetTOC(int Drive, TOCMode Mode, out TOC TOC);