Пример #1
0
        /// <summary>
        /// Check if the tuner is a particular tuner type.
        /// </summary>
        /// <param name="checkTunerType">The tuner type.</param>
        /// <returns>True if the tuner type is supported; false otherwise.</returns>
        public bool Supports(TunerType checkTunerType)
        {
            switch (checkTunerType)
            {
            case TunerType.Satellite:
                return(Supports(TunerNodeType.Satellite));

            case TunerType.Terrestrial:
                return(Supports(TunerNodeType.Terrestrial));

            case TunerType.Cable:
                return(Supports(TunerNodeType.Cable));

            case TunerType.ATSC:
                return(Supports(TunerNodeType.ATSC));

            case TunerType.ClearQAM:
                return(Supports(TunerNodeType.Cable));

            case TunerType.ISDBS:
                return(Supports(TunerNodeType.ISDBS));

            case TunerType.ISDBT:
                return(Supports(TunerNodeType.ISDBT));

            default:
                return(Supports(TunerNodeType.Satellite));
            }
        }
Пример #2
0
        /// <summary>
        /// Creates a tuner.
        /// </summary>
        /// <param name="device">The parental Video4Linux device.</param>
        /// <param name="index">The index of the tuner.</param>
        /// <param name="type">The type of the tuner.</param>
        internal Tuner(Adapter adapter, uint index, TunerType type)
        {
            this.adapter = adapter;

            tuner       = new v4l2_tuner();
            tuner.index = index;
            tuner.type  = type;
            getTuner();
        }
Пример #3
0
        /// <summary>
        /// Creates a tuner.
        /// </summary>
        /// <param name="device">The parental Video4Linux device.</param>
        /// <param name="index">The index of the tuner.</param>
        /// <param name="type">The type of the tuner.</param>
        internal Tuner(Adapter adapter, uint index, TunerType type)
        {
            this.adapter = adapter;

            tuner = new v4l2_tuner();
            tuner.index = index;
            tuner.type = type;
            getTuner();
        }
Пример #4
0
 public static Dictionary<string, Dictionary<string, List<string>>> GetFrequencies(TunerType type)
 {
     switch (type)
     {
         case TunerType.DVBT:
             if (dvbtChannels == null)
                 Read("\\Transponders\\TerFiles\\", "TERTYPE", out dvbtChannels);
             return dvbtChannels;
         case TunerType.DVBC:
             if (dvbcChannels == null)
                 Read("\\Transponders\\CabFiles\\", "CABTYPE", out dvbcChannels);
             return dvbcChannels;
         case TunerType.DVBS:
             if (dvbsChannels == null)
                 Read("\\Transponders\\SatFiles\\", "SATTYPE", out dvbsChannels);
             return dvbsChannels;
         case TunerType.Analogic:
             return null;
     }
     return null;
 }
Пример #5
0
 /// <summary>
 /// Check if the tuner is a particular tuner type.
 /// </summary>
 /// <param name="checkTunerType">The tuner type.</param>
 /// <returns>True if the tuner type is supported; false otherwise.</returns>
 public bool Supports(TunerType checkTunerType)
 {
     switch (checkTunerType)
     {
         case TunerType.Satellite:
             return (Supports(TunerNodeType.Satellite));
         case TunerType.Terrestrial:
             return (Supports(TunerNodeType.Terrestrial));
         case TunerType.Cable:
             return (Supports(TunerNodeType.Cable));
         case TunerType.ATSC:
             return (Supports(TunerNodeType.ATSC));
         case TunerType.ClearQAM:
             return (Supports(TunerNodeType.Cable));
         case TunerType.ISDBS:
             return (Supports(TunerNodeType.ISDBS));
         case TunerType.ISDBT:
             return (Supports(TunerNodeType.ISDBT));
         default:
             return (Supports(TunerNodeType.Satellite));
     }
 }
Пример #6
0
        public static Dictionary <string, Dictionary <string, List <string> > > GetFrequencies(TunerType type)
        {
            switch (type)
            {
            case TunerType.DVBT:
                if (dvbtChannels == null)
                {
                    Read("\\Transponders\\TerFiles\\", "TERTYPE", out dvbtChannels);
                }
                return(dvbtChannels);

            case TunerType.DVBC:
                if (dvbcChannels == null)
                {
                    Read("\\Transponders\\CabFiles\\", "CABTYPE", out dvbcChannels);
                }
                return(dvbcChannels);

            case TunerType.DVBS:
                if (dvbsChannels == null)
                {
                    Read("\\Transponders\\SatFiles\\", "SATTYPE", out dvbsChannels);
                }
                return(dvbsChannels);

            case TunerType.Analogic:
                return(null);
            }
            return(null);
        }
Пример #7
0
 public TunerTypeEx(TunerType channelType)
 {
     this.channelType = channelType;
 }
Пример #8
0
 public TunerTypeEx(TunerType channelType)
 {
     this.channelType = channelType;
 }