GetAudioList (DVR version only)
Top  Previous  Next

Description

Returns the array of strings containing the names of audio recording devices available in the system.


Syntax


[VB]
Value=objActiveGeni.GetAudioList()


[C/C++]
HRESULT GetAudioList( VARIANT* pList );


Data Types
[VB]

Return value: Variant (SAFEARRAY)


Parameters
[C/C++]

pList [out,retval]  
Pointer to the SAFEARRAY of strings containing available categories  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example initializes a combo box with the list of available audio recording devices:

AudioLst = ActiveGeni1.GetAudioList
For
 i = 0 
To
 
UBound
(AudioLst)
Combo1.AddItem (AudioLst(i))
Next
Combo1.ListIndex = 0


Remarks

Note that in C/C++ applications it is required to call SafeArrayDestroy() to delete the SAFEARRAY returned by GetAudioList.