Davide Beatrici (@davidebeatrici) commented about dlls/mmdevapi/session.c:
return ret;
}
+/* If channels == 0, then this will return or create a session with
- matching dataflow and GUID. Otherwise, channels must also match. */
+HRESULT get_audio_session(const GUID *guid, IMMDevice *device, UINT channels,
struct audio_session **out)
+{
- struct audio_session *session;
- const GUID null_guid = { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 } };
- TRACE("(%s, %p, %u, %p)\n", debugstr_guid(guid), device, channels, out);
I added this for debugging purposes.