Bluetooth Framework C++ Edition

◆ GetDefault()

int GetDefault ( const wclAudioDeviceRole Role,
const wclAudioDeviceDataFlow Flow,
tstring & Id )

Gets the default Audio Device for the specified Role and Data Flow.

Parameters
RoleThe device role.
FlowThe audio data flow.
IdIf the method completed with success on output contains the default Audio Device ID.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
See also
wclAudioDeviceRole, wclAudioDeviceDataFlow