Exemple #1
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);
        }
Exemple #2
0
        public static bool BASS_CD_GetInfo(int drive, BASS_CD_INFO info)
        {
            bool flag = BassCd.BASS_CD_GetInfoInternal(drive, ref info._internal);

            if (flag)
            {
                info.vendor   = Utils.IntPtrAsStringAnsi(info._internal.vendor);
                info.product  = Utils.IntPtrAsStringAnsi(info._internal.product);
                info.rev      = Utils.IntPtrAsStringAnsi(info._internal.rev);
                info.letter   = info._internal.letter;
                info.rwflags  = info._internal.rwflags;
                info.canopen  = info._internal.canopen;
                info.canlock  = info._internal.canlock;
                info.maxspeed = info._internal.maxspeed;
                info.cache    = info._internal.cache;
                info.cdtext   = info._internal.cdtext;
            }
            return(flag);
        }