次の方法で共有


IAMTuner::put_Channel

 
Microsoft DirectShow 9.0

IAMTuner::put_Channel

The put_Channel method sets the TV channel.

Syntax

  HRESULT put_Channel(
  long lChannel,
  long lVideoSubChannel,
  long lAudioSubChannel
);

Parameters

lChannel

[in] TV channel number.

lVideoSubChannel

Predefined video subchannel value. Specify AMTUNER_SUBCHAN_NO_TUNE for no tuning or AMTUNER_SUBCHAN_DEFAULT for default subchannel. Meaningful only for satellite broadcasts.

lAudioSubChannel

Predefined audio subchannel value. Specify AMTUNER_SUBCHAN_NO_TUNE for no tuning or AMTUNER_SUBCHAN_DEFAULT for default subchannel. Meaningful only for satellite broadcasts.

Return Values

Returns an HRESULT value that depends on the implementation of the interface.

Remarks

This method handles the channel-to-frequency function call that converts the TV channel to a TV frequency. For a list of frequencies for channels, see International Analog TV Tuning.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also