win-wasapi: Log source name on initialization

Log the source name when a WASAPI device is initialized.

(cherry picked from commit d017cb6718)
This commit is contained in:
prgmitchell 2023-10-22 09:24:02 -04:00 • committed by Ryan Foster
commit 92b4ccb6d1

View file

@ -999,8 +999,9 @@ void WASAPISource::Initialize()
}
}
blog(LOG_INFO, "WASAPI: Device '%s' [%" PRIu32 " Hz] initialized",
device_name.c_str(), sampleRate);
blog(LOG_INFO,
"WASAPI: Device '%s' [%" PRIu32 " Hz] initialized (source: %s)",
device_name.c_str(), sampleRate, obs_source_get_name(source));
if (sourceType == SourceType::ProcessOutput && !hooked) {
hooked = true;