Exemplo n.º 1
0
        public static string BASS_CD_GetISRC(int drive, int track)
        {
            IntPtr intPtr = BassCd.BASS_CD_GetIDPtr(drive, BASSCDId.BASS_CDID_ISRC + track);

            if (intPtr != IntPtr.Zero)
            {
                return(Utils.IntPtrAsStringAnsi(intPtr));
            }
            return(null);
        }
Exemplo n.º 2
0
        public static string BASS_CD_GetID(int drive, BASSCDId id)
        {
            IntPtr intPtr = BassCd.BASS_CD_GetIDPtr(drive, id);

            if (!(intPtr != IntPtr.Zero))
            {
                return(null);
            }
            if (id == BASSCDId.BASS_CDID_CDDB_QUERY || id == BASSCDId.BASS_CDID_CDDB_READ || id == BASSCDId.BASS_CDID_CDDB_READ_CACHE)
            {
                return(Utils.IntPtrAsStringUtf8(intPtr));
            }
            return(Utils.IntPtrAsStringAnsi(intPtr));
        }
Exemplo n.º 3
0
 public static string[] BASS_CD_GetIDText(int drive)
 {
     return(Utils.IntPtrToArrayNullTermAnsi(BassCd.BASS_CD_GetIDPtr(drive, BASSCDId.BASS_CDID_TEXT)));
 }