Treble Property

Summary
Gets the treble equalization value for the audio input.
Syntax
C#
C++/CLI
public double Treble { get; set; } 
public: 
property double Treble { 
   double get(); 
   void set (    double ); 
} 

Property Value

The treble gain is in decibels. Use negative values for attenuation.

Remarks

The TrebleRange Property contains the expected range of values. For more information, refer to the Microsoft documentation for IAMAudioInputMixer.get_Treble.

Example
C#
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(); 
} 
Requirements

Target Platforms

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.