GetAudioLevel (DVR version only)
Top  Previous  Next

Description

Returns the recording level of the currently selected audio device.


Syntax


[VB]
Value=objActiveDcam.GetAudioLevel


[C/C++]
HRESULT GetAudioLevel(short* pValue );


Data Types
[VB]

Return value: Integer


Parameters
[C/C++]

pValue [out,retval]  
Pointer to the current audio recording level, in percent.  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
 

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()  
ActiveDcam1.SetAudioSource 0  
HScroll1.Min=0  
HScroll1.Max=100  
HScroll.Value=ActiveDcam1.GetAudioLevel  
End Sub  
 
Private Sub Capture_Click  
ActiveDcam1.StartCapture "c:\\capture_with_sound.avi"  
End Sub  
 
Private Sub HScroll1_Scroll()  
ActiveDcam1.SetAudioLevel HScroll1.Value  
End Sub  
 

Remarks


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