void TestModes() { int hr; TVAudioMode modes; hr = m_itva.GetAvailableTVAudioModes(out modes); DsError.ThrowExceptionForHR(hr); // my card returns 17 Debug.Assert(modes > 0, "GetAvailableTVAudioModes"); }
/// <summary> /// Gets the available audio streams /// </summary> /// <returns>List of available audio streams</returns> public List <IAudioStream> GetAvailableAudioStreams() { List <IAudioStream> availableStreams = new List <IAudioStream>(); if (_filterTvAudioTuner != null) { TVAudioMode availableAudioModes; _tvAudioTunerInterface.GetAvailableTVAudioModes(out availableAudioModes); foreach (AnalogAudioStream stream in streams) { if ((stream.AudioMode & availableAudioModes) != 0) { availableStreams.Add(stream); } } } return(availableStreams); }