AudRecordLib
|
Contains declaration of the function s which work with IMMDevice's and their enumeration. More...
#include "exports.h"
Go to the source code of this file.
Functions | |
HRESULT | GetAllAudioEndpoints (EndpointArray *&pEndpoints) |
void | FreeAllAudioEndpoints (EndpointArray *pEndpoints) |
Contains declaration of the function s which work with IMMDevice's and their enumeration.
void FreeAllAudioEndpoints | ( | EndpointArray * | pEndpoints | ) |
Releases device interface pointers and frees the memory for an endpoint array
pEndpoints | An array of endpoints to free, must have been allocated by GetAllAudioEndpoints |
HRESULT GetAllAudioEndpoints | ( | EndpointArray *& | pEndpoints | ) |
Enumerates audio output devices
All audio devices are discovered using the multimedia device enumerator. For every device, a wrapped interface pointer and name are temporarily saved while a running count of the memory required for all output structs name strings is maintained. One allocation is then made and the saved pointers and names are serialised into it. No interface pointers in the returned struct should be Released, rather the whole thing should be passed to FreeAllAudioEndpoints
[out] | pEndpoints | On return contains the enumerated audio endpoint interface pointers and names |