AudRecordLib
Functions
device.h File Reference

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)

Detailed Description

Contains declaration of the function s which work with IMMDevice's and their enumeration.


Function Documentation

void FreeAllAudioEndpoints ( EndpointArray pEndpoints)

Releases device interface pointers and frees the memory for an endpoint array

Parameters:
pEndpointsAn 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

Parameters:
[out]pEndpointsOn return contains the enumerated audio endpoint interface pointers and names
Returns:
S_OK on success, standard COM error code otherwise
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines