EDataFlow getDataFlow (const ComSmartPtr<IMMDevice>& device) { EDataFlow flow = eRender; ComSmartPtr <IMMEndpoint> endPoint; if (check (device.QueryInterface (endPoint))) (void) check (endPoint->GetDataFlow (&flow)); return flow; }
static EDataFlow wasapi_getDataFlow (IMMDevice* const device) { EDataFlow flow = eRender; ComSmartPtr <IMMEndpoint> endPoint; if (OK (device->QueryInterface (__uuidof (IMMEndpoint), (void**) &endPoint))) (void) OK (endPoint->GetDataFlow (&flow)); return flow; }