public int AudioSubChannel { get; } public:property int AudioSubChannel {int get();}
A TunerSubChannel enumeration value if default or not tuned; otherwise the current audio subchannel. For a list of frequencies for channels, refer to the Microsoft documentation on International Analog TV Tuning.
Gets the currently set audio subchannel. This property is valid only for ATSC digital TV broadcasts.
using Leadtools;using Leadtools.MediaFoundation;using LeadtoolsMediaFoundationExamples.Fixtures;public void AudioSubChannelValueExample(){// reference the capture controlCaptureCtrl capturectrl = _form.CaptureCtrl;// output filestring outFile = Path.Combine(LEAD_VARS.MediaDir, "TVTuner_AudioSubChannelValueExample.avi");try{int channel = 6;// try set the digital video capture deviceif (capturectrl.VideoDevices["Analog"] != null)capturectrl.VideoDevices["Analog"].Selected = true;// reference the TV TunerTVTuner tvtuner = capturectrl.TVTuner;// Check if TV tuner is validif (tvtuner != null){tvtuner.SetInputType(0, TunerInputType.Antenna);tvtuner.SetChannel(channel, -1, -1);}// get the current sub channelint audioSubChannel = tvtuner.AudioSubChannel;// set the result to what we expect_result = (audioSubChannel == -1);}catch (Exception){_result = false;}// we'll loop on the state and pump messages for this example.// but you should not need to if running from a Windows Forms application.while (capturectrl.State == CaptureState.Running)Application.DoEvents();}static class LEAD_VARS{public const string MediaDir = @"C:\LEADTOOLS23\Media";}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
