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 = objActiveGeni.GetAudioSource


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


Data Types
[VB]

Return value: Integer


Parameters
[C/C++]

None


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 = ActiveGeni1.GetAudioList  
index=ActiveGeni1.GetAudioSource  
MsgBox AudioLst(index)  
   

Remarks

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