Ejemplo n.º 1
0
        /// <summary>
        /// Allocates a new instance of HDPVRChannel which handles the new subchannel
        /// </summary>
        /// <returns>handle for to the subchannel</returns>
        private Int32 GetNewSubChannel(IChannel channel)
        {
            int id = _subChannelId++;

            Log.Log.Info("HDPVR: GetNewSubChannel:{0} #{1}", _mapSubChannels.Count, id);
            HDPVRChannel subChannel = new HDPVRChannel(this, _deviceType, id, _filterTsWriter, _graphBuilder);

            subChannel.Parameters     = Parameters;
            subChannel.CurrentChannel = channel;
            _mapSubChannels[id]       = subChannel;
            return(id);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Allocates a new instance of HDPVRChannel which handles the new subchannel
 /// </summary>
 /// <returns>handle for to the subchannel</returns>
 private Int32 GetNewSubChannel(IChannel channel)
 {
   int id = _subChannelId++;
   Log.Log.Info("HDPVR: GetNewSubChannel:{0} #{1}", _mapSubChannels.Count, id);
   HDPVRChannel subChannel = new HDPVRChannel(this, _deviceType, id, _filterTsWriter, _graphBuilder);
   subChannel.Parameters = Parameters;
   subChannel.CurrentChannel = channel;
   _mapSubChannels[id] = subChannel;
   return id;
 }