Esempio n. 1
0
        public static int BASS_CD_GetDriveCount(bool release)
        {
            int num = 0;

            while (BassCd.BASS_CD_GetInfo(num, release) != null)
            {
                num++;
            }
            Bass.BASS_GetCPU();
            return(num);
        }
Esempio n. 2
0
        public static BASS_CD_INFO BASS_CD_GetInfo(int drive, bool release)
        {
            BASS_CD_INFO bass_CD_INFO = new BASS_CD_INFO();

            if (BassCd.BASS_CD_GetInfo(drive, bass_CD_INFO))
            {
                if (release)
                {
                    BassCd.BASS_CD_Release(drive);
                }
                return(bass_CD_INFO);
            }
            return(null);
        }
Esempio n. 3
0
        public static BASS_CD_INFO[] BASS_CD_GetInfos(bool release)
        {
            List <BASS_CD_INFO> list = new List <BASS_CD_INFO>();
            int          num         = 0;
            BASS_CD_INFO item;

            while ((item = BassCd.BASS_CD_GetInfo(num, release)) != null)
            {
                list.Add(item);
                num++;
            }
            Bass.BASS_GetCPU();
            return(list.ToArray());
        }
Esempio n. 4
0
 public static BASS_CD_INFO BASS_CD_GetInfo(int drive)
 {
     return(BassCd.BASS_CD_GetInfo(drive, true));
 }