Retrieves the index of the currently selected audio type.
#include "ltms.h"
Language | Syntax |
---|---|
C | HRESULT IltmsAudioTypes_get_Selection(pAudioTypes, pVal) |
C++ | HRESULT get_Selection(pVal) |
Pointer to an IltmsAudioTypes interface.
Pointer to a variable to be updated with the zero-based index of the currently selected audio type.
Value | Meaning |
---|---|
S_OK | The function was successful. |
<> S_OK | An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation. |
Win32, x64.
For a C++ example, refer to Print Live Streams Example For C++