channels frequency override
Overview Selecting a TV channel in the proper country code and tuner input type automatically selects and tune the proper TV frequency, however, in some cases it is necessary to adjust it manually.
Setting a frequency override for a channel This will affect the TV channel for the current country code and tuner input type only.
-
assign the TV country code to TVCountryCode,
-
assign the TV input type to TVTunerInputType,
- invoke TVSetChannelFrequencyOverride and pass the new TV frequency.
To retrieve the default frequency for the TV channel before invoking this function, simply assign the channel number to the TVChannel property and the OnTVChannelSelected event will return the frequency (the event is synchrone).
Enabling / disabling frequency overrides It is possible to disable the use of frequency overrides, without deleting them from the registry, by disabling TVUseFrequencyOverrides.
Clearing a frequency override for a channel - assign the TV country code to TVCountryCode,
- assign the TV input type to TVTunerInputType,
- invoke TVSetChannelFrequencyOverride and pass "-1" as frequency value.
Retrieving the default and/or override frequency for a channel - assign the TV country code to TVCountryCode,
- assign the TV input type to TVTunerInputType,
-
assign the TV channel to TVChannel,
-
the OnTVChannelSelected event will occur, returning the default frequency as "DefaultFrequency" parameter.
Clearing all the frequency overrides for a given country code and tuner input type - assign the TV country code to TVCountryCode,
- assign the TV input type to TVTunerInputType,
- invoke TVClearFrequencyOverrides.
Reading the frequency override for current selected channel
This information is obtained by invoking GetTVChannelInfo (tci_OverriddenVideoFrequency).