public double TrebleRange { get; }
public:
property double TrebleRange {
double get();
}
A value that represents the range of treble equalization for the audio input.
This value is the absolute value of the limits. For example, a value of 1.0 means that the range is from -1.0 to 1.0.For more information, refer to the Microsoft documentation for IAMAudioInputMixer.get_TrebleRange.
using Leadtools;
using Leadtools.Multimedia;
using LeadtoolsMultimediaExamples.Fixtures;
public bool _result = false;
public CaptureCtrlForm _form = new CaptureCtrlForm();
public void AudioInputsExample()
{
string txtInfo = string.Empty;
// reference the capture control
CaptureCtrl capturectrl = _form.CaptureCtrl;
// select an audio device. use your device's name here instead of USB
if (capturectrl.AudioDevices["USB"] == null)
throw new Exception("No USB audio device available");
capturectrl.AudioDevices["USB"].Selected = true;
// get the audio inputs object
AudioInputs audioinputs = capturectrl.AudioInputs;
try
{
// get the master values
txtInfo = string.Format("Enable state {0}\n" +
"Loudness state {1}\n" +
"Mixlevel value {2}\n" +
"Mono state {3}\n" +
"Pan value {4}\n" +
"Bass value {5}\n" +
"Bass range value {6}\n" +
"Treble value {7}\n" +
"Treble range value {8}\n\n" +
"Are these values correct?",
audioinputs.Enable, audioinputs.Loudness, audioinputs.MixLevel.ToString(), audioinputs.Mono,
audioinputs.Pan.ToString(), audioinputs.Bass, audioinputs.BassRange, audioinputs.Treble, audioinputs.TrebleRange);
// display the named audio input properties
_result = (MessageBox.Show(_form, txtInfo, "Test Verify", MessageBoxButtons.YesNo) == DialogResult.Yes);
}
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();
}
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.