C#
VB
C++
Gets or sets the master pan level for all inputs.
public double Pan { get; set; } Public Property Pan As Double -1.0 to 1.0, -1.0 indicates full left, 0.0 indicates center, and 1.0 indicates full right.
Gets or sets the master pan level for all inputs. This is the signal distribution from left to right for stereo inputs.
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 controlCaptureCtrl capturectrl = _form.CaptureCtrl;// select an audio device. use your device's name here instead of USBif (capturectrl.AudioDevices["USB"] == null)throw new Exception("No USB audio device available");capturectrl.AudioDevices["USB"].Selected = true;// get the audio inputs objectAudioInputs audioinputs = capturectrl.AudioInputs;try{// get the master valuestxtInfo = 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();}
Imports LeadtoolsImports Leadtools.MultimediaImports LeadtoolsMultimediaExamples.FixturesPublic _result As Boolean = FalsePublic _form As CaptureCtrlForm = New CaptureCtrlForm()Public Sub AudioInputsExample()Dim txtInfo As String = String.Empty' reference the capture controlDim capturectrl As CaptureCtrl = _form.CaptureCtrl' select an audio device, use your device name here instead of USBIf capturectrl.AudioDevices("USB") Is Nothing ThenThrow New Exception("No USB audio device available")End Ifcapturectrl.AudioDevices("USB").Selected = True' get the audio inputs objectDim audioinputs As AudioInputs = capturectrl.AudioInputsTry' get master valuestxtInfo = String.Format("Enable state {0}" _& Microsoft.VisualBasic.Constants.vbLf _& "Loudness state {1}" _& Microsoft.VisualBasic.Constants.vbLf _& "Mixlevel value {2}" & Microsoft.VisualBasic.Constants.vbLf _& "Mono state {3}" _& Microsoft.VisualBasic.Constants.vbLf _& "Pan value {4}" & Microsoft.VisualBasic.Constants.vbLf _& "Bass value {5}" & Microsoft.VisualBasic.Constants.vbLf _& "Bass range value {6}" & Microsoft.VisualBasic.Constants.vbLf _& "Treble value {7}" & Microsoft.VisualBasic.Constants.vbLf _& "Treble range value {8}" & Microsoft.VisualBasic.Constants.vbLf _+ Microsoft.VisualBasic.Constants.vbLf & "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 e1 As Exception_result = FalseEnd Try' 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.Do While capturectrl.State = CaptureState.RunningApplication.DoEvents()LoopEnd Sub
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
