Platform SDK: Broadcast Architecture |
The MinMaxChannel method returns the lowest and highest channel numbers supported by the device corresponding to the specified tuning space. Visual Basic syntax is shown.
object.MinMaxChannel( lTuningSpace, lChannelMin, lChannelMax )
In the current version of Broadcast Architecture, MinMaxChannel only supports television tuners. If your application calls MinMaxChannel and specifies another type of tuning space, such as for a satellite tuner card, the current implementation of MinMaxChannel returns an error code.
The minimum and maximum channels returned by this method are the same as the values returned by the IAMTVTuner::ChannelsMinMax method of DirectShow.
Windows NT/2000: Unsupported.
Windows 95/98: Requires Windows 98.
Header: Declared in vidsvr.odl.
Import Library: Included as a resource in vid.ocx.
BPCDeviceBase.MinMaxChannel, BPCVid
The following example retrieves the minimum and maximum channel supported by the tuning space identified by the number 3. These values are stored in the variables min
and max
.
Dim min As Long Dim max As Long vid.MinMaxChannel 3, min, max