SetAudioLevel (DVR version only)
Top  Previous  Next

Description

Sets the recording level of the currently selected audio device.

Syntax


[VB]
objActiveGige.SetAudioLevel Value


[C/C++]
HRESULT SetAudioLevel(short Value);


Data Types
[VB]

Value: Integer


Parameters
[C/C++]

Value [in]  
The recording level to be set, in percent.  


Return Values

S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example initiates an AVI recording with a sound track and uses a scroll bar to adjust the audio recording level.

Private Sub Form_Load()  
ActiveGige1.SetAudioSource 0  
HScroll1.Min=0  
HScroll1.Max=100  
HScroll.Value=ActiveGige1.GetAudioLevel  
End Sub  
 
Private Sub Capture_Click  
ActiveGige1.StartCapture "c:\\capture_with_sound.avi"  
End Sub  
 
Private Sub HScroll1_Scroll()  
ActiveGige1.SetAudioLevel HScroll1.Value  
End Sub  
 

Remarks


In order for this method to work, the audio recording device must be selected with SetAudioSource.