Windows Core Audio 및 WASAPI와 인터페이스하는 프로그램을 작성하려고합니다. 나는 다음과 같은 몇 개의 라인에 어려움을 겪고있다.WASAPI GetDisplayName이 공백을 반환합니다.
CComHeapPtr<WCHAR> name;
hr = pAudioSessionControl->GetDisplayName(&name);
if (FAILED(hr)) {
LOG(L"IAudioSessionControl::GetDisplayName() failed: hr = 0x%08x", hr);
return -__LINE__; }
_tprintf(_T("Session Index %d, \"%s\"\n"), i, CString(name));
출력 :
Session Index 0, "@%SystemRoot%\System32\AudioSrv.Dll,-202"
Session Index 1, ""
Session Index 2, ""
Session Index 3, ""
Press any key to continue . . .
이 세 프로그램 모두 활성 및 제작 소음입니다. 그것은 시스템 소리 프로그램을 볼 수 있지만 아무것도 다른 것 같습니다.
도움 주셔서 감사합니다.
도움 로마를 주셔서 감사합니다. 자세한 내용은 내 편집을 참조하십시오. – Jacky4566