GetAudioSource (DVR version only)
Top  Previous  Next

Description

Gets the index of the currently selected audio recording device for the AVI capture.


Syntax


[VB]
Value = objActiveUSB.GetAudioSource


[C/C++]
HRESULT GetAudioSource(short* Index);


Data Types
[VB]

Return value: Integer


Parameters
[C/C++]

pValue [out,retval]  
Pointer to the index of the currently selected audio device.  


Return Values


S_OK  
Success  
E_FAIL  
Failure to set the codec  
 

Example


The following VB example prints the name of the currently selected audio source:

AudioLst = ActiveUSB1.GetAudioList  
index=ActiveUSB1.GetAudioSource  
MsgBox AudioLst(index)  
   

Remarks

If the return value is -1, the audio recording is disabled.